netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: Jiri Bohac <jbohac@suse.cz>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org
Subject: Re: [RFC] xfrm: fix pmtu discovery (kill xfrm6_update_pmtu)
Date: Mon, 4 Feb 2013 08:39:14 +0100	[thread overview]
Message-ID: <20130204073914.GB23291@secunet.com> (raw)
In-Reply-To: <20130201172529.GA3014@midget.suse.cz>

On Fri, Feb 01, 2013 at 06:25:29PM +0100, Jiri Bohac wrote:
> On Fri, Feb 01, 2013 at 09:45:15AM +0100, Steffen Klassert wrote:
> > 
> > Subject: [PATCH] ipv6: Don't send packet to big messages to self
> > 
> > Calling icmpv6_send() on a local message size error leads to an
> > incorrect update of the path mtu in the case when IPsec is used.
> > So use ipv6_local_error() instead to notify the socket about the
> > error.
> 
> It fixes the problem I was trying to fix.
> I tested the patch with the PMTU and IPsec parts of the ipv6ready
> testsuite and it passed.
> 
> I wonder if this is going to do everything that should be done
> e.g. in the TCPv6 case.  Now, tcp_v6_err() calls
> tcp_v6_mtu_reduced() which syncs the MSS and forces a retransmit.
> 
> Looking at the code, I don't think this is going to happen with
> this patch, so the MSS update and retransmit will only be done
> when the respective TCP timer expires.
> 
> So perhaps the individual protocols will need to handle the new
> error reporting?
> 

Well, we might loose the fast path retransmit. We could think
about implementing a fast path for such situations, but that's
another issue. Let's fix the bug first, I'll submit the patch
to fix it.

> 
> And out of curiosity, do you know the reason why
> xfrm[46]_update_pmtu changes the non-xfrm route's MTU?
> Is this really intended?
> 

The pmtu is a learned measure of the route, it depends on the
external environment, not on the question whether we add local
overhead. So I think it was intended to change always the
pmtu of the original route, even if we use IPsec.

      reply	other threads:[~2013-02-04  7:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 14:43 [RFC] xfrm: fix pmtu discovery (kill xfrm6_update_pmtu) Jiri Bohac
2013-02-01  8:45 ` Steffen Klassert
2013-02-01 17:25   ` Jiri Bohac
2013-02-04  7:39     ` Steffen Klassert [this message]

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=20130204073914.GB23291@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jbohac@suse.cz \
    --cc=netdev@vger.kernel.org \
    /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).