]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Remove vlan_ena from vsi structure
authorNick Nunley <nicholas.d.nunley@intel.com>
Thu, 17 Sep 2020 20:13:43 +0000 (13:13 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Dec 2020 16:11:54 +0000 (08:11 -0800)
commitc1b145764ebb63529dd0094db591d898159f4d7a
treed5ab5e691ef1ac3cf502e955ce7e0e46a9cf53e0
parentc6ad50018a06cab65e30a45a9c5dc735f67acdb3
ice: Remove vlan_ena from vsi structure

vlan_ena was introduced to track whether VLAN filters are enabled on
the device, but
1) checking for num_vlan > 1 already gives us this information, and is
currently used in this way throughout the code
2) the logic for vlan_ena is broken when multiple VLANs are active

Just remove vlan_ena and use num_vlan instead.

Signed-off-by: Nick Nunley <nicholas.d.nunley@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_main.c