iavf: Fix VF driver counting VLAN 0 filters
authorMichal Jaron <michalx.jaron@intel.com>
Fri, 14 Oct 2022 08:45:37 +0000 (10:45 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Nov 2022 21:20:55 +0000 (13:20 -0800)
commit0e710a3ffd0caaf23b8791b041e8792f252f8e4f
tree908cba763815e9859afc163fb2e3a23bcc2e17ff
parentf23df5220d2bf8d5e639f074b76f206a736d09e1
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: 968996c070ef ("iavf: Fix VLAN_V2 addition/rejection")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Michal Jaron <michalx.jaron@intel.com>
Signed-off-by: Kamil Maziarz <kamil.maziarz@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c