Skip to content

Commit

Permalink
net/mlx4_en: Implement ndo_gso_check()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Stringer authored and David S. Miller committed Nov 14, 2014
1 parent 725d548 commit 956bdab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/mellanox/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
};

Expand Down

0 comments on commit 956bdab

Please sign in to comment.