From: Roopa Prabhu <roopa@cumulusnetworks.com>
To: davem@davemloft.net, netdev@vger.kernel.org
Cc: dsa@cumulusnetworks.com, buytenh@wantstofly.org,
ebiederm@xmission.com, rshearma@brocade.com,
simon.horman@netronome.com, tom@herbertland.com, tgraf@suug.ch,
olivier.dugeon@orange.com
Subject: [PATCH net-next 3/3] net: veth: set features for MPLS
Date: Wed, 10 Aug 2016 23:43:32 -0700 [thread overview]
Message-ID: <1470897812-8213-4-git-send-email-roopa@cumulusnetworks.com> (raw)
In-Reply-To: <1470897812-8213-1-git-send-email-roopa@cumulusnetworks.com>
From: David Ahern <dsa@cumulusnetworks.com>
With hw checksum and gso set, netperf through veth for mpls is
on par without mpls.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Reported-by: Lennert Buytenhek <buytenh@wantstofly.org>
---
drivers/net/veth.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index f37a6e6..5db320a 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -340,6 +340,7 @@ static void veth_setup(struct net_device *dev)
dev->hw_features = VETH_FEATURES;
dev->hw_enc_features = VETH_FEATURES;
+ dev->mpls_features = NETIF_F_HW_CSUM | NETIF_F_GSO_SOFTWARE;
}
/*
--
1.9.1
next prev parent reply other threads:[~2016-08-11 6:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 6:43 [PATCH net-next 0/3] lwtunnel, mpls fragmentation and gso fixes Roopa Prabhu
2016-08-11 6:43 ` [PATCH net-next 1/3] lwtunnel: xmit redirect Roopa Prabhu
2016-08-11 7:04 ` kbuild test robot
2016-08-11 7:07 ` kbuild test robot
2016-08-11 6:43 ` [PATCH net-next 2/3] net: mpls fixes for GSO Roopa Prabhu
2016-08-11 7:47 ` Simon Horman
2016-08-11 13:30 ` Simon Horman
2016-08-11 13:47 ` David Ahern
2016-08-11 6:43 ` Roopa Prabhu [this message]
2016-08-11 13:49 ` [PATCH net-next 0/3] lwtunnel, mpls fragmentation and gso fixes Roopa Prabhu
-- strict thread matches above, loose matches on Subject: below --
2016-08-17 21:49 [PATCH v2 net-next 0/3] net: mpls: fragmentation and gso fixes for locally originated traffic David Ahern
2016-08-17 21:49 ` [PATCH net-next 3/3] net: veth: Set features for MPLS David Ahern
2016-08-17 22:41 ` Eric Dumazet
2016-08-17 22:53 ` David Ahern
2016-08-19 17:08 [PATCH v3 net-next 0/3] net: mpls: fragmentation and gso fixes for locally originated traffic David Ahern
2016-08-19 17:09 ` [PATCH net-next 3/3] net: veth: Set features for MPLS David Ahern
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=1470897812-8213-4-git-send-email-roopa@cumulusnetworks.com \
--to=roopa@cumulusnetworks.com \
--cc=buytenh@wantstofly.org \
--cc=davem@davemloft.net \
--cc=dsa@cumulusnetworks.com \
--cc=ebiederm@xmission.com \
--cc=netdev@vger.kernel.org \
--cc=olivier.dugeon@orange.com \
--cc=rshearma@brocade.com \
--cc=simon.horman@netronome.com \
--cc=tgraf@suug.ch \
--cc=tom@herbertland.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