]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net/mlx4_en: Implement ndo_gso_check()
authorJoe Stringer <joestringer@nicira.com>
Fri, 14 Nov 2014 00:38:14 +0000 (16:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Nov 2014 22:12:48 +0000 (17:12 -0500)
Use vxlan_gso_check() to advertise offload support for this NIC.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c

index 02266e3de514f21c263ea91e9d3555475dc95099..c5fcc56ec06b5b2d0fdd6bae101129984c1443ef 100644 (file)
@@ -2355,6 +2355,11 @@ static void mlx4_en_del_vxlan_port(struct  net_device *dev,
 
        queue_work(priv->mdev->workqueue, &priv->vxlan_del_task);
 }
+
+static bool mlx4_en_gso_check(struct sk_buff *skb, struct net_device *dev)
+{
+       return vxlan_gso_check(skb);
+}
 #endif
 
 static const struct net_device_ops mlx4_netdev_ops = {
@@ -2386,6 +2391,7 @@ static const struct net_device_ops mlx4_netdev_ops = {
 #ifdef CONFIG_MLX4_EN_VXLAN
        .ndo_add_vxlan_port     = mlx4_en_add_vxlan_port,
        .ndo_del_vxlan_port     = mlx4_en_del_vxlan_port,
+       .ndo_gso_check          = mlx4_en_gso_check,
 #endif
 };