From: Abdullah Ömer Yamaç Date: Mon, 20 Jun 2022 16:31:46 +0000 (+0300) Subject: examples/distributor: fix distributor on Rx core X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=29c1e90e65e9e1592b4a200afe8d2a7ff7a77742;p=dpdk.git examples/distributor: fix distributor on Rx core 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ç Acked-by: Ferruh Yigit Tested-by: David Hunt --- diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 02bf91f555..8995806b4e 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -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;