]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
macvtap: Rewrite macvtap_newlink so the error handling works.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Oct 2011 04:28:46 +0000 (04:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 06:53:07 +0000 (02:53 -0400)
commit9bf1907f4293d61d5a283d18c4ad28d048261797
treea234645761a946931ae3c0e3ba1088ebec455325
parent2259fef0bb80a8fc842b5690b89a640464df2859
macvtap: Rewrite macvtap_newlink so the error handling works.

Place macvlan_common_newlink at the end of macvtap_newlink because
failing in newlink after registering your network device is not
supported.

Move device_create into a netdevice creation notifier.   The network device
notifier is the only hook that is called after the network device has been
registered with the device layer and before register_network_device returns
success.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c