examples/distributor: fix distributor on Rx core
authorAbdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
Mon, 20 Jun 2022 16:31:46 +0000 (19:31 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Jun 2022 21:30:41 +0000 (23:30 +0200)
This patch fixes the syntax error when using the single-core
for both Rx and distributor functions.

Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
Cc: stable@dpdk.org
Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
Tested-by: David Hunt <david.hunt@intel.com>
examples/distributor/main.c

index 02bf91f555f72dadc4cc6b4fdeb26b713116fa30..8995806b4e83f20c0a876e9a416103303563a8c5 100644 (file)
@@ -261,8 +261,8 @@ lcore_rx(struct lcore_params *p)
  * packets are then send straight to the tx core.
  */
 #if 0
-       rte_distributor_process(d, bufs, nb_rx);
-       const uint16_t nb_ret = rte_distributor_returned_pktsd,
+               rte_distributor_process(p->d, bufs, nb_rx);
+               const uint16_t nb_ret = rte_distributor_returned_pkts(p->d,
                        bufs, BURST_SIZE*2);
 
                app_stats.rx.returned_pkts += nb_ret;