Skip to content

Commit cfb53f3

Browse files
shamoyadavem330
authored andcommitted
net/mlx4_en: Notify TX Vlan offload change
Notify users when TX vlan offload feature changed with ethtool. Relevant command - ethtool -K <eth> txvlan on/off. Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e8e7f01 commit cfb53f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mellanox/mlx4/en_netdev.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,10 @@ static int mlx4_en_set_features(struct net_device *netdev,
22022202
return ret;
22032203
}
22042204

2205+
if (DEV_FEATURE_CHANGED(netdev, features, NETIF_F_HW_VLAN_CTAG_TX))
2206+
en_info(priv, "Turn %s TX vlan strip offload\n",
2207+
(features & NETIF_F_HW_VLAN_CTAG_TX) ? "ON" : "OFF");
2208+
22052209
if (features & NETIF_F_LOOPBACK)
22062210
priv->ctrl_flags |= cpu_to_be32(MLX4_WQE_CTRL_FORCE_LOOPBACK);
22072211
else

0 commit comments

Comments
 (0)