Searched refs:scounts (Results 1 – 4 of 4) sorted by relevance
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_core.c | 177 struct ip_vs_rht *ip_vs_rht_alloc(int buckets, int scounts, int locks) in ip_vs_rht_alloc() argument 184 if (scounts) { in ip_vs_rht_alloc() 187 scounts = min(scounts, buckets); in ip_vs_rht_alloc() 188 scounts = min(scounts, ml); in ip_vs_rht_alloc() 189 t->seqc = kvmalloc_array(scounts, sizeof(*t->seqc), GFP_KERNEL); in ip_vs_rht_alloc() 192 for (i = 0; i < scounts; i++) in ip_vs_rht_alloc() 196 locks = min(locks, scounts); in ip_vs_rht_alloc() 213 t->seqc_mask = scounts - 1; in ip_vs_rht_alloc()
|
| H A D | ip_vs_conn.c | 783 int scounts, locks; in ip_vs_conn_tab_alloc() local 786 scounts = clamp(buckets >> 6, 1, 256); in ip_vs_conn_tab_alloc() 788 locks = clamp(8, 1, scounts); in ip_vs_conn_tab_alloc() 790 t = ip_vs_rht_alloc(buckets, scounts, locks); in ip_vs_conn_tab_alloc()
|
| H A D | ip_vs_ctl.c | 627 int scounts, locks; in ip_vs_svc_table_alloc() local 632 scounts = clamp(buckets >> 4, 1, 64); in ip_vs_svc_table_alloc() 635 t = ip_vs_rht_alloc(buckets, scounts, locks); in ip_vs_svc_table_alloc()
|
| /linux/include/net/ |
| H A D | ip_vs.h | 689 struct ip_vs_rht *ip_vs_rht_alloc(int buckets, int scounts, int locks);
|