[RFC PATCH v2 07/26] latencystats: use separate Rx and Tx queue limits
Bruce Richardson
bruce.richards at intel.com
Tue Aug 13 17:59:44 CEST 2024
Update library 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>
---
lib/latencystats/rte_latencystats.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c
index 6a261309f9..696bbab3a4 100644
--- a/lib/latencystats/rte_latencystats.c
+++ b/lib/latencystats/rte_latencystats.c
@@ -60,8 +60,8 @@ struct rxtx_cbs {
const struct rte_eth_rxtx_callback *cb;
};
-static struct rxtx_cbs rx_cbs[RTE_MAX_ETHPORTS][RTE_MAX_QUEUES_PER_PORT];
-static struct rxtx_cbs tx_cbs[RTE_MAX_ETHPORTS][RTE_MAX_QUEUES_PER_PORT];
+static struct rxtx_cbs rx_cbs[RTE_MAX_ETHPORTS][RTE_MAX_ETHPORT_RX_QUEUES];
+static struct rxtx_cbs tx_cbs[RTE_MAX_ETHPORTS][RTE_MAX_ETHPORT_TX_QUEUES];
struct latency_stats_nameoff {
char name[RTE_ETH_XSTATS_NAME_SIZE];
--
2.43.0
More information about the dev
mailing list