From: Matthew G McGovern <mamcg...@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 <mamcg...@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