From 551278a4d3ebfafa82eac662e3680f1357328bee Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Fri, 23 Mar 2012 22:58:03 +0200 Subject: [PATCH] compat: backport for_each_netdev_rcu [linux-2.6] (master)$ \ git describe --contains c6d14c84566d6b70ad9dc1618db0dec87cca9300 v2.6.33-rc1~388^2~517 Signed-off-by: Vladimir Sokolovsky --- include/linux/compat-2.6.33.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h index c900a6f..d629e4c 100644 --- a/include/linux/compat-2.6.33.h +++ b/include/linux/compat-2.6.33.h @@ -167,6 +167,9 @@ static inline long __must_check IS_ERR_OR_NULL(const void *ptr) return !ptr || IS_ERR_VALUE((unsigned long)ptr); } +#define for_each_netdev_rcu(net, d) \ + list_for_each_entry_rcu(d, &(net)->dev_base_head, dev_list) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ #endif /* LINUX_26_33_COMPAT_H */ -- 2.41.0