]> git.baikalelectronics.ru Git - kernel.git/commit
vti6: Use vti6_dev_init as the ndo_init function.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 3 Nov 2014 08:19:28 +0000 (09:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2014 20:42:24 +0000 (15:42 -0500)
commiteeb61b77c4b2c95caaa37ab737d55736972e36ad
treef53ab3a3cd86f85bfe00d0cb2129f59b446285c4
parent58d55fa2c8c93c3cdbd0566f1d7f11b22b8d7b1c
vti6: Use vti6_dev_init as the ndo_init function.

vti6_dev_init() sets the dev->iflink via a call to
vti6_link_config(). After that, register_netdevice()
sets dev->iflink = -1. So we loose the iflink configuration
for vti6 tunnels. Fix this by using vti6_dev_init() as the
ndo_init function. Then vti6_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>
net/ipv6/ip6_vti.c