Skip to contentSkip to conversation

ixgbe: fix spoofed packets with macvlans

PATCH New Emil Tantilov 2 participants 2 messages Jun 2, 2016 – Jun 9, 2016

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

PATCH 1/1 ixgbe: fix spoofed packets with macvlans

When setting spoofing both vlan and mac need to be set together. This change resolves an issue where mac-vlans on the VF fail to pass traffic due to spoofed packets.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +1 -0
index 398d7a9..40687e5 100644
@@ -954,6 +954,7 @@ static int ixgbe_set_vf_macvlan_msg(struct ixgbe_adapter *adapter,
 			struct ixgbe_hw *hw = &adapter->hw;
 
 			hw->mac.ops.set_mac_anti_spoofing(hw, false, vf);
+			hw->mac.ops.set_vlan_anti_spoofing(hw, false, vf);
 		}
 	}
 
#1 lore raw

PATCH 1/1 ixgbe: fix spoofed packets with macvlans

Quoted 7 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Emil Tantilov
Sent: Wednesday, June 01, 2016 7:00 PM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH] ixgbe: fix spoofed packets with macvlans

Quoted 8 lines

When setting spoofing both vlan and mac need to be set together. This change resolves an issue where mac-vlans on the VF fail to pass traffic due to spoofed packets.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c |    1 +
 1 file changed, 1 insertion(+)

macvlan traffic passes normally