diff options
author | stephen hemminger <shemminger@vyatta.com> | 2009-11-10 07:54:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-10 22:26:29 -0800 |
commit | 254245d23396aca1f9100d500163d7bd6019ab6f (patch) | |
tree | 3176ba0db8478094d4d5187c20d00be9880d9acf /include/linux/netdevice.h | |
parent | 856540ee3116ac04a49bc06c2f30f54dd3faf7db (diff) |
netdev: add netdev_continue_rcu
This adds an RCU macro for continuing search, useful for some
network devices like vlan.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 465add6c43e..083b5989cec 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1079,6 +1079,8 @@ extern rwlock_t dev_base_lock; /* Device list lock */ list_for_each_entry_safe(d, n, &(net)->dev_base_head, dev_list) #define for_each_netdev_continue(net, d) \ list_for_each_entry_continue(d, &(net)->dev_base_head, dev_list) +#define for_each_netdev_continue_rcu(net, d) \ + list_for_each_entry_continue_rcu(d, &(net)->dev_base_head, dev_list) #define net_device_entry(lh) list_entry(lh, struct net_device, dev_list) static inline struct net_device *next_net_device(struct net_device *dev) |