Searched refs:mc_hash (Results 1 – 2 of 2) sorted by relevance
1269 struct ip_mc_list __rcu **mc_hash; in ip_mc_hash_add() local1272 mc_hash = rtnl_dereference(in_dev->mc_hash); in ip_mc_hash_add()1273 if (mc_hash) { in ip_mc_hash_add()1275 im->next_hash = mc_hash[hash]; in ip_mc_hash_add()1276 rcu_assign_pointer(mc_hash[hash], im); in ip_mc_hash_add()1284 mc_hash = kzalloc(sizeof(struct ip_mc_list *) << MC_HASH_SZ_LOG, in ip_mc_hash_add()1286 if (!mc_hash) in ip_mc_hash_add()1291 im->next_hash = mc_hash[hash]; in ip_mc_hash_add()1292 RCU_INIT_POINTER(mc_hash[hash], im); in ip_mc_hash_add()1295 rcu_assign_pointer(in_dev->mc_hash, mc_hash); in ip_mc_hash_add()[all …]
221 kfree(rcu_dereference_protected(idev->mc_hash, 1)); in in_dev_finish_destroy()