netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lance Richardson <lrichard@redhat.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Sven-Haegar Koch <haegar@sdinet.de>,
	Eli Cooper <elicooper@gmx.com>,
	netdev@vger.kernel.org, Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: Large performance regression with 6in4 tunnel (sit)
Date: Mon, 28 Nov 2016 12:54:07 -0500 (EST)	[thread overview]
Message-ID: <1428298236.4223309.1480355647336.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20161127142340.3a5c197e@canb.auug.org.au>

> From: "Stephen Rothwell" <sfr@canb.auug.org.au>
> To: "Sven-Haegar Koch" <haegar@sdinet.de>
> Cc: "Eli Cooper" <elicooper@gmx.com>, netdev@vger.kernel.org, "Eric Dumazet" <eric.dumazet@gmail.com>
> Sent: Saturday, November 26, 2016 10:23:40 PM
> Subject: Re: Large performance regression with 6in4 tunnel (sit)
> 
> Hi Sven-Haegar,
> 
> On Fri, 25 Nov 2016 05:06:53 +0100 (CET) Sven-Haegar Koch <haegar@sdinet.de>
> wrote:
> >
> > Somehow this problem description really reminds me of a report on
> > netdev a bit ago, which the following patch fixed:
> > 
> > commit 9ee6c5dc816aa8256257f2cd4008a9291ec7e985
> > Author: Lance Richardson <lrichard@redhat.com>
> > Date:   Wed Nov 2 16:36:17 2016 -0400
> > 
> >     ipv4: allow local fragmentation in ip_finish_output_gso()
> >     
> >     Some configurations (e.g. geneve interface with default
> >     MTU of 1500 over an ethernet interface with 1500 MTU) result
> >     in the transmission of packets that exceed the configured MTU.
> >     While this should be considered to be a "bad" configuration,
> >     it is still allowed and should not result in the sending
> >     of packets that exceed the configured MTU.
> > 
> > Could this be related?
> > 
> > I suppose it would be difficult to test this patch on this machine?
> 
> The kernel I am running on is based on 4.7.8, so the above patch
> doesn't come close to applying. Most fo what it is reverting was
> introduced in commit 359ebda25aa0 ("net/ipv4: Introduce IPSKB_FRAG_SEGS
> bit to inet_skb_parm.flags") in v4.8-rc1.
> 
> --
> Cheers,
> Stephen Rothwell
> 

This should be equivalent for 4.7.x:

diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 4bd4921..8a253e2 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -224,8 +224,7 @@ static int ip_finish_output_gso(struct net *net, struct sock *sk,
        int ret = 0;
 
        /* common case: locally created skb or seglen is <= mtu */
-       if (((IPCB(skb)->flags & IPSKB_FORWARDED) == 0) ||
-             skb_gso_network_seglen(skb) <= mtu)
+       if (skb_gso_network_seglen(skb) <= mtu)
                return ip_finish_output2(net, sk, skb);
 
        /* Slowpath -  GSO segment length is exceeding the dst MTU.

  reply	other threads:[~2016-11-28 17:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25  1:09 Large performance regression with 6in4 tunnel (sit) Stephen Rothwell
2016-11-25  2:18 ` Eli Cooper
2016-11-25  2:45   ` Stephen Rothwell
2016-11-25  3:01     ` Eric Dumazet
2016-11-25  3:09       ` Stephen Rothwell
2016-11-25  3:54         ` Eric Dumazet
2016-11-25  6:12           ` Stephen Rothwell
2016-11-25  4:06     ` Sven-Haegar Koch
2016-11-27  3:23       ` Stephen Rothwell
2016-11-28 17:54         ` Lance Richardson [this message]
2016-11-28 19:49           ` Lance Richardson
2016-11-28 21:32         ` Alexander Duyck
2016-11-28 22:38           ` Stephen Rothwell
2016-11-25  6:05     ` Eli Cooper
2016-11-27  0:54       ` Stephen Rothwell
2016-11-27  2:02         ` Stephen Rothwell
2016-11-27 16:22           ` Eli Cooper
2016-11-25  2:30 ` Eric Dumazet

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=1428298236.4223309.1480355647336.JavaMail.zimbra@redhat.com \
    --to=lrichard@redhat.com \
    --cc=elicooper@gmx.com \
    --cc=eric.dumazet@gmail.com \
    --cc=haegar@sdinet.de \
    --cc=netdev@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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).