aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorPrzemyslaw Patynowski <[email protected]>2022-07-04 13:46:12 +0000
committerTony Nguyen <[email protected]>2022-07-26 20:15:18 +0000
commit1e308c6fb7127371f48a0fb9770ea0b30a6b5698 (patch)
treeb695b7a50dbe3bb69d801cea1ee8161bc712a166 /drivers/net/ethernet/intel/ice/ice_main.c
parentbridge: Do not send empty IFLA_AF_SPEC attribute (diff)
downloadkernel-1e308c6fb7127371f48a0fb9770ea0b30a6b5698.tar.gz
kernel-1e308c6fb7127371f48a0fb9770ea0b30a6b5698.zip
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: cc71de8fa133 ("ice: Add support for VIRTCHNL_VF_OFFLOAD_VLAN_V2") Signed-off-by: Przemyslaw Patynowski <[email protected]> Signed-off-by: Mateusz Palczewski <[email protected]> Tested-by: Marek Szlosek <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions