From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id EA320A0096 for ; Thu, 11 Apr 2019 04:19:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D0AFF2BCE; Thu, 11 Apr 2019 04:19:29 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1233E2BCE for ; Thu, 11 Apr 2019 04:19:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2019 19:19:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,335,1549958400"; d="scan'208";a="141783166" Received: from npg_dpdk-cvl_simeisu_116d180.sh.intel.com ([10.67.116.180]) by fmsmga007.fm.intel.com with ESMTP; 10 Apr 2019 19:19:26 -0700 From: Wang Ying A To: qabuild@intel.com Cc: Wang Ying A , stable@dpdk.org Date: Thu, 11 Apr 2019 09:38:18 +0800 Message-Id: <1554946698-124771-2-git-send-email-ying.a.wang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1554946698-124771-1-git-send-email-ying.a.wang@intel.com> References: <1554946698-124771-1-git-send-email-ying.a.wang@intel.com> Subject: [dpdk-stable] [DPDK 2/2] net/ice: fix promiscuous mode X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" When device promiscuous mode is already enabled, "set promisc all on" in testpmd command line should give the user a hint not a error print. This patch fixes the issue. Fixes: c945e4bf9063 ("net/ice: support promiscuous mode") Cc: stable@dpdk.org Signed-off-by: Wang Ying A --- drivers/net/ice/ice_ethdev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 72831bb..c4d91bc 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -2760,7 +2760,12 @@ static int ice_macaddr_set(struct rte_eth_dev *dev, status = ice_set_vsi_promisc(hw, vsi->idx, pmask, 0); if (status != ICE_SUCCESS) - PMD_DRV_LOG(ERR, "Failed to enable promisc, err=%d", status); + { + if(status == ICE_ERR_ALREADY_EXISTS) + PMD_DRV_LOG(ERR, "promisc mode is already enabled"); + else + PMD_DRV_LOG(ERR, "Failed to enable promisc, err=%d", status); + } } static void -- 1.8.3.1