From: mamcgove@microsoft.com
To: dev@dpdk.org
Cc: Matthew G McGovern <mamcgove@microsoft.com>
Subject: [PATCH 2/2] examples/mp_server: warn on promisc enable failure
Date: Tue, 16 Sep 2025 10:44:10 -0700 [thread overview]
Message-ID: <c6b47c91266b5fe62f4c869206b972d2280ce052.1758043370.git.mamcgove@microsoft.com> (raw)
In-Reply-To: <cover.1758043370.git.mamcgove@microsoft.com>
In-Reply-To: <cover.1758043370.git.mamcgove@microsoft.com>
From: Matthew G McGovern <mamcgove@microsoft.com>
Change to treat promiscuous enablement failures as nonfatal in the
client_mp/server_mp examples.
Some devices (mana) support promiscuous mode; but require
a cloud networking configuration change to enable it.
This change will allow examples/multi_process applications
to run in these environments.
Signed-off-by: Matthew G McGovern <mamcgove@microsoft.com>
---
examples/multi_process/client_server_mp/mp_server/init.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c
index 65713dbea8..87acc38101 100644
--- a/examples/multi_process/client_server_mp/mp_server/init.c
+++ b/examples/multi_process/client_server_mp/mp_server/init.c
@@ -134,7 +134,9 @@ init_port(uint16_t port_num)
retval = rte_eth_promiscuous_enable(port_num);
if (retval < 0)
- return retval;
+ fprintf(stderr,
+ "Error during enabling promiscuous mode for port %u: %s - ignore\n",
+ retval, rte_strerror(-retval));
retval = rte_eth_dev_start(port_num);
if (retval < 0) return retval;
--
2.34.1
next prev parent reply other threads:[~2025-09-16 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 18:37 [PATCH] examples/symmetric_mp: log/ignore promiscuous fail mamcgove
2025-07-09 14:29 ` Thomas Monjalon
2025-09-03 15:09 ` [EXTERNAL] " Matthew McGovern (LINUX)
2025-09-03 15:24 ` Thomas Monjalon
2025-09-16 17:44 ` [PATCH 0/2] " mamcgove
2025-09-16 17:44 ` [PATCH 1/2] examples/symmetric-mp: ignore promisc enable failure mamcgove
2025-09-16 17:44 ` mamcgove [this message]
[not found] ` <cover.1758045692.git.mamcgove@microsoft.com>
2025-09-16 18:51 ` [PATCH v3 1/1] examples/mp_server: warn on " mamcgove
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=c6b47c91266b5fe62f4c869206b972d2280ce052.1758043370.git.mamcgove@microsoft.com \
--to=mamcgove@microsoft.com \
--cc=dev@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).