From: Stefano Brivio <sbrivio@redhat.com>
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: netdev@vger.kernel.org,
Matthias Schiffer <mschiffer@universe-factory.net>,
David Miller <davem@davemloft.net>, Junhan Yan <juyan@redhat.com>,
Jiri Benc <jbenc@redhat.com>, Hangbin Liu <haliu@redhat.com>
Subject: Re: [PATCH v2] vxlan: restore dev->mtu setting based on lower device
Date: Thu, 14 Dec 2017 19:27:13 +0100 [thread overview]
Message-ID: <20171214192713.2916ff94@elisabeth> (raw)
In-Reply-To: <1513272000-30848-1-git-send-email-alexey.kodanev@oracle.com>
On Thu, 14 Dec 2017 20:20:00 +0300
Alexey Kodanev <alexey.kodanev@oracle.com> wrote:
> Stefano Brivio says:
> Commit a985343ba906 ("vxlan: refactor verification and
> application of configuration") introduced a change in the
> behaviour of initial MTU setting: earlier, the MTU for a link
> created on top of a given lower device, without an initial MTU
> specification, was set to the MTU of the lower device minus
> headroom as a result of this path in vxlan_dev_configure():
>
> if (!conf->mtu)
> dev->mtu = lowerdev->mtu -
> (use_ipv6 ? VXLAN6_HEADROOM : VXLAN_HEADROOM);
>
> which is now gone. Now, the initial MTU, in absence of a
> configured value, is simply set by ether_setup() to ETH_DATA_LEN
> (1500 bytes).
>
> This breaks userspace expectations in case the MTU of
> the lower device is higher than 1500 bytes minus headroom.
>
> This patch restores the previous behaviour on newlink operation. Since
> max_mtu can be negative and we update dev->mtu directly, also check it
> for valid minimum.
>
> Reported-by: Junhan Yan <juyan@redhat.com>
> Fixes: a985343ba906 ("vxlan: refactor verification and application of configuration")
> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Thanks for re-posting this.
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Or even (but I don't know what's the current netdev practice for these
particular cases):
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
--
Stefano
next prev parent reply other threads:[~2017-12-14 18:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 17:20 [PATCH v2] vxlan: restore dev->mtu setting based on lower device Alexey Kodanev
2017-12-14 18:27 ` Stefano Brivio [this message]
2017-12-17 4:05 ` 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=20171214192713.2916ff94@elisabeth \
--to=sbrivio@redhat.com \
--cc=alexey.kodanev@oracle.com \
--cc=davem@davemloft.net \
--cc=haliu@redhat.com \
--cc=jbenc@redhat.com \
--cc=juyan@redhat.com \
--cc=mschiffer@universe-factory.net \
--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).