]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ip6_tunnel: Use ip6_tnl_dev_init as the ndo_init function.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 3 Nov 2014 08:19:27 +0000 (09:19 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 11:31:40 +0000 (12:31 +0100)
commitc024c280512fc4a76237b647218366bdef6f3fe4
treeb7cd65e14200f215e49a9ed26e20e47a94962093
parentf9a3dbb8fd1853c16930b2c95eefa34a324eca19
ip6_tunnel: Use ip6_tnl_dev_init as the ndo_init function.

[ Upstream commit 6c6151daaf2d8dc2046d9926539feed5f66bf74e ]

ip6_tnl_dev_init() sets the dev->iflink via a call to
ip6_tnl_link_config(). After that, register_netdevice()
sets dev->iflink = -1. So we loose the iflink configuration
for ipv6 tunnels. Fix this by using ip6_tnl_dev_init() as the
ndo_init function. Then ip6_tnl_dev_init() is called after
dev->iflink is set to -1 from register_netdevice().

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv6/ip6_tunnel.c