]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: consolidate the configuration of spoof checking
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 18 Mar 2016 23:11:14 +0000 (16:11 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 25 Apr 2016 00:54:22 +0000 (17:54 -0700)
commita3953fe3991971fda756e5c37f334f7f6d5e5d93
tree5df9b6f75eb4d5807b062ec0b9ef3c768da843e3
parentc24f111438b42a44f370ddebd61bfd86a4d6aec6
ixgbe: consolidate the configuration of spoof checking

Consolidate the logic behind configuring spoof checking:

Move the setting of the MAC, VLAN and Ethertype spoof checking into
ixgbe_ndo_set_vf_spoofchk().

Change ixgbe_set_mac_anti_spoofing() to set MAC spoofing per VF similar
to the VLAN and Ethertype functions - this allows us to call the helper
functions in ixgbe_ndo_set_vf_spoofchk() for all spoof check types and
only disable MAC spoof checking when creating MACVLAN.

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_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c