summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2003-05-19 09:23:57 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-05-19 09:23:57 -0700
commit13d6a99c44c8ff3298f4d447b321000ec4cd4d8d (patch)
treef943d5126f299f78be722d0f134e28fb3a234bcf /include/linux
parentff936f4e8148e75b20595eda5de6d3a4bb55b631 (diff)
[NET]: More device register/unregister fixing.
Revert the rtnl_lock API change, it is totally unneeded. Instead we manage the todo work inside of net/core/dev.c Also, we have to move sbin hotplug invocation outside of the RTNL semaphore as well, both for register and unregister.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--include/linux/rtnetlink.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 27716f740fb0..94d077ef70be 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -625,7 +625,7 @@ static inline int netif_rx_ni(struct sk_buff *skb)
}
/* Called by rtnetlink.c:rtnl_unlock() */
-extern void netdev_wait_and_finish_unregister(struct net_device **list);
+extern void netdev_run_todo(void);
static inline void dev_put(struct net_device *dev)
{
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 78f491336886..1b0998fd604f 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -607,8 +607,7 @@ extern struct semaphore rtnl_sem;
rtnl->data_ready(rtnl, 0); \
} while(0)
-extern struct net_device **rtnl_netdev_unregister_list;
-extern void rtnl_lock(struct net_device **unregister_list);
+extern void rtnl_lock(void);
extern void rtnl_unlock(void);
extern void rtnetlink_init(void);