From: Joe Stringer <joestringer@nicira.com>
To: netdev@vger.kernel.org
Cc: sathya.perla@emulex.com, shahed.shaikh@qlogic.com,
amirv@mellanox.com, Dept-GELinuxNICDev@qlogic.com,
therbert@google.com, gerlitz.or@gmail.com,
alexander.duyck@gmail.com, linux-kernel@vger.kernel.org
Subject: [PATCHv2 net 3/4] net/mlx4_en: Implement ndo_gso_check()
Date: Thu, 13 Nov 2014 16:38:14 -0800 [thread overview]
Message-ID: <1415925495-59312-4-git-send-email-joestringer@nicira.com> (raw)
In-Reply-To: <1415925495-59312-1-git-send-email-joestringer@nicira.com>
Use vxlan_gso_check() to advertise offload support for this NIC.
Signed-off-by: Joe Stringer <joestringer@nicira.com>
---
v2: Refactor out vxlan helper.
---
drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index 02266e3..c5fcc56 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -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
};
--
1.7.10.4
next prev parent reply other threads:[~2014-11-14 0:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 0:38 [PATCHv2 net 0/4] Implement ndo_gso_check() for vxlan nics Joe Stringer
2014-11-14 0:38 ` [PATCHv2 net 1/4] net: Add vxlan_gso_check() helper Joe Stringer
2014-11-14 0:38 ` [PATCHv2 net 2/4] be2net: Implement ndo_gso_check() Joe Stringer
2014-11-14 9:43 ` Sathya Perla
2014-11-14 0:38 ` Joe Stringer [this message]
2014-11-16 9:32 ` [PATCHv2 net 3/4] net/mlx4_en: " Or Gerlitz
2014-11-14 0:38 ` [PATCHv2 net 4/4] qlcnic: " Joe Stringer
2014-11-14 5:08 ` Shahed Shaikh
2014-11-14 22:13 ` [PATCHv2 net 0/4] Implement ndo_gso_check() for vxlan nics David Miller
2014-11-17 17:50 ` Joe Stringer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415925495-59312-4-git-send-email-joestringer@nicira.com \
--to=joestringer@nicira.com \
--cc=Dept-GELinuxNICDev@qlogic.com \
--cc=alexander.duyck@gmail.com \
--cc=amirv@mellanox.com \
--cc=gerlitz.or@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sathya.perla@emulex.com \
--cc=shahed.shaikh@qlogic.com \
--cc=therbert@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®