iavf: refactor VLAN filter states
authorAhmed Zaki <ahmed.zaki@intel.com>
Thu, 6 Apr 2023 21:35:27 +0000 (15:35 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 7 Apr 2023 15:49:50 +0000 (08:49 -0700)
commit0c0da0e951053fda20412cd284e2714bbbb31bff
treed369bff08a4c03ca9bfc2982029d26fd5a8c1bf9
parentb9881d9a761a7e078c394ff8e30e1659d74f898f
iavf: refactor VLAN filter states

The VLAN filter states are currently being saved as individual bits.
This is error prone as multiple bits might be mistakenly set.

Fix by replacing the bits with a single state enum. Also, add an
"ACTIVE" state for filters that are accepted by the PF.

Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@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