Lines Matching refs:ipv4
146 oldest = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); in tcpm_new()
163 tm->tcpm_next = net->ipv4.tcp_metrics_hash[hash].chain; in tcpm_new()
164 rcu_assign_pointer(net->ipv4.tcp_metrics_hash[hash].chain, tm); in tcpm_new()
198 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics()
230 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in __tcp_get_metrics_req()
232 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics_req()
265 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in __tcp_get_metrics_tw()
267 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics_tw()
300 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in tcp_get_metrics()
829 unsigned int max_rows = 1U << net->ipv4.tcp_metrics_hash_log; in tcp_metrics_nl_dump()
835 struct tcpm_hash_bucket *hb = net->ipv4.tcp_metrics_hash + row; in tcp_metrics_nl_dump()
903 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in tcp_metrics_nl_cmd_get()
906 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in tcp_metrics_nl_cmd_get()
936 unsigned int max_rows = 1U << net->ipv4.tcp_metrics_hash_log; in tcp_metrics_flush_all()
937 struct tcpm_hash_bucket *hb = net->ipv4.tcp_metrics_hash; in tcp_metrics_flush_all()
974 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in tcp_metrics_nl_cmd_del()
975 hb = net->ipv4.tcp_metrics_hash + hash; in tcp_metrics_nl_cmd_del()
1037 net->ipv4.tcp_metrics_hash_log = order_base_2(slots); in tcp_net_metrics_init()
1038 size = sizeof(struct tcpm_hash_bucket) << net->ipv4.tcp_metrics_hash_log; in tcp_net_metrics_init()
1040 net->ipv4.tcp_metrics_hash = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); in tcp_net_metrics_init()
1041 if (!net->ipv4.tcp_metrics_hash) in tcp_net_metrics_init()
1042 net->ipv4.tcp_metrics_hash = vzalloc(size); in tcp_net_metrics_init()
1044 if (!net->ipv4.tcp_metrics_hash) in tcp_net_metrics_init()
1054 for (i = 0; i < (1U << net->ipv4.tcp_metrics_hash_log) ; i++) { in tcp_net_metrics_exit()
1057 tm = rcu_dereference_protected(net->ipv4.tcp_metrics_hash[i].chain, 1); in tcp_net_metrics_exit()
1064 if (is_vmalloc_addr(net->ipv4.tcp_metrics_hash)) in tcp_net_metrics_exit()
1065 vfree(net->ipv4.tcp_metrics_hash); in tcp_net_metrics_exit()
1067 kfree(net->ipv4.tcp_metrics_hash); in tcp_net_metrics_exit()