diff options
| author | Brett Creeley <[email protected]> | 2019-11-08 14:23:20 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-11-22 21:06:34 +0000 |
| commit | 2f9ec2419820350ee70b49a3c4feaa5b7b242f33 (patch) | |
| tree | 8c7ff900ee939a459d2ce632d0b58d43d27e247b /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | ice: Disallow VF VLAN opcodes if VLAN offloads disabled (diff) | |
| download | kernel-2f9ec2419820350ee70b49a3c4feaa5b7b242f33.tar.gz kernel-2f9ec2419820350ee70b49a3c4feaa5b7b242f33.zip | |
ice: Don't modify stripping for add/del VLANs on VF
Currently when adding/deleting vlans in ice_vc_process_vlan_msg()
we are calling ice_vsi_manage_vlan_stripping() to enable/disable
when adding and deleting a VLAN respectively. This is wrong
because adding/deleting VLANs has nothing to do with configuring
VLAN stripping. VLAN stripping is configured through the
following VIRTCHNL operations:
VIRTCHNL_OP_ENABLE_VLAN_STRIPPING
VIRTCHNL_OP_DISABLE_VLAN_STRIPPING
Unfortunately we can't just remove this because then stripping
will never be configured on VF initialization. Fix this by
adding a new function that initializes (disables/enables) VLAN
stripping for the VF based on the device supported capabilities.
This allows us to remove the call to
ice_vsi_manage_vlan_stripping() in ice_vc_process_vlan_msg().
Signed-off-by: Brett Creeley <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
