Skip to content

Commit 3171948

Browse files
anguy11Jeff Kirsher
authored andcommitted
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 <[email protected]> Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 588d511 commit 3171948

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,6 +2876,13 @@ ice_set_features(struct net_device *netdev, netdev_features_t features)
28762876
(netdev->features & NETIF_F_HW_VLAN_CTAG_TX))
28772877
ret = ice_vsi_manage_vlan_insertion(vsi);
28782878

2879+
if ((features & NETIF_F_HW_VLAN_CTAG_FILTER) &&
2880+
!(netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
2881+
ret = ice_cfg_vlan_pruning(vsi, true, false);
2882+
else if (!(features & NETIF_F_HW_VLAN_CTAG_FILTER) &&
2883+
(netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER))
2884+
ret = ice_cfg_vlan_pruning(vsi, false, false);
2885+
28792886
return ret;
28802887
}
28812888

0 commit comments

Comments
 (0)