Skip to content

Commit

Permalink
net/bnxt: fix number of Tx queues being created
Browse files Browse the repository at this point in the history
[ upstream commit 05b67582cc93128bbf2eb26726d781b8c5c561b3 ]

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

Fixes: 322bd6e ("net/bnxt: add port representor infrastructure")

Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Kishore Padmanabha authored and bluca committed Mar 18, 2024
1 parent f6a26c8 commit aead7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/bnxt/bnxt_reps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit aead7fd

Please sign in to comment.