]> git.baikalelectronics.ru Git - kernel.git/commit
net: ice: fix error NETIF_F_HW_VLAN_CTAG_FILTER check in ice_vsi_sync_fltr()
authorJian Shen <shenjian15@huawei.com>
Fri, 29 Jul 2022 10:17:54 +0000 (18:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Aug 2022 19:09:28 +0000 (12:09 -0700)
commit8c70a61889226e85f6c92a2eb6453f257d01e3a1
treee3b8677c79d5e95878d87aeb299437a3e9ca00ab
parenta8d12ceba5103a93050c116f8df378abb3c02f88
net: ice: fix error NETIF_F_HW_VLAN_CTAG_FILTER check in ice_vsi_sync_fltr()

vsi->current_netdev_flags is used store the current net device
flags, not the active netdevice features. So it should use
vsi->netdev->featurs, rather than vsi->current_netdev_flags
to check NETIF_F_HW_VLAN_CTAG_FILTER.

Fixes: 2fc174e91af7 ("ice: Advertise 802.1ad VLAN filtering and offloads for PF netdev")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Acked-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c