Skip to content

Commit

Permalink
examples/distributor: fix distributor on Rx core
Browse files Browse the repository at this point in the history
This patch fixes the syntax error when using the single-core
for both Rx and distributor functions.

Fixes: 4a7f40c ("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>
  • Loading branch information
mryamac authored and tmonjalo committed Jun 26, 2022
1 parent 9f5488e commit 29c1e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/distributor/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29c1e90

Please sign in to comment.