net/bnxt: fix Tx descriptor status implementation
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 16 Jun 2021 17:55:21 +0000 (13:55 -0400)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 8 Jul 2021 03:55:53 +0000 (05:55 +0200)
commitce5c57ac01af038b930d5164df2cb16193e238ec
tree3bf1e0506b0f0056ebdda2626657c0bb09022727
parentc6c90a33de906eb40a8eb01e16736cbaa2845b97
net/bnxt: fix Tx descriptor status implementation

With Tx completion batching, a single transmit completion
can correspond to one or more transmit descriptors, adjust
implementation to account for this.

RTE_ETH_TX_DESC_DONE should be returned for descriptors that
are available for use instead of RTE_ETH_TX_DESC_UNAVAIL.

Fixes: 5735eb241947 ("net/bnxt: support Tx batching")
Fixes: 478ed3bb7b9d ("net/bnxt: support Tx descriptor status")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c