examples/distributor: reduce Tx queue number to 1
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Mon, 7 Mar 2022 22:39:46 +0000 (22:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 11:38:39 +0000 (12:38 +0100)
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")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/distributor/main.c

index c681e23..02bf91f 100644 (file)
@@ -108,7 +108,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;