Skip to content

Commit

Permalink
net/nfp: increase representor port txq number
Browse files Browse the repository at this point in the history
This commit supports configuring multiple Tx queues for flower
representor port.

Signed-off-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
  • Loading branch information
wulong2022 authored and ferruhy committed Sep 2, 2024
1 parent e7ea6cd commit 5cce3d4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/net/nfp/flower/nfp_flower_representor.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,11 @@ nfp_flower_repr_tx_burst(void *tx_queue,
/* This points to the PF vNIC that owns this representor */
dev = repr->app_fw_flower->pf_ethdev;

/* Only using Tx queue 0 for now. */
pf_tx_queue = dev->data->tx_queues[0];
pf_tx_queue = dev->data->tx_queues[txq->qidx];
sent = nfp_flower_pf_xmit_pkts(pf_tx_queue, tx_pkts, nb_pkts);
if (sent != 0) {
PMD_TX_LOG(DEBUG, "Representor Tx burst for %s, port_id: %#x transmitted: %hu",
repr->name, repr->port_id, sent);
PMD_TX_LOG(DEBUG, "Port: %#x transmitted: %hu queue: %u",
repr->port_id, sent, txq->qidx);

data_len = 0;
for (i = 0; i < sent; i++)
Expand Down

0 comments on commit 5cce3d4

Please sign in to comment.