patch 'net/nfb: use constant values for max Rx/Tx queues count' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Feb 20 15:56:13 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/22/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/1609bf26aa3ca335c343a1d8d92039aa2dfc888d
Thanks.
Luca Boccassi
---
>From 1609bf26aa3ca335c343a1d8d92039aa2dfc888d Mon Sep 17 00:00:00 2001
From: Martin Spinler <spinler at cesnet.cz>
Date: Mon, 2 Feb 2026 20:33:25 +0100
Subject: [PATCH] net/nfb: use constant values for max Rx/Tx queues count
[ upstream commit 195182056289519f48b76d25dcc414abad7de0c1 ]
The nb_xx_queues values in the dev->data structure can be modified
dynamically by some apps. Use runtime-constant values from hardware
directly for max_rx_queues/max_tx_queues.
Fixes: 6435f9a0ac22 ("net/nfb: add new netcope driver")
Signed-off-by: Martin Spinler <spinler at cesnet.cz>
---
drivers/net/nfb/nfb.h | 3 +++
drivers/net/nfb/nfb_ethdev.c | 12 +++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/net/nfb/nfb.h b/drivers/net/nfb/nfb.h
index a8b24ff822..917b830283 100644
--- a/drivers/net/nfb/nfb.h
+++ b/drivers/net/nfb/nfb.h
@@ -48,6 +48,9 @@ struct pmd_internals {
struct nc_rxmac *rxmac[RTE_MAX_NC_RXMAC];
struct nc_txmac *txmac[RTE_MAX_NC_TXMAC];
struct nfb_device *nfb;
+
+ uint16_t max_rx_queues;
+ uint16_t max_tx_queues;
};
#endif /* _NFB_H_ */
diff --git a/drivers/net/nfb/nfb_ethdev.c b/drivers/net/nfb/nfb_ethdev.c
index 98119d70fd..5b1df83b7f 100644
--- a/drivers/net/nfb/nfb_ethdev.c
+++ b/drivers/net/nfb/nfb_ethdev.c
@@ -237,11 +237,13 @@ static int
nfb_eth_dev_info(struct rte_eth_dev *dev,
struct rte_eth_dev_info *dev_info)
{
+ struct pmd_internals *internals = dev->data->dev_private;
+
dev_info->max_mac_addrs = nfb_eth_get_max_mac_address_count(dev);
dev_info->max_rx_pktlen = (uint32_t)-1;
- dev_info->max_rx_queues = dev->data->nb_rx_queues;
- dev_info->max_tx_queues = dev->data->nb_tx_queues;
+ dev_info->max_rx_queues = internals->max_rx_queues;
+ dev_info->max_tx_queues = internals->max_tx_queues;
dev_info->speed_capa = RTE_ETH_LINK_SPEED_100G;
dev_info->rx_offload_capa =
RTE_ETH_RX_OFFLOAD_TIMESTAMP;
@@ -538,11 +540,11 @@ nfb_eth_dev_init(struct rte_eth_dev *dev)
NFB_LOG(ERR, "nfb_open(): failed to open %s", nfb_dev);
return -EINVAL;
}
- data->nb_rx_queues = ndp_get_rx_queue_available_count(internals->nfb);
- data->nb_tx_queues = ndp_get_tx_queue_available_count(internals->nfb);
+ internals->max_rx_queues = ndp_get_rx_queue_available_count(internals->nfb);
+ internals->max_tx_queues = ndp_get_tx_queue_available_count(internals->nfb);
NFB_LOG(INFO, "Available NDP queues RX: %u TX: %u",
- data->nb_rx_queues, data->nb_tx_queues);
+ internals->max_rx_queues, internals->max_tx_queues);
nfb_nc_rxmac_init(internals->nfb,
internals->rxmac,
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-20 14:55:45.975365676 +0000
+++ 0071-net-nfb-use-constant-values-for-max-Rx-Tx-queues-cou.patch 2026-02-20 14:55:43.272192227 +0000
@@ -1 +1 @@
-From 195182056289519f48b76d25dcc414abad7de0c1 Mon Sep 17 00:00:00 2001
+From 1609bf26aa3ca335c343a1d8d92039aa2dfc888d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 195182056289519f48b76d25dcc414abad7de0c1 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -34 +35 @@
-index 5f1b11a961..feba06a291 100644
+index 98119d70fd..5b1df83b7f 100644
More information about the stable
mailing list