net/bnxt: fix a check in rxq start op
PATCH 1/1 net/bnxt: fix a check in rxq start op
From: Kalesh AP <[email protected]>
This patch fixes a wrong check in rxq start operation. Driver should check for rxq start state.
Fixes 4316e043cbcb ("net/bnxt: fix RxQ stop/start handling")
Signed-off-by Kalesh AP <[email protected]>
Reviewed-by Ajit Khaparde <[email protected]>
--- drivers/net/bnxt/bnxt_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bnxt/bnxt_ring.c +1 -1
@@ -612,7 +612,7 @@ int bnxt_alloc_hwrm_rx_ring(struct bnxt *bp, int queue_index)if (rc) goto err_out; -if (!rxq->rx_started) { +if (rxq->rx_started) {if (bnxt_init_one_rx_ring (rxq)) {RTE_LOG (ERR ,PMD ,"bnxt_init_one_rx_ring failed!\n" );
Signature · 1 line
2.20.1 (Apple Git-117)
Quoted 8 lines · Ajit Khaparde
From: Kalesh AP <[email protected]>
This patch fixes a wrong check in rxq start operation. Driver should check for rxq start state.
Fixes 4316e043cbcb ("net/bnxt: fix RxQ stop/start handling")Signed-off-by Kalesh AP <[email protected]>Reviewed-by Ajit Khaparde <[email protected]>
Squashed into relevant commit in next-net, thanks.