examples/symmetric_mp: log/ignore promiscuous fail
Checks
Commit Message
From: Matthew G McGovern <mamcgove@microsoft.com>
The example apps have a few different failure modes when enabling promiscuous mode:
- testpmd will warn about the failure and continue.
- l3fwd has a flag '-P' to explicitly require promiscuous mode.
- symmetric_mp will exit with an error code
This patch changes symmetric_mp to warn and continue.
Signed-off-by: Matthew G McGovern <mamcgove@microsoft.com>
---
examples/multi_process/symmetric_mp/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
20/05/2025 20:37, mamcgove@microsoft.com:
> From: Matthew G McGovern <mamcgove@microsoft.com>
>
> The example apps have a few different failure modes when enabling promiscuous mode:
>
> - testpmd will warn about the failure and continue.
>
> - l3fwd has a flag '-P' to explicitly require promiscuous mode.
>
> - symmetric_mp will exit with an error code
>
> This patch changes symmetric_mp to warn and continue.
Why not doing the same in examples/multi_process/client_server_mp/mp_server/ ?
What about other examples?
@@ -275,7 +275,8 @@ smp_port_init(uint16_t port, struct rte_mempool *mbuf_pool,
retval = rte_eth_promiscuous_enable(port);
if (retval != 0)
- return retval;
+ printf("Error during enabling promiscuous mode for port %u: %s - ignore\n",
+ port, rte_strerror(-retval));
retval = rte_eth_dev_start(port);
if (retval < 0)