]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix VLAN_V2 addition/rejection
authorPrzemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Fri, 10 Jun 2022 12:15:54 +0000 (14:15 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Jul 2022 16:36:40 +0000 (09:36 -0700)
commit00818fbb85a7bf963ff3ec3a03e473305654e88e
treedc511c236f15385fc6fc9cda2f3ced50d945ffb9
parent0dac5f932a938ad5730090f924457dbe258905fc
iavf: Fix VLAN_V2 addition/rejection

Fix VLAN addition, so that PF driver does not reject whole VLAN batch.
Add VLAN reject handling, so rejected VLANs, won't litter VLAN filter
list. Fix handling of active_(c/s)vlans, so it will be possible to
re-add VLAN filters for user.
Without this patch, after changing trust to off, with VLAN filters
saturated, no VLAN is added, due to PF rejecting addition.

Fixes: a4c862a6e953 ("iavf: Restrict maximum VLAN filters for VIRTCHNL_VF_OFFLOAD_VLAN_V2")
Signed-off-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@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.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c