Searched refs:mc_hash (Results 1 – 2 of 2) sorted by relevance
1390 struct ip_mc_list __rcu **mc_hash; in ip_mc_hash_add() local1393 mc_hash = rtnl_dereference(in_dev->mc_hash); in ip_mc_hash_add()1394 if (mc_hash) { in ip_mc_hash_add()1396 im->next_hash = mc_hash[hash]; in ip_mc_hash_add()1397 rcu_assign_pointer(mc_hash[hash], im); in ip_mc_hash_add()1405 mc_hash = kzalloc(sizeof(struct ip_mc_list *) << MC_HASH_SZ_LOG, in ip_mc_hash_add()1407 if (!mc_hash) in ip_mc_hash_add()1412 im->next_hash = mc_hash[hash]; in ip_mc_hash_add()1413 RCU_INIT_POINTER(mc_hash[hash], im); in ip_mc_hash_add()1416 rcu_assign_pointer(in_dev->mc_hash, mc_hash); in ip_mc_hash_add()[all …]
238 kfree(rcu_dereference_protected(idev->mc_hash, 1)); in in_dev_free_rcu()