From: Wolfgang Walter <linux@stwm.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@vger.kernel.org, Tom Herbert <therbert@google.com>
Subject: Re: sit: Set SKB_GSO_SIT bit when performing GRO
Date: Thu, 16 Jul 2015 12:58:45 +0200 [thread overview]
Message-ID: <2115027.IFUsFvOUns@stwm.de> (raw)
In-Reply-To: <20150716002350.GA7529@gondor.apana.org.au>
Am Donnerstag, 16. Juli 2015, 08:23:50 schrieb Herbert Xu:
> On Wed, Jul 15, 2015 at 02:25:59PM +0200, Wolfgang Walter wrote:
> > Yes. Switching TSO off and leaving GRO on works, too.
>
> OK, could you please try this patch?
Patch works here.
Thanks,
Wolfgang
>
> ---8<---
> We need to set the SKB_GSO_SIT bit if we detect a 6-in-4 tunnel
> when doing GRO. Otherwise we may throw a packet at TSO hardware
> that doesn't know what to do with it.
>
> Fixes: 19424e052fb4 ("sit: Add gro callbacks to sit_offload")
> Reported-by: Wolfgang Walter <linux@stwm.de>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
>
> diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c
> index e893cd1..1252eac 100644
> --- a/net/ipv6/ip6_offload.c
> +++ b/net/ipv6/ip6_offload.c
> @@ -289,11 +289,21 @@ static struct packet_offload ipv6_packet_offload
> __read_mostly = { },
> };
>
> +static int sit_gro_complete(struct sk_buff *skb, int nhoff)
> +{
> + int err = ipv6_gro_complete(skb, nhoff);
> +
> + skb->encapsulation = 1;
> + skb_shinfo(skb)->gso_type |= SKB_GSO_SIT;
> +
> + return err;
> +}
> +
> static const struct net_offload sit_offload = {
> .callbacks = {
> .gso_segment = ipv6_gso_segment,
> .gro_receive = ipv6_gro_receive,
> - .gro_complete = ipv6_gro_complete,
> + .gro_complete = sit_gro_complete,
> },
> };
--
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
next prev parent reply other threads:[~2015-07-16 10:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 22:16 GRO: forwading ISATAP packets is very slow with kernel 4.1 Wolfgang Walter
2015-07-15 0:08 ` Herbert Xu
2015-07-15 0:34 ` Wolfgang Walter
2015-07-15 9:50 ` Herbert Xu
2015-07-15 12:25 ` Wolfgang Walter
2015-07-16 0:23 ` sit: Set SKB_GSO_SIT bit when performing GRO Herbert Xu
2015-07-16 10:58 ` Wolfgang Walter [this message]
2015-07-17 1:56 ` Herbert Xu
2015-07-17 15:38 ` Wolfgang Walter
2015-07-20 6:14 ` Herbert Xu
2015-07-20 9:39 ` Wolfgang Walter
2015-07-20 9:55 ` Revert "sit: Add gro callbacks to sit_offload" Herbert Xu
2015-07-20 23:53 ` David Miller
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=2115027.IFUsFvOUns@stwm.de \
--to=linux@stwm.de \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).