From: Emil Tantilov Date: Thu, 2 Jun 2016 01:59:44 +0000 (-0700) Subject: ixgbe: fix spoofed packets with macvlans X-Git-Tag: v4.1.12-92~2^2~171 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a9d0159933bc8a2ce28cfac7fcc7e518e0938b8a;p=users%2Fjedix%2Flinux-maple.git ixgbe: fix spoofed packets with macvlans Orabug: 24568240 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. Signed-off-by: Emil Tantilov Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher (cherry picked from commit 581e0c7df90b1a7f92e7ac3e69000b414319f161) Signed-off-by: Brian Maly --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c index c7cb117dea7b3..8ff1395cd6ec5 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c @@ -951,6 +951,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); } }