[RFC PATCH v2 15/26] net/null: use separate Rx and Tx queue limits

Bruce Richardson bruce.richards at intel.com
Tue Aug 13 17:59:52 CEST 2024


Update driver to use the new defines RTE_MAX_ETHPORT_TX_QUEUES and
RTE_MAX_ETHPORT_RX_QUEUES rather than the old define
RTE_MAX_QUEUES_PER_PORT.

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/null/rte_eth_null.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
index f4ed3b8a7f..30185e417a 100644
--- a/drivers/net/null/rte_eth_null.c
+++ b/drivers/net/null/rte_eth_null.c
@@ -53,8 +53,8 @@ struct pmd_internals {
 	unsigned int no_rx;
 	uint16_t port_id;
 
-	struct null_queue rx_null_queues[RTE_MAX_QUEUES_PER_PORT];
-	struct null_queue tx_null_queues[RTE_MAX_QUEUES_PER_PORT];
+	struct null_queue rx_null_queues[RTE_MAX_ETHPORT_RX_QUEUES];
+	struct null_queue tx_null_queues[RTE_MAX_ETHPORT_TX_QUEUES];
 
 	struct rte_ether_addr eth_addr;
 	/** Bit mask of RSS offloads, the bit offset also means flow type */
-- 
2.43.0



More information about the dev mailing list