From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Long Wu <long.wu@corigine.com>,
Chaoyong He <chaoyong.he@corigine.com>,
Peng Zhang <peng.zhang@corigine.com>
Subject: [PATCH 3/3] net/nfp: increase representor port txq number
Date: Fri, 30 Aug 2024 10:30:02 +0800 [thread overview]
Message-ID: <20240830023002.2364238-4-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20240830023002.2364238-1-chaoyong.he@corigine.com>
From: Long Wu <long.wu@corigine.com>
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>
---
drivers/net/nfp/flower/nfp_flower_representor.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/net/nfp/flower/nfp_flower_representor.c b/drivers/net/nfp/flower/nfp_flower_representor.c
index 96433b9f87..872b8a6db4 100644
--- a/drivers/net/nfp/flower/nfp_flower_representor.c
+++ b/drivers/net/nfp/flower/nfp_flower_representor.c
@@ -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++)
--
2.39.1
next prev parent reply other threads:[~2024-08-30 2:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 2:29 [PATCH 0/3] Increase the queue number of representor port Chaoyong He
2024-08-30 2:30 ` [PATCH 1/3] net/nfp: remove restrictions on port queue number Chaoyong He
2024-08-30 2:30 ` [PATCH 2/3] net/nfp: increase representor port rxq number Chaoyong He
2024-08-30 2:30 ` Chaoyong He [this message]
2024-09-02 11:04 ` [PATCH 0/3] Increase the queue number of representor port Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240830023002.2364238-4-chaoyong.he@corigine.com \
--to=chaoyong.he@corigine.com \
--cc=dev@dpdk.org \
--cc=long.wu@corigine.com \
--cc=oss-drivers@corigine.com \
--cc=peng.zhang@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).