From: Kishore Padmanabha <kishore.padmana...@broadcom.com>

The number of Tx queues for the representor port is limited by
number of Rx rings instead of Tx rings.

Fixes: 322bd6e70272 ("net/bnxt: add port representor infrastructure")
Cc: sta...@dpdk.org

Signed-off-by: Kishore Padmanabha <kishore.padmana...@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khapa...@broadcom.com>
---
 drivers/net/bnxt/bnxt_reps.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/bnxt_reps.c b/drivers/net/bnxt/bnxt_reps.c
index edcc27f556..79b3583636 100644
--- a/drivers/net/bnxt/bnxt_reps.c
+++ b/drivers/net/bnxt/bnxt_reps.c
@@ -739,10 +739,10 @@ int bnxt_rep_tx_queue_setup_op(struct rte_eth_dev 
*eth_dev,
        struct bnxt_tx_queue *parent_txq, *txq;
        struct bnxt_vf_rep_tx_queue *vfr_txq;
 
-       if (queue_idx >= rep_bp->rx_nr_rings) {
+       if (queue_idx >= rep_bp->tx_nr_rings) {
                PMD_DRV_LOG(ERR,
                            "Cannot create Tx rings %d. %d rings available\n",
-                           queue_idx, rep_bp->rx_nr_rings);
+                           queue_idx, rep_bp->tx_nr_rings);
                return -EINVAL;
        }
 
-- 
2.39.2 (Apple Git-143)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to