]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:27 +0000 (21:47 -0800)
commitd73920c0b6808b1ab79b6fceb81ed0c5e6f26d9f
tree95b430e743c488a15a02c3ca498574b074f83142
parent62fae7de558b06ca0bbb88e60e38708ea6a5e5e8
ixgbe: consolidate the configuration of spoof checking

Orabug: 24568240

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>
(cherry picked from commit 77f192af721440a9d91365438be6ecb98edd0310)
Signed-off-by: Brian Maly <brian.maly@oracle.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