diff options
author | David Forster <dforster@brocade.com> | 2017-01-06 10:27:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-06 16:09:09 -0500 |
commit | 93e246f783e6bd1bc64fdfbfe68b18161f69b28e (patch) | |
tree | f47839cf4056f4662f749599af6f9dba63cbe83d | |
parent | 5ca7d1ca77dc23934504b95a96d2660d345f83c2 (diff) | |
download | op-kernel-dev-93e246f783e6bd1bc64fdfbfe68b18161f69b28e.zip op-kernel-dev-93e246f783e6bd1bc64fdfbfe68b18161f69b28e.tar.gz |
vti6: fix device register to report IFLA_INFO_KIND
vti6 interface is registered before the rtnl_link_ops block
is attached. As a result the resulting RTM_NEWLINK is missing
IFLA_INFO_KIND. Re-order attachment of rtnl_link_ops block to fix.
Signed-off-by: Dave Forster <dforster@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/ip6_vti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index f4b4a4a5..d82042c 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -189,12 +189,12 @@ static int vti6_tnl_create2(struct net_device *dev) struct vti6_net *ip6n = net_generic(net, vti6_net_id); int err; + dev->rtnl_link_ops = &vti6_link_ops; err = register_netdevice(dev); if (err < 0) goto out; strcpy(t->parms.name, dev->name); - dev->rtnl_link_ops = &vti6_link_ops; dev_hold(dev); vti6_tnl_link(ip6n, t); |