mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: parameswaran.r7@gmail.com
Cc: kleptog@svana.org, jchapman@katalix.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, nprachan@brocade.com,
	rshearma@brocade.com, dfawcus@brocade.com,
	stephen@networkplumber.org, acme@redhat.com,
	lboccass@brocade.com
Subject: Re: [PATCH net v2] L2TP:Adjust intf MTU,factor underlay L3,overlay L2
Date: Wed, 28 Sep 2016 03:48:41 -0400 (EDT)	[thread overview]
Message-ID: <20160928.034841.997752666320557327.davem@davemloft.net> (raw)
In-Reply-To: <alpine.DEB.2.11.1609271210350.25517@duvvury48.eng.vyatta.net>

From: "R. Parameswaran" <parameswaran.r7@gmail.com>
Date: Tue, 27 Sep 2016 12:17:21 -0700 (PDT)

> Later, in vxlan_dev_configure(), called from vxlan_dev_create(), it gets 
> adjusted to account for the headers:
> 
> vxlan_dev_configure():
> ...
>  if (!conf->mtu)
>                         dev->mtu = lowerdev->mtu - (use_ipv6 ? 
> VXLAN6_HEADROOM : VXLAN_HEADROOM);
> 
> 
> where VXLAN_HEADROOM is defined as follows: 
> 
> /* IP header + UDP + VXLAN + Ethernet header */
> #define VXLAN_HEADROOM (20 + 8 + 8 + 14)
> /* IPv6 header + UDP + VXLAN + Ethernet header */
> #define VXLAN6_HEADROOM (40 + 8 + 8 + 14)

Right but I don't see it going through the effort to make use of the
PMTU like you are.

I have another strong concern related to this.  There seems to be no
mechanism used to propagate any PMTU events into the device's MTU.

Because if there is a limiting nexthop in the route to the other end
of the UDP tunnel, you won't learn the PMTU until you (or some other
entity on the machine) actually starts sending traffic to the tunnel's
endpoint.

If the PMTU events aren't propagated into the tunnel's MTU or similar
I think this is an ad-hoc solution.

I would suggest that you either:

1) Do what VXLAN appears to do an ignore the PMTu

2) Add code to handle PMTU events that land on the UDP tunnel
   socket.

Thanks.

  reply	other threads:[~2016-09-28  7:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 20:52 R. Parameswaran
2016-09-27  7:31 ` David Miller
2016-09-27 19:17   ` R. Parameswaran
2016-09-28  7:48     ` David Miller [this message]
2016-09-29  2:36       ` R. Parameswaran
2016-09-29 12:21         ` Jiri Benc
2016-09-29 15:39         ` James Chapman
2016-09-29 15:18 ` James Chapman
2016-09-30  2:39   ` R. Parameswaran
2016-10-01 16:50     ` James Chapman
2016-10-04  3:12       ` R. Parameswaran
2016-10-04  7:53         ` James Chapman
     [not found]           ` <CAGeBGG7AS1JZYHC6T5_H6vY4wfptUtPzO=+kdCcUzJGXA0m6_A@mail.gmail.com>
2016-10-11  7:47             ` James Chapman
2016-10-17  4:05               ` [RFC PATCH v3 1/2] " R. Parameswaran
2016-10-17  5:20               ` [RFC PATCH v3 2/2] " R. Parameswaran

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=20160928.034841.997752666320557327.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=acme@redhat.com \
    --cc=dfawcus@brocade.com \
    --cc=jchapman@katalix.com \
    --cc=kleptog@svana.org \
    --cc=lboccass@brocade.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nprachan@brocade.com \
    --cc=parameswaran.r7@gmail.com \
    --cc=rshearma@brocade.com \
    --cc=stephen@networkplumber.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

all inboxes | Powered by JetHome®