sit: set rtnl_link_ops before calling register_netdevice
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Mon, 25 Jan 2016 13:29:19 +0000 (11:29 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jan 2016 18:51:53 +0000 (10:51 -0800)
commit87e57399e9d3606b08b0e1b2dd0f4aaa1d8ba365
treecb0abe5c09f2bc984a1f0561319bc4468c36a689
parent05f3b50ea81d7af5479b55147ef98f8bbcd4a8b9
sit: set rtnl_link_ops before calling register_netdevice

When creating a SIT tunnel with ip tunnel, rtnl_link_ops is not set before
ipip6_tunnel_create is called. When register_netdevice is called, there is
no linkinfo attribute in the NEWLINK message because of that.

Setting rtnl_link_ops before calling register_netdevice fixes that.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c