]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix max VLANs available for VF
authorPrzemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Mon, 4 Jul 2022 13:46:12 +0000 (15:46 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 26 Jul 2022 20:15:18 +0000 (13:15 -0700)
commit8b24e39aacc9d1ce330b0669d3999cc328021ecd
treeb695b7a50dbe3bb69d801cea1ee8161bc712a166
parent24a46ac8d00834e7423d2fc11ce9d7f5771dfa45
ice: Fix max VLANs available for VF

Legacy VLAN implementation allows for untrusted VF to have 8 VLAN
filters, not counting VLAN 0 filters. Current VLAN_V2 implementation
lowers available filters for VF, by counting in VLAN 0 filter for both
TPIDs.
Fix this by counting only non zero VLAN filters.
Without this patch, untrusted VF would not be able to access 8 VLAN
filters.

Fixes: 96a5a9192ff1 ("ice: Add support for VIRTCHNL_VF_OFFLOAD_VLAN_V2")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl.c