From: "Abdullah Ömer Yamaç" <omer.yamac@ceng.metu.edu.tr>
To: david.hunt@intel.com
Cc: dev@dpdk.org, "Abdullah Ömer Yamaç" <omer.yamac@ceng.metu.edu.tr>,
stable@dpdk.org
Subject: [PATCH] examples/distributor: fix syntax on single core rx and distributor
Date: Mon, 20 Jun 2022 19:31:46 +0300 [thread overview]
Message-ID: <20220620163146.51435-1-omer.yamac@ceng.metu.edu.tr> (raw)
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>
---
Cc: david.hunt@intel.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
next reply other threads:[~2022-06-20 16:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-20 16:31 Abdullah Ömer Yamaç [this message]
2022-06-20 17:10 ` Ferruh Yigit
2022-06-21 8:44 ` Hunt, David
2022-06-21 10:26 ` Ferruh Yigit
2022-06-21 11:18 ` Omer Yamac
2022-06-21 11:24 ` Ferruh Yigit
2022-06-26 21:30 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220620163146.51435-1-omer.yamac@ceng.metu.edu.tr \
--to=omer.yamac@ceng.metu.edu.tr \
--cc=david.hunt@intel.com \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).