iavf: refactor VLAN filter states

[ Upstream commit 0c0da0e951 ]

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>
Stable-dep-of: 9c85b7fa12 ("iavf: remove active_cvlans and active_svlans bitmaps")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ahmed Zaki 2023-04-06 15:35:27 -06:00 • committed by Greg Kroah-Hartman
commit aa0f377c9b
3 changed files with 28 additions and 26 deletions