Skip to content

ipv6: Fix iflink setting for ipv6 tunnels

Steffen Klassert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ip6_tunnel: Use ip6_tnl_dev_init as the ndo_init function.net/ipv6/ip6_tunnel.c+1 -90 replies
2/4vti6: Use vti6_dev_init as the ndo_init function.net/ipv6/ip6_vti.c+1 -100 replies
3/4sit: Use ipip6_tunnel_init as the ndo_init function.net/ipv6/sit.c+6 -90 replies
4/4gre6: Move the setting of dev->iflink into the ndo_init functions.net/ipv6/ip6_gre.c+3 -20 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/4] ipv6: Fix iflink setting for ipv6 tunnels

The ipv6 tunnels do the dev->iflink setting too early, it gets overwritten by register_netdev(). So set dev->iflink from within a ndo_init function to keep the configured setting.

This patchset fixes this for ip6_tunnel, vti6, sit and gre6.