]> git.droids-corp.org - dpdk.git/commit
net/bnxt: remove assert for zero data length in Tx
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 15 Jun 2022 14:56:56 +0000 (20:26 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 24 Jun 2022 21:23:11 +0000 (23:23 +0200)
commitd3fdd5b880a9f056c1f50ca7a38b5aa986d9331f
tree73263b8b3d4b5a45b37e5632fd87b19d167c458a
parent138004248913f545a0437274207b7f96997ef1d3
net/bnxt: remove assert for zero data length in Tx

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
encountered by logging an error message, dumping the pkt header and
dump the current stack as well

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_txr.c