diff options
author | Jian Shen <shenjian15@huawei.com> | 2022-07-29 18:17:54 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-01 12:09:28 -0700 |
commit | 7dc839fe47611e6995f370cae37b9797cf7d2672 (patch) | |
tree | e3b8677c79d5e95878d87aeb299437a3e9ca00ab /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | 9fe2e6f3960687ab2a297fe09837a3f47cd2331f (diff) | |
download | lwn-7dc839fe47611e6995f370cae37b9797cf7d2672.tar.gz lwn-7dc839fe47611e6995f370cae37b9797cf7d2672.zip |
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: 1babaf77f49d ("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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 9f02b60459f1..bc68dc5c6927 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -433,7 +433,7 @@ static int ice_vsi_sync_fltr(struct ice_vsi *vsi) IFF_PROMISC; goto out_promisc; } - if (vsi->current_netdev_flags & + if (vsi->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) vlan_ops->ena_rx_filtering(vsi); } |