* [PATCH] examples/distributor: fix syntax error on single core for rx and distributor
@ 2022-06-20 13:29 Abdullah Ömer Yamaç
0 siblings, 0 replies; only message in thread
From: Abdullah Ömer Yamaç @ 2022-06-20 13:29 UTC (permalink / raw)
To: omer.yamac; +Cc: Abdullah Ömer Yamaç, stable, omeryamac06
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ç <aomeryamac@gmail.com>
---
Cc: omeryamac06@gmail.com
---
examples/distributor/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
--
2.27.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-22 6:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 13:29 [PATCH] examples/distributor: fix syntax error on single core for rx and distributor Abdullah Ömer Yamaç
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).