mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-19 12:00:00 +00:00
ice: Implement toggling ethtool rx-vlan-filter
Implement the toggling of rx-vlan-filter; enable|disable VLAN pruning based on on|off, respectively. Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
588d511f89
commit
3171948e94
@ -2876,6 +2876,13 @@ ice_set_features(struct net_device *netdev, netdev_features_t features)
|
||||
(netdev->features & NETIF_F_HW_VLAN_CTAG_TX))
|
||||
ret = ice_vsi_manage_vlan_insertion(vsi);
|
||||
|
||||
if ((features & NETIF_F_HW_VLAN_CTAG_FILTER) &&
|
||||
!(netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
|
||||
ret = ice_cfg_vlan_pruning(vsi, true, false);
|
||||
else if (!(features & NETIF_F_HW_VLAN_CTAG_FILTER) &&
|
||||
(netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
|
||||
ret = ice_cfg_vlan_pruning(vsi, false, false);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user