aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-02-03 10:57:21 -0500
committerDavid S. Miller <davem@davemloft.net>2015-02-04 19:17:46 -0500
commitcfb53f36a5b5eb60213fdb6ba191eb9d8b5e1163 (patch)
tree1bc80ae48985c94472d26ec6a1d7e346ee16b2a8 /drivers/net/ethernet
parente8e7f018f1951b0359647ca0c1ff1be4f896b99f (diff)
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_netdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index 028937b2a199..2a210c4efb89 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -2202,6 +2202,10 @@ static int mlx4_en_set_features(struct net_device *netdev,
2202 return ret; 2202 return ret;
2203 } 2203 }
2204 2204
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
2205 if (features & NETIF_F_LOOPBACK) 2209 if (features & NETIF_F_LOOPBACK)
2206 priv->ctrl_flags |= cpu_to_be32(MLX4_WQE_CTRL_FORCE_LOOPBACK); 2210 priv->ctrl_flags |= cpu_to_be32(MLX4_WQE_CTRL_FORCE_LOOPBACK);
2207 else 2211 else