From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F204B46F17; Tue, 16 Sep 2025 19:44:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B555940673; Tue, 16 Sep 2025 19:44:49 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E6320402E8 for ; Tue, 16 Sep 2025 19:44:47 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1094) id 274A0201551F; Tue, 16 Sep 2025 10:44:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 274A0201551F From: mamcgove@microsoft.com To: dev@dpdk.org Cc: Matthew G McGovern Subject: [PATCH 2/2] examples/mp_server: warn on promisc enable failure Date: Tue, 16 Sep 2025 10:44:10 -0700 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: <1747766224-31511-1-git-send-email-mamcgove@microsoft.com> In-Reply-To: References: X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Matthew G McGovern 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 --- 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