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

Bruce Richardson bruce.richards at intel.com
Tue Aug 13 17:59:54 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/thunderx/nicvf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c
index 609d95dcfa..8c8bec885f 100644
--- a/drivers/net/thunderx/nicvf_ethdev.c
+++ b/drivers/net/thunderx/nicvf_ethdev.c
@@ -907,7 +907,7 @@ nicvf_configure_rss_reta(struct rte_eth_dev *dev)
 {
 	struct nicvf *nic = nicvf_pmd_priv(dev);
 	unsigned int idx, qmap_size;
-	uint8_t qmap[RTE_MAX_QUEUES_PER_PORT];
+	uint8_t qmap[RTE_MAX_ETHPORT_RX_QUEUES];
 	uint8_t default_reta[NIC_MAX_RSS_IDR_TBL_SIZE];
 
 	if (nic->cpi_alg != CPI_ALG_NONE)
-- 
2.43.0



More information about the dev mailing list