Re: [dpdk-dev] [PATCH 1/8] net/bnxt: remove assert for zero data len in Tx path

2022-06-20 Thread Ajit Khaparde
On Mon, Jun 20, 2022 at 3:55 AM Ferruh Yigit wrote: > > On 6/20/2022 12:09 AM, Ajit Khaparde wrote: > > On Thu, Jun 16, 2022 at 10:03 AM Ferruh Yigit > > wrote: > >> > >> On 6/15/2022 3:56 PM, Kalesh A P wrote: > >>> > >>> From: Somnath Kotur > >>> > >>> Currently the PMD tries to detect a pote

Re: [dpdk-dev] [PATCH 1/8] net/bnxt: remove assert for zero data len in Tx path

2022-06-20 Thread Ferruh Yigit
On 6/20/2022 12:09 AM, Ajit Khaparde wrote: On Thu, Jun 16, 2022 at 10:03 AM Ferruh Yigit wrote: On 6/15/2022 3:56 PM, Kalesh A P wrote: From: Somnath Kotur Currently the PMD tries to detect a potential 0 byte DMA by using RTE_VERIFY. But since RTE_VERIFY internally calls rte_panic() it is

Re: [dpdk-dev] [PATCH 1/8] net/bnxt: remove assert for zero data len in Tx path

2022-06-19 Thread Ajit Khaparde
On Thu, Jun 16, 2022 at 10:03 AM Ferruh Yigit wrote: > > On 6/15/2022 3:56 PM, Kalesh A P wrote: > > CAUTION: This message has originated from an External Source. Please use > > proper judgment and caution when opening attachments, clicking links, or > > responding to this email. > > > > > > Fro

Re: [dpdk-dev] [PATCH 1/8] net/bnxt: remove assert for zero data len in Tx path

2022-06-16 Thread Ferruh Yigit
On 6/15/2022 3:56 PM, Kalesh A P wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. From: Somnath Kotur Currently the PMD tries to detect a potential 0 byte DMA by

[dpdk-dev] [PATCH 1/8] net/bnxt: remove assert for zero data len in Tx path

2022-06-15 Thread Kalesh A P
From: Somnath Kotur Currently the PMD tries to detect a potential 0 byte DMA by using RTE_VERIFY. But since RTE_VERIFY internally calls rte_panic() it is fatal to the application and some applications want to avoid that. So return an error from the bnxt xmit handler if such a bad pkt is encounter