Commit 725d548f authored by Joe Stringer's avatar Joe Stringer Committed by David S. Miller

be2net: Implement ndo_gso_check()

Use vxlan_gso_check() to advertise offload support for this NIC.
Signed-off-by: default avatarJoe Stringer <joestringer@nicira.com>
Acked-by: default avatarSathya Perla <sperla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23e62de3
...@@ -4421,6 +4421,11 @@ static void be_del_vxlan_port(struct net_device *netdev, sa_family_t sa_family, ...@@ -4421,6 +4421,11 @@ static void be_del_vxlan_port(struct net_device *netdev, sa_family_t sa_family,
"Disabled VxLAN offloads for UDP port %d\n", "Disabled VxLAN offloads for UDP port %d\n",
be16_to_cpu(port)); be16_to_cpu(port));
} }
static bool be_gso_check(struct sk_buff *skb, struct net_device *dev)
{
return vxlan_gso_check(skb);
}
#endif #endif
static const struct net_device_ops be_netdev_ops = { static const struct net_device_ops be_netdev_ops = {
...@@ -4450,6 +4455,7 @@ static const struct net_device_ops be_netdev_ops = { ...@@ -4450,6 +4455,7 @@ static const struct net_device_ops be_netdev_ops = {
#ifdef CONFIG_BE2NET_VXLAN #ifdef CONFIG_BE2NET_VXLAN
.ndo_add_vxlan_port = be_add_vxlan_port, .ndo_add_vxlan_port = be_add_vxlan_port,
.ndo_del_vxlan_port = be_del_vxlan_port, .ndo_del_vxlan_port = be_del_vxlan_port,
.ndo_gso_check = be_gso_check,
#endif #endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment