]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Refactor spoofcheck configuration functions
authorBrett Creeley <brett.creeley@intel.com>
Thu, 2 Dec 2021 16:38:39 +0000 (08:38 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Feb 2022 17:24:45 +0000 (09:24 -0800)
commit7c9e994e4bf74ebd5ba87ddb27b9097c84abc6bf
tree2af8a7ba05da24e5cba19e5b349c42a4f0fcd43c
parent525fa9fac98965614f870fbbba85852e7dfe0174
ice: Refactor spoofcheck configuration functions

Add functions to configure Tx VLAN antispoof based on iproute
configuration and/or VLAN mode and VF driver support. This is needed
later so the driver can control when it can be configured. Also, add
functions that can be used to enable and disable MAC and VLAN
spoofcheck. Move spoofchk configuration during VSI setup into the
SR-IOV initialization path and into the post VSI rebuild flow for VF
VSIs.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c