ixgbe: fix spoofed packets with macvlans
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 2 Jun 2016 01:59:44 +0000 (18:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 Jun 2016 20:06:31 +0000 (13:06 -0700)
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

index c5caacdd193d39dca9e10287ccaac3964ada5e4e..8618599dfd6f5984ba77a23e7bdac658ddeb7958 100644 (file)
@@ -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);
                }
        }