diff options
author | Joe Stringer <joestringer@nicira.com> | 2014-12-05 14:35:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 16:05:33 -0500 |
commit | 51de7bb9ab430f1db4d07e2b5e0711c48cb5a7e6 (patch) | |
tree | b1fb4acc1f989aeed3c9c5347b0c21eb0e379f8c /drivers/net/ethernet | |
parent | 244d62be91ddcea55ec6d456dbb7f71d411d21f0 (diff) |
bnx2x: Implement ndo_gso_check()
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 74fbf9ea7bd8..893cdb6a423e 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <net/ip.h> | 45 | #include <net/ip.h> |
46 | #include <net/ipv6.h> | 46 | #include <net/ipv6.h> |
47 | #include <net/tcp.h> | 47 | #include <net/tcp.h> |
48 | #include <net/vxlan.h> | ||
48 | #include <net/checksum.h> | 49 | #include <net/checksum.h> |
49 | #include <net/ip6_checksum.h> | 50 | #include <net/ip6_checksum.h> |
50 | #include <linux/workqueue.h> | 51 | #include <linux/workqueue.h> |
@@ -12550,6 +12551,11 @@ static int bnx2x_get_phys_port_id(struct net_device *netdev, | |||
12550 | return 0; | 12551 | return 0; |
12551 | } | 12552 | } |
12552 | 12553 | ||
12554 | static bool bnx2x_gso_check(struct sk_buff *skb, struct net_device *dev) | ||
12555 | { | ||
12556 | return vxlan_gso_check(skb); | ||
12557 | } | ||
12558 | |||
12553 | static const struct net_device_ops bnx2x_netdev_ops = { | 12559 | static const struct net_device_ops bnx2x_netdev_ops = { |
12554 | .ndo_open = bnx2x_open, | 12560 | .ndo_open = bnx2x_open, |
12555 | .ndo_stop = bnx2x_close, | 12561 | .ndo_stop = bnx2x_close, |
@@ -12581,6 +12587,7 @@ static const struct net_device_ops bnx2x_netdev_ops = { | |||
12581 | #endif | 12587 | #endif |
12582 | .ndo_get_phys_port_id = bnx2x_get_phys_port_id, | 12588 | .ndo_get_phys_port_id = bnx2x_get_phys_port_id, |
12583 | .ndo_set_vf_link_state = bnx2x_set_vf_link_state, | 12589 | .ndo_set_vf_link_state = bnx2x_set_vf_link_state, |
12590 | .ndo_gso_check = bnx2x_gso_check, | ||
12584 | }; | 12591 | }; |
12585 | 12592 | ||
12586 | static int bnx2x_set_coherency_mask(struct bnx2x *bp) | 12593 | static int bnx2x_set_coherency_mask(struct bnx2x *bp) |