From: Qi Zhang Date: Mon, 23 Mar 2020 07:17:26 +0000 (+0800) Subject: net/ice/base: fix removing MAC rule X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a1f5c1c27ce353be0015b742b9b950316b0c3d4e;p=dpdk.git net/ice/base: fix removing MAC rule 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 Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index e88d0f7fe7..57b50085d6 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);