Skip to content

Commit 0e710a3

Browse files
michalx-jaronanguy11
authored andcommitted
iavf: Fix VF driver counting VLAN 0 filters
VF driver mistakenly counts VLAN 0 filters, when no PF driver counts them. Do not count VLAN 0 filters, when VLAN_V2 is engaged. Counting those filters in, will affect filters size by -1, when sending batched VLAN addition message. Fixes: 968996c ("iavf: Fix VLAN_V2 addition/rejection") Signed-off-by: Przemyslaw Patynowski <[email protected]> Signed-off-by: Michal Jaron <[email protected]> Signed-off-by: Kamil Maziarz <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent f23df52 commit 0e710a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/iavf/iavf_virtchnl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,8 @@ void iavf_virtchnl_completion(struct iavf_adapter *adapter,
24382438
list_for_each_entry(f, &adapter->vlan_filter_list, list) {
24392439
if (f->is_new_vlan) {
24402440
f->is_new_vlan = false;
2441+
if (!f->vlan.vid)
2442+
continue;
24412443
if (f->vlan.tpid == ETH_P_8021Q)
24422444
set_bit(f->vlan.vid,
24432445
adapter->vsi.active_cvlans);

0 commit comments

Comments
 (0)