patches for DPDK stable branches
 help / color / mirror / Atom feed
From: wei zhao <wei.zhao1@intel.com>
To: qabuild@intel.com
Cc: Qi Zhang <qi.z.zhang@intel.com>,
	stable@dpdk.org,
	Michal Swiatkowski <michal.swiatkowski@intel.com>,
	Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Subject: [dpdk-stable] [DPDK 03/46] net/ice/base: fix removing MAC rule
Date: Tue, 10 Mar 2020 18:12:20 +0800	[thread overview]
Message-ID: <1583835183-47260-3-git-send-email-wei.zhao1@intel.com> (raw)
In-Reply-To: <1583835183-47260-1-git-send-email-wei.zhao1@intel.com>

From: Qi Zhang <qi.z.zhang@intel.com>

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 <michal.swiatkowski@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
 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


  reply	other threads:[~2020-03-10 10:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 10:12 [dpdk-stable] [DPDK 01/46] net/ice/base: fix uninitialized stack variables wei zhao
2020-03-10 10:12 ` wei zhao [this message]
2020-03-10 10:13 ` [dpdk-stable] [DPDK 44/46] net/ice: change default tunnle type wei zhao
2020-03-10 10:13 ` [dpdk-stable] [DPDK 45/46] net/ice: add action number check for swicth wei zhao
2020-03-10 10:13 ` [dpdk-stable] [DPDK 46/46] net/ice: fix input set of VLAN item wei zhao
2020-03-10 10:26 [dpdk-stable] [DPDK 01/46] net/ice/base: fix uninitialized stack variables wei zhao
2020-03-10 10:26 ` [dpdk-stable] [DPDK 03/46] net/ice/base: fix removing MAC rule wei zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583835183-47260-3-git-send-email-wei.zhao1@intel.com \
    --to=wei.zhao1@intel.com \
    --cc=michal.swiatkowski@intel.com \
    --cc=paul.m.stillwell.jr@intel.com \
    --cc=qabuild@intel.com \
    --cc=qi.z.zhang@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).