]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: fix spoofed packets with macvlans
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 2 Jun 2016 01:59:44 +0000 (18:59 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:43 +0000 (21:47 -0800)
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 <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 581e0c7df90b1a7f92e7ac3e69000b414319f161)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

index c7cb117dea7b3c416abb4fec2b3a99e1f185a0bd..8ff1395cd6ec52946459fe5b308ab008eb0d42ec 100644 (file)
@@ -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);
                }
        }