From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82783A0565 for ; Tue, 10 Mar 2020 11:33:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A3CF1C02A; Tue, 10 Mar 2020 11:33:46 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 58A581C02A for ; Tue, 10 Mar 2020 11:33:45 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 03:33:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,536,1574150400"; d="scan'208";a="235896103" Received: from unknown (HELO dpdk6.bj.intel.com) ([172.16.182.243]) by fmsmga008.fm.intel.com with ESMTP; 10 Mar 2020 03:33:43 -0700 From: wei zhao To: qabuild@intel.com Cc: Qi Zhang , stable@dpdk.org, Michal Swiatkowski , Paul M Stillwell Jr Date: Tue, 10 Mar 2020 18:12:20 +0800 Message-Id: <1583835183-47260-3-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1583835183-47260-1-git-send-email-wei.zhao1@intel.com> References: <1583835183-47260-1-git-send-email-wei.zhao1@intel.com> Subject: [dpdk-stable] [DPDK 03/46] net/ice/base: fix removing MAC rule 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" From: Qi Zhang Send correct recp_list to ice_remove_mac_rule. ICE_SW_LKUP_ETHERTYPE rule list was sent instead of ICE_SW_LKUP_MAC. That caused problem with adding new mac rule on VF, because rule wasn't removed correctly. Fixes: c7dd15931183 ("net/ice/base: add virtual switch code") Cc: stable@dpdk.org Signed-off-by: Michal Swiatkowski Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index e88d0f7..57b5008 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -4398,7 +4398,7 @@ ice_remove_vsi_lkup_fltr(struct ice_hw *hw, u16 vsi_handle, switch (lkup) { case ICE_SW_LKUP_MAC: - ice_remove_mac_rule(hw, &remove_list_head, recp_list); + ice_remove_mac_rule(hw, &remove_list_head, &recp_list[lkup]); break; case ICE_SW_LKUP_VLAN: ice_remove_vlan(hw, &remove_list_head); -- 2.7.5