Skip to content

net: fix IFLA_MTU ignored on NEWLINK for some ip and ipv6 tunnels

Xin Long netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ip_gre: fix IFLA_MTU ignored on NEWLINKnet/ipv4/ip_gre.c+0 -50 replies
2/3ip6_tunnel: fix IFLA_MTU ignored on NEWLINKnet/ipv6/ip6_tunnel.c+8 -40 replies
3/3sit: fix IFLA_MTU ignored on NEWLINKnet/ipv6/sit.c+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] net: fix IFLA_MTU ignored on NEWLINK for some ip and ipv6 tunnels

The fix for ip_gre follows the way other ip tunnels do: not to set mtu in ndo_init, as ip_tunnel_newlink will take care of it properly.

The fix for ip6_tunnel and sit follows the way ipv6 tunenls do:
to set mtu again according to IFLA_MTU after, as all bind_dev are called in ndo_init where it can't get the tb[IFLA_MTU].

Xin Long (3):
ip_gre: fix IFLA_MTU ignored on NEWLINK
ip6_tunnel: fix IFLA_MTU ignored on NEWLINK
sit: fix IFLA_MTU ignored on NEWLINK

 net/ipv4/ip_gre.c     |  5 -----
 net/ipv6/ip6_tunnel.c | 12 ++++++++----
 net/ipv6/sit.c        |  7 +++++++
 3 files changed, 15 insertions(+), 9 deletions(-)
Signature · 1 line
2.1.0