]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b7b437227f34826f989cddc284a76454b44d424
tree4f4cf555598c5b90e79ae029f3c043c330062411
parentcab8ec6cb4df7b40fe21ec92752f14fcef3595d3
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