From: Kalesh AP Date: Tue, 26 Oct 2021 05:14:30 +0000 (+0530) Subject: net/bnxt: fix RSS behavior on Thor X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e046deb244bdd2913c09246f9d23057c58cab418;p=dpdk.git net/bnxt: fix RSS behavior on Thor Move the Rx queue state update before bnxt_setup_one_vnic() is called. For Thor, rxq->rx_started and eth_dev->data->rx_queue_state[] needs to be set for all queues before bnxt_hwrm_vnic_cfg() or bnxt_vnic_rss_configure() are called. Fixes: 0105ea1296c9 ("net/bnxt: support runtime queue setup") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Signed-off-by: Kalesh AP Acked-by: Ajit Khaparde Acked-by: Somnath Kotur --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 5a34bb96d0..668e3aa3e5 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -790,6 +790,16 @@ skip_cosq_cfg: goto err_out; } + for (j = 0; j < bp->rx_nr_rings; j++) { + struct bnxt_rx_queue *rxq = bp->rx_queues[j]; + + if (!rxq->rx_deferred_start) { + bp->eth_dev->data->rx_queue_state[j] = + RTE_ETH_QUEUE_STATE_STARTED; + rxq->rx_started = true; + } + } + /* default vnic 0 */ rc = bnxt_setup_one_vnic(bp, 0); if (rc) @@ -813,16 +823,6 @@ skip_cosq_cfg: } } - for (j = 0; j < bp->rx_nr_rings; j++) { - struct bnxt_rx_queue *rxq = bp->rx_queues[j]; - - if (!rxq->rx_deferred_start) { - bp->eth_dev->data->rx_queue_state[j] = - RTE_ETH_QUEUE_STATE_STARTED; - rxq->rx_started = true; - } - } - rc = bnxt_hwrm_cfa_l2_set_rx_mask(bp, &bp->vnic_info[0], 0, NULL); if (rc) { PMD_DRV_LOG(ERR,