]> git.baikalelectronics.ru Git - kernel.git/commit
sit: fix IFLA_MTU ignored on NEWLINK
authorXin Long <lucien.xin@gmail.com>
Tue, 27 Feb 2018 11:19:41 +0000 (19:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:36:28 +0000 (14:36 -0500)
commitfd2a5979164c87c3a84dd1ef8bf8003638db29b0
treed7002ce7bf34de3ee2372a09e271c42f4df8a033
parentc537ae2137140867ee8604206b52a491554aa0b3
sit: fix IFLA_MTU ignored on NEWLINK

Commit edffabe1940e ("ip6_gre: init dev->mtu and dev->hard_header_len
correctly") fixed IFLA_MTU ignored on NEWLINK for ip6_gre. The same
mtu fix is also needed for sit.

Note that dev->hard_header_len setting for sit works fine, no need to
fix it. sit is actually ipv4 tunnel, it can't call ip6_tnl_change_mtu
to set mtu.

Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c