diff options
author | Joe Stringer <joestringer@nicira.com> | 2014-11-14 01:38:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-14 23:12:48 +0100 |
commit | 725d548f14362f10c9235ee4b32dc22e7c55e50c (patch) | |
tree | 3758cbe668fe522a6720ef160605fcd47c048f17 /drivers/net/ethernet/emulex/benet | |
parent | net: Add vxlan_gso_check() helper (diff) | |
download | linux-725d548f14362f10c9235ee4b32dc22e7c55e50c.tar.xz linux-725d548f14362f10c9235ee4b32dc22e7c55e50c.zip |
be2net: Implement ndo_gso_check()
Use vxlan_gso_check() to advertise offload support for this NIC.
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Sathya Perla <sperla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 9a18e7930b31..3e8475cae4f9 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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", be16_to_cpu(port)); } + +static bool be_gso_check(struct sk_buff *skb, struct net_device *dev) +{ + return vxlan_gso_check(skb); +} #endif 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 .ndo_add_vxlan_port = be_add_vxlan_port, .ndo_del_vxlan_port = be_del_vxlan_port, + .ndo_gso_check = be_gso_check, #endif }; |