From 29f79c54052f01786b4a4bf36dea4dc12d613caf Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Mon, 7 Mar 2022 22:39:46 +0000 Subject: [PATCH] examples/distributor: reduce Tx queue number to 1 [ upstream commit e7f6d1289bc2d6880bcc708b7ba42976b8d4a3e8 ] Distributor application creates one Tx queue per core. However the transmit is done only from a single core. Hence creating one Tx queue is enough. Fixes: 07db4a975094 ("examples/distributor: new sample app") Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Bruce Richardson --- examples/distributor/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 3f606a80a0..db4bf7e399 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -109,7 +109,7 @@ static inline int port_init(uint16_t port, struct rte_mempool *mbuf_pool) { struct rte_eth_conf port_conf = port_conf_default; - const uint16_t rxRings = 1, txRings = rte_lcore_count() - 1; + const uint16_t rxRings = 1, txRings = 1; int retval; uint16_t q; uint16_t nb_rxd = RX_RING_SIZE;