Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 25 of 25) sorted by relevance

/net/core/
Dneighbour.c55 static int pneigh_ifdown(struct neigh_table *tbl, struct net_device *dev);
123 static int neigh_forced_gc(struct neigh_table *tbl) in neigh_forced_gc() argument
129 NEIGH_CACHE_STAT_INC(tbl, forced_gc_runs); in neigh_forced_gc()
131 write_lock_bh(&tbl->lock); in neigh_forced_gc()
132 nht = rcu_dereference_protected(tbl->nht, in neigh_forced_gc()
133 lockdep_is_held(&tbl->lock)); in neigh_forced_gc()
140 lockdep_is_held(&tbl->lock))) != NULL) { in neigh_forced_gc()
150 lockdep_is_held(&tbl->lock))); in neigh_forced_gc()
162 tbl->last_flush = jiffies; in neigh_forced_gc()
164 write_unlock_bh(&tbl->lock); in neigh_forced_gc()
[all …]
Dsysctl_net_core.c214 struct ctl_table *tbl; in sysctl_core_net_init() local
218 tbl = netns_core_table; in sysctl_core_net_init()
220 tbl = kmemdup(tbl, sizeof(netns_core_table), GFP_KERNEL); in sysctl_core_net_init()
221 if (tbl == NULL) in sysctl_core_net_init()
224 tbl[0].data = &net->core.sysctl_somaxconn; in sysctl_core_net_init()
228 tbl[0].procname = NULL; in sysctl_core_net_init()
232 net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl); in sysctl_core_net_init()
239 if (tbl != netns_core_table) in sysctl_core_net_init()
240 kfree(tbl); in sysctl_core_net_init()
247 struct ctl_table *tbl; in sysctl_core_net_exit() local
[all …]
/net/netfilter/ipvs/
Dip_vs_lblc.c170 ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) in ip_vs_lblc_hash() argument
174 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblc_hash()
175 atomic_inc(&tbl->entries); in ip_vs_lblc_hash()
181 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument
187 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblc_get()
200 ip_vs_lblc_new(struct ip_vs_lblc_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblc_new() argument
205 en = ip_vs_lblc_get(dest->af, tbl, daddr); in ip_vs_lblc_new()
218 ip_vs_lblc_hash(tbl, en); in ip_vs_lblc_new()
240 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush() local
246 tbl->dead = 1; in ip_vs_lblc_flush()
[all …]
Dip_vs_lblcr.c344 ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en) in ip_vs_lblcr_hash() argument
348 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblcr_hash()
349 atomic_inc(&tbl->entries); in ip_vs_lblcr_hash()
355 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument
361 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblcr_get()
374 ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblcr_new() argument
379 en = ip_vs_lblcr_get(dest->af, tbl, daddr); in ip_vs_lblcr_new()
395 ip_vs_lblcr_hash(tbl, en); in ip_vs_lblcr_new()
410 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush() local
416 tbl->dead = 1; in ip_vs_lblcr_flush()
[all …]
Dip_vs_ctl.c3685 struct ctl_table *tbl; in ip_vs_control_net_init_sysctl() local
3693 tbl = kmemdup(vs_vars, sizeof(vs_vars), GFP_KERNEL); in ip_vs_control_net_init_sysctl()
3694 if (tbl == NULL) in ip_vs_control_net_init_sysctl()
3699 tbl[0].procname = NULL; in ip_vs_control_net_init_sysctl()
3701 tbl = vs_vars; in ip_vs_control_net_init_sysctl()
3705 tbl[idx++].data = &ipvs->sysctl_amemthresh; in ip_vs_control_net_init_sysctl()
3707 tbl[idx++].data = &ipvs->sysctl_am_droprate; in ip_vs_control_net_init_sysctl()
3708 tbl[idx++].data = &ipvs->sysctl_drop_entry; in ip_vs_control_net_init_sysctl()
3709 tbl[idx++].data = &ipvs->sysctl_drop_packet; in ip_vs_control_net_init_sysctl()
3711 tbl[idx++].data = &ipvs->sysctl_conntrack; in ip_vs_control_net_init_sysctl()
[all …]
/net/mac80211/
Dmesh_pathtbl.c75 #define for_each_mesh_entry(tbl, node, i) \ argument
76 for (i = 0; i <= tbl->hash_mask; i++) \
77 hlist_for_each_entry_rcu(node, &tbl->hash_buckets[i], list)
117 static void __mesh_table_free(struct mesh_table *tbl) in __mesh_table_free() argument
119 kfree(tbl->hash_buckets); in __mesh_table_free()
120 kfree(tbl->hashwlock); in __mesh_table_free()
121 kfree(tbl); in __mesh_table_free()
124 static void mesh_table_free(struct mesh_table *tbl, bool free_leafs) in mesh_table_free() argument
131 mesh_hash = tbl->hash_buckets; in mesh_table_free()
132 for (i = 0; i <= tbl->hash_mask; i++) { in mesh_table_free()
[all …]
/net/netfilter/
Dxt_repldata.h16 } *tbl = kzalloc(sizeof(*tbl), GFP_KERNEL); \
17 if (tbl == NULL) \
19 strncpy(tbl->repl.name, info->name, sizeof(tbl->repl.name)); \
20 tbl->term = (struct type##_error)typ2##_ERROR_INIT; \
21 tbl->repl.valid_hooks = hook_mask; \
22 tbl->repl.num_entries = nhooks + 1; \
23 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
28 tbl->repl.hook_entry[hooknum] = bytes; \
29 tbl->repl.underflow[hooknum] = bytes; \
30 tbl->entries[i++] = (struct type##_standard) \
[all …]
/net/ipv4/
Dsysctl_net_ipv4.c157 ctl_table tbl = { in proc_tcp_congestion_control() local
165 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
176 ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX, }; in proc_tcp_available_congestion_control() local
179 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_tcp_available_congestion_control()
180 if (!tbl.data) in proc_tcp_available_congestion_control()
182 tcp_get_available_congestion_control(tbl.data, TCP_CA_BUF_MAX); in proc_tcp_available_congestion_control()
183 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_congestion_control()
184 kfree(tbl.data); in proc_tcp_available_congestion_control()
193 ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX }; in proc_allowed_congestion_control() local
196 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_allowed_congestion_control()
[all …]
Dudp_diag.c34 static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, in udp_dump_one() argument
46 req->id.idiag_if, tbl); in udp_dump_one()
54 req->id.idiag_if, tbl); in udp_dump_one()
169 struct udp_table *tbl) in __udp_diag_destroy() argument
181 req->id.idiag_if, tbl); in __udp_diag_destroy()
189 req->id.idiag_if, tbl); in __udp_diag_destroy()
197 req->id.idiag_if, tbl); in __udp_diag_destroy()
Dfib_rules.c73 struct fib_table *tbl; in fib4_rule_action() local
93 tbl = fib_get_table(rule->fr_net, rule->table); in fib4_rule_action()
94 if (!tbl) in fib4_rule_action()
97 err = fib_table_lookup(tbl, &flp->u.ip4, (struct fib_result *) arg->result, arg->flags); in fib4_rule_action()
Ddevinet.c2192 struct ctl_table *tbl = ctl_forward_entry; in devinet_init_net() local
2210 tbl = kmemdup(tbl, sizeof(ctl_forward_entry), GFP_KERNEL); in devinet_init_net()
2211 if (tbl == NULL) in devinet_init_net()
2214 tbl[0].data = &all->data[IPV4_DEVCONF_FORWARDING - 1]; in devinet_init_net()
2215 tbl[0].extra1 = all; in devinet_init_net()
2216 tbl[0].extra2 = net; in devinet_init_net()
2230 forw_hdr = register_net_sysctl(net, "net/ipv4", tbl); in devinet_init_net()
2246 if (tbl != ctl_forward_entry) in devinet_init_net()
2247 kfree(tbl); in devinet_init_net()
2262 struct ctl_table *tbl; in devinet_exit_net() local
[all …]
Droute.c2592 struct ctl_table *tbl; in sysctl_route_net_init() local
2594 tbl = ipv4_route_flush_table; in sysctl_route_net_init()
2596 tbl = kmemdup(tbl, sizeof(ipv4_route_flush_table), GFP_KERNEL); in sysctl_route_net_init()
2597 if (tbl == NULL) in sysctl_route_net_init()
2602 tbl[0].procname = NULL; in sysctl_route_net_init()
2604 tbl[0].extra1 = net; in sysctl_route_net_init()
2606 net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl); in sysctl_route_net_init()
2612 if (tbl != ipv4_route_flush_table) in sysctl_route_net_init()
2613 kfree(tbl); in sysctl_route_net_init()
2620 struct ctl_table *tbl; in sysctl_route_net_exit() local
[all …]
Darp.c168 .tbl = &arp_tbl,
/net/sctp/
Dsysctl.c310 ctl_table tbl; in proc_sctp_do_hmac_alg() local
315 memset(&tbl, 0, sizeof(struct ctl_table)); in proc_sctp_do_hmac_alg()
318 tbl.data = tmp; in proc_sctp_do_hmac_alg()
319 tbl.maxlen = 8; in proc_sctp_do_hmac_alg()
321 tbl.data = net->sctp.sctp_hmac_alg ? : none; in proc_sctp_do_hmac_alg()
322 tbl.maxlen = strlen(tbl.data); in proc_sctp_do_hmac_alg()
324 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
/net/decnet/
Ddn_rules.c72 struct dn_fib_table *tbl; in dn_fib_rule_action() local
92 tbl = dn_fib_get_table(rule->table, 0); in dn_fib_rule_action()
93 if (tbl == NULL) in dn_fib_rule_action()
96 err = tbl->lookup(tbl, fld, (struct dn_fib_res *)arg->result); in dn_fib_rule_action()
Ddn_neigh.c104 .tbl = &dn_neigh_table,
/net/netlabel/
Dnetlabel_domainhash.c49 struct list_head *tbl; member
149 bkt_list = &netlbl_domhsh_rcu_deref(netlbl_domhsh)->tbl[bkt]; in netlbl_domhsh_search()
339 hsh_tbl->tbl = kcalloc(hsh_tbl->size, in netlbl_domhsh_init()
342 if (hsh_tbl->tbl == NULL) { in netlbl_domhsh_init()
347 INIT_LIST_HEAD(&hsh_tbl->tbl[iter]); in netlbl_domhsh_init()
399 &rcu_dereference(netlbl_domhsh)->tbl[bkt]); in netlbl_domhsh_add()
779 iter_list = &rcu_dereference(netlbl_domhsh)->tbl[iter_bkt]; in netlbl_domhsh_walk()
Dnetlabel_unlabeled.c78 struct list_head *tbl; member
230 bkt_list = &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]; in netlbl_unlhsh_search_iface()
352 &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]); in netlbl_unlhsh_add_iface()
1209 iter_list = &rcu_dereference(netlbl_unlhsh)->tbl[iter_bkt]; in netlbl_unlabel_staticlist()
1435 hsh_tbl->tbl = kcalloc(hsh_tbl->size, in netlbl_unlabel_init()
1438 if (hsh_tbl->tbl == NULL) { in netlbl_unlabel_init()
1443 INIT_LIST_HEAD(&hsh_tbl->tbl[iter]); in netlbl_unlabel_init()
/net/netlink/
Ddiag.c103 struct netlink_table *tbl = &nl_table[protocol]; in __netlink_diag_dump() local
104 struct nl_portid_hash *hash = &tbl->hash; in __netlink_diag_dump()
134 sk_for_each_bound(sk, &tbl->mc_list) { in __netlink_diag_dump()
Daf_netlink.c956 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in netlink_update_listeners() local
961 listeners = nl_deref_protected(tbl->listeners); in netlink_update_listeners()
965 for (i = 0; i < NLGRPLONGS(tbl->groups); i++) { in netlink_update_listeners()
967 sk_for_each_bound(sk, &tbl->mc_list) { in netlink_update_listeners()
2318 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in __netlink_change_ngroups() local
2323 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups()
2327 old = nl_deref_protected(tbl->listeners); in __netlink_change_ngroups()
2328 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups()
2329 rcu_assign_pointer(tbl->listeners, new); in __netlink_change_ngroups()
2333 tbl->groups = groups; in __netlink_change_ngroups()
[all …]
/net/802/
Dhippi.c181 if (p->tbl->family != AF_INET6) in hippi_neigh_setup_dev()
/net/sched/
Dsch_teql.c237 mn = __neigh_lookup_errno(n->tbl, n->primary_key, dev); in __teql_resolve()
/net/atm/
Dlec.c832 static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl, in lec_tbl_walk() argument
839 e = tbl->first; in lec_tbl_walk()
841 e = tbl->first; in lec_tbl_walk()
Dclip.c293 if (neigh->tbl->family != AF_INET) in clip_constructor()
/net/ipv6/
Dndisc.c127 .tbl = &nd_tbl,