Skip to contentSkip to conversation

ixgbe: fix MAC anti-spoofing filter after VFLR

PATCH New Radoslaw Tyl 3 participants 3 messages Oct 22, 2018 – Oct 31, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: fix MAC anti-spoofing filter after VFLR

This change resolves a driver bug where the driver is logging a message that says "Spoofed packets detected". This can occur on the PF (host) when a VF has VLAN+MACVLAN enabled and is re-started with a different MAC address.

MAC and VLAN anti-spoofing filters are to be enabled together.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +3 -1
index af25a8f..5dacfc8 100644
@@ -722,8 +722,10 @@ static inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf)
 			ixgbe_set_vmvir(adapter, vfinfo->pf_vlan,
 					adapter->default_up, vf);
 
-		if (vfinfo->spoofchk_enabled)
+		if (vfinfo->spoofchk_enabled) {
 			hw->mac.ops.set_vlan_anti_spoofing(hw, true, vf);
+			hw->mac.ops.set_mac_anti_spoofing(hw, true, vf);
+		}
 	}
 
 	/* reset multicast table array for vf */
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 ixgbe: fix MAC anti-spoofing filter after VFLR

Quoted 14 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Radoslaw Tyl
Sent: Sunday, October 21, 2018 11:45 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Tyl, RadoslawX <[email protected]>
Subject: [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR

This change resolves a driver bug where the driver is logging a message that says "Spoofed packets detected". This can occur on the PF
(host) when a VF has VLAN+MACVLAN enabled and is re-started with a different MAC address.

Quoted 6 lines

MAC and VLAN anti-spoofing filters are to be enabled together.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
#2 lore raw

PATCH 1/1 ixgbe: fix MAC anti-spoofing filter after VFLR

Quoted 14 lines
Quoted 14 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Radoslaw Tyl
Sent: Sunday, October 21, 2018 11:45 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Tyl, RadoslawX <[email protected]>
Subject: [Intel-wired-lan] [PATCH] ixgbe: fix MAC anti-spoofing filter after VFLR

This change resolves a driver bug where the driver is logging a message that says "Spoofed packets detected". This can occur on the PF
(host) when a VF has VLAN+MACVLAN enabled and is re-started with a different MAC address.

Quoted 8 lines
Quoted 6 lines

MAC and VLAN anti-spoofing filters are to be enabled together.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)