[Intel-wired-lan] [PATCH 1/2] ixgbe: consolidate the configuration of spoof checking

Bowers, AndrewX andrewx.bowers at intel.com
Tue Apr 12 21:58:19 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Emil Tantilov
> Sent: Friday, March 18, 2016 4:11 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 1/2] 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 at intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_common.c |   40 ++++++--------------
> -
>  drivers/net/ethernet/intel/ixgbe/ixgbe_common.h |    2 +
>  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c   |   30 ++--------------
>  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c  |   44 +++++++++++++++----
> ----
>  4 files changed, 43 insertions(+), 73 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>


More information about the Intel-wired-lan mailing list