[Intel-wired-lan] [PATCH S33 03/15] ice: Disallow VF VLAN opcodes if VLAN offloads disabled
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Nov 12 19:31:24 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Friday, November 8, 2019 6:23 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S33 03/15] ice: Disallow VF VLAN opcodes if
> VLAN offloads disabled
>
> From: Brett Creeley <brett.creeley at intel.com>
>
> Currently if the host disables VLAN offloads on the VF by not setting the
> VIRTCHNL_VF_OFFLOAD_VLAN capability bit we will still honor VF VLAN
> configuration messages over VIRTCHNL. These messages (i.e. enable/disable
> VLAN stripping and VLAN filtering) should be blocked when the feature is not
> supported. Fix that by adding a helper function to determine if the VF is
> allowed to do VLAN operations based on the host's VF configuration.
>
> Also, mirror the VF communicated capabilities in the host's VF configuration.
>
> Signed-off-by: Brett Creeley <brett.creeley at intel.com>
> ---
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list