]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: handle rtnl_link netlink notifications manually
authorPatrick McHardy <kaber@trash.net>
Fri, 26 Feb 2010 06:34:51 +0000 (06:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Feb 2010 10:43:39 +0000 (02:43 -0800)
commit962fdef1f91754231942028d2c63e5875349ce9b
tree26077aa8aec7a61fd7e3de31c5eeec4960f78079
parent8d1ead7ea09e1a12b329d7ebf285a73aea06a72e
rtnetlink: handle rtnl_link netlink notifications manually

In order to support specifying device flags during device creation,
we must be able to roll back device registration in case setting the
flags fails without sending any notifications related to the device
to userspace.

This patch changes rollback_registered_many() and register_netdevice()
to manually send netlink notifications for devices not handled by
rtnl_link and allows to defer notifications for devices handled by
rtnl_link until setup is complete.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/core/rtnetlink.c