OSDN Git Service

gtp: set initial MTU
authorJonas Bonn <jonas@norrbonn.se>
Wed, 3 Feb 2021 07:08:00 +0000 (08:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 17:29:57 +0000 (09:29 -0800)
commite21eb3a065a2d90ee3bb06cc2e77acad403ec7cd
tree4f4cf555598c5b90e79ae029f3c043c330062411
parent49ecc587dca2754571791bebd36e9e36e2a0d973
gtp: set initial MTU

The GTP link is brought up with a default MTU of zero.  This can lead to
some rather unexpected behaviour for users who are more accustomed to
interfaces coming online with reasonable defaults.

This patch sets an initial MTU for the GTP link of 1500 less worst-case
tunnel overhead.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Acked-by: Harald Welte <laforge@gnumonks.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/gtp.c