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 1/3] net/nfp: remove restrictions on port queue number
Date: Fri, 30 Aug 2024 10:30:00 +0800 [thread overview]
Message-ID: <20240830023002.2364238-2-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20240830023002.2364238-1-chaoyong.he@corigine.com>
From: Long Wu <long.wu@corigine.com>
The flower firmware can support multi-queue for representor port now,
so remove restrictions on queue number of 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 | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/drivers/net/nfp/flower/nfp_flower_representor.c b/drivers/net/nfp/flower/nfp_flower_representor.c
index b1589cf78c..130795357d 100644
--- a/drivers/net/nfp/flower/nfp_flower_representor.c
+++ b/drivers/net/nfp/flower/nfp_flower_representor.c
@@ -56,8 +56,8 @@ nfp_flower_repr_dev_infos_get(__rte_unused struct rte_eth_dev *dev,
pf_hw = repr->app_fw_flower->pf_hw;
/* Hardcoded pktlen and queues for now */
- dev_info->max_rx_queues = 1;
- dev_info->max_tx_queues = 1;
+ dev_info->max_rx_queues = (uint16_t)pf_hw->max_rx_queues;
+ dev_info->max_tx_queues = (uint16_t)pf_hw->max_tx_queues;
dev_info->min_rx_bufsize = RTE_ETHER_MIN_MTU;
dev_info->max_rx_pktlen = 9000;
@@ -581,10 +581,6 @@ nfp_flower_pf_repr_init(struct rte_eth_dev *eth_dev,
/* This backer port is that of the eth_device created for the PF vNIC */
eth_dev->data->backer_port_id = 0;
- /* Only single queues for representor devices */
- eth_dev->data->nb_rx_queues = 1;
- eth_dev->data->nb_tx_queues = 1;
-
/* Allocating memory for mac addr */
eth_dev->data->mac_addrs = rte_zmalloc("mac_addr", RTE_ETHER_ADDR_LEN, 0);
if (eth_dev->data->mac_addrs == NULL) {
@@ -662,10 +658,6 @@ nfp_flower_repr_init(struct rte_eth_dev *eth_dev,
/* This backer port is that of the eth_device created for the PF vNIC */
eth_dev->data->backer_port_id = 0;
- /* Only single queues for representor devices */
- eth_dev->data->nb_rx_queues = 1;
- eth_dev->data->nb_tx_queues = 1;
-
/* Allocating memory for mac addr */
eth_dev->data->mac_addrs = rte_zmalloc("mac_addr", RTE_ETHER_ADDR_LEN, 0);
if (eth_dev->data->mac_addrs == NULL) {
--
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 ` Chaoyong He [this message]
2024-08-30 2:30 ` [PATCH 2/3] net/nfp: increase representor port rxq number Chaoyong He
2024-08-30 2:30 ` [PATCH 3/3] net/nfp: increase representor port txq number Chaoyong He
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-2-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).