From 7a3e0b47dc83a44890462f3b25d9fa7ed9eb28fc Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 15 Nov 2010 08:52:02 -0800 Subject: [PATCH] --- yaml --- r: 224149 b: refs/heads/master c: d9aa93804e53f2153260568024b75ad3d81784f9 h: refs/heads/master i: 224147: 1c6f7261044061e2e8c8ee5a4b9121ddb5ba76bd v: v3 --- [refs] | 2 +- trunk/net/ipv4/igmp.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 10b44a5e195d..26558453e0ad 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c25ecd0a21d5e08160cb5cc984f9e2b8ee347443 +refs/heads/master: d9aa93804e53f2153260568024b75ad3d81784f9 diff --git a/trunk/net/ipv4/igmp.c b/trunk/net/ipv4/igmp.c index 0f0e0f0279b8..a1bf2f49e716 100644 --- a/trunk/net/ipv4/igmp.c +++ b/trunk/net/ipv4/igmp.c @@ -163,6 +163,16 @@ static void ip_ma_put(struct ip_mc_list *im) } } +#define for_each_pmc_rcu(in_dev, pmc) \ + for (pmc = rcu_dereference(in_dev->mc_list); \ + pmc != NULL; \ + pmc = rcu_dereference(pmc->next_rcu)) + +#define for_each_pmc_rtnl(in_dev, pmc) \ + for (pmc = rtnl_dereference(in_dev->mc_list); \ + pmc != NULL; \ + pmc = rtnl_dereference(pmc->next_rcu)) + #ifdef CONFIG_IP_MULTICAST /* @@ -502,16 +512,6 @@ static struct sk_buff *add_grec(struct sk_buff *skb, struct ip_mc_list *pmc, return skb; } -#define for_each_pmc_rcu(in_dev, pmc) \ - for (pmc = rcu_dereference(in_dev->mc_list); \ - pmc != NULL; \ - pmc = rcu_dereference(pmc->next_rcu)) - -#define for_each_pmc_rtnl(in_dev, pmc) \ - for (pmc = rtnl_dereference(in_dev->mc_list); \ - pmc != NULL; \ - pmc = rtnl_dereference(pmc->next_rcu)) - static int igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) { struct sk_buff *skb = NULL;