]> git.baikalelectronics.ru Git - 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)
commitca7b91833d6014e22596ffb17f6505371e9e777a
treea234645761a946931ae3c0e3ba1088ebec455325
parentdf3d6dd7ac5a709657b8543206be2887b34e17af
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