From: Lance Richardson Date: Wed, 9 Oct 2019 17:43:34 +0000 (-0400) Subject: net/bnxt: reset Rx allocation state on Rx queue restart X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7b88d5a9781f45fc535975f066b1c5b4f669dbc4;p=dpdk.git net/bnxt: reset Rx allocation state on Rx queue restart Call bnxt_rxq_vec_setup() to ensure that rxq->rxrearm_nb and rxq->rxrearm_start are initialized correctly when a receive queue is restarted. Fixes: bc4a000f2f53 ("net/bnxt: implement SSE vector mode") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Xiaobing Zhang Reviewed-by: Kalesh AP Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_ring.c b/drivers/net/bnxt/bnxt_ring.c index 19af727635..0a182d3a84 100644 --- a/drivers/net/bnxt/bnxt_ring.c +++ b/drivers/net/bnxt/bnxt_ring.c @@ -626,6 +626,9 @@ int bnxt_alloc_hwrm_rx_ring(struct bnxt *bp, int queue_index) bnxt_db_write(&rxr->ag_db, rxr->ag_prod); } rxq->index = queue_index; +#ifdef RTE_ARCH_X86 + bnxt_rxq_vec_setup(rxq); +#endif return 0;