/net/netfilter/ipvs/ |
D | ip_vs_lblc.c | 168 ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) in ip_vs_lblc_hash() argument 172 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblc_hash() 173 atomic_inc(&tbl->entries); in ip_vs_lblc_hash() 179 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument 185 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblc_get() 198 ip_vs_lblc_new(struct ip_vs_lblc_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblc_new() argument 203 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new() 220 ip_vs_lblc_hash(tbl, en); in ip_vs_lblc_new() 231 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush() local 237 tbl->dead = true; in ip_vs_lblc_flush() [all …]
|
D | ip_vs_lblcr.c | 331 ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en) in ip_vs_lblcr_hash() argument 335 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblcr_hash() 336 atomic_inc(&tbl->entries); in ip_vs_lblcr_hash() 342 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument 348 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblcr_get() 361 ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblcr_new() argument 366 en = ip_vs_lblcr_get(af, tbl, daddr); in ip_vs_lblcr_new() 382 ip_vs_lblcr_hash(tbl, en); in ip_vs_lblcr_new() 397 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush() local 403 tbl->dead = true; in ip_vs_lblcr_flush() [all …]
|
D | ip_vs_ctl.c | 4031 struct ctl_table *tbl; in ip_vs_control_net_init_sysctl() local 4039 tbl = kmemdup(vs_vars, sizeof(vs_vars), GFP_KERNEL); in ip_vs_control_net_init_sysctl() 4040 if (tbl == NULL) in ip_vs_control_net_init_sysctl() 4045 tbl[0].procname = NULL; in ip_vs_control_net_init_sysctl() 4047 tbl = vs_vars; in ip_vs_control_net_init_sysctl() 4050 if (tbl[idx].proc_handler == proc_do_defense_mode) in ip_vs_control_net_init_sysctl() 4051 tbl[idx].extra2 = ipvs; in ip_vs_control_net_init_sysctl() 4055 tbl[idx++].data = &ipvs->sysctl_amemthresh; in ip_vs_control_net_init_sysctl() 4057 tbl[idx++].data = &ipvs->sysctl_am_droprate; in ip_vs_control_net_init_sysctl() 4058 tbl[idx++].data = &ipvs->sysctl_drop_entry; in ip_vs_control_net_init_sysctl() [all …]
|
/net/core/ |
D | neighbour.c | 57 static int pneigh_ifdown_and_unlock(struct neigh_table *tbl, 123 atomic_dec(&n->tbl->gc_entries); in neigh_mark_dead() 131 write_lock_bh(&n->tbl->lock); in neigh_update_gc_list() 146 atomic_dec(&n->tbl->gc_entries); in neigh_update_gc_list() 149 list_add_tail(&n->gc_list, &n->tbl->gc_list); in neigh_update_gc_list() 150 atomic_inc(&n->tbl->gc_entries); in neigh_update_gc_list() 155 write_unlock_bh(&n->tbl->lock); in neigh_update_gc_list() 181 struct neigh_table *tbl) in neigh_del() argument 190 lockdep_is_held(&tbl->lock)); in neigh_del() 201 bool neigh_remove_one(struct neighbour *ndel, struct neigh_table *tbl) in neigh_remove_one() argument [all …]
|
D | sysctl_net_core.c | 221 struct ctl_table tbl = { in set_default_qdisc() local 229 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in set_default_qdisc() 616 struct ctl_table *tbl; in sysctl_core_net_init() local 618 tbl = netns_core_table; in sysctl_core_net_init() 620 tbl = kmemdup(tbl, sizeof(netns_core_table), GFP_KERNEL); in sysctl_core_net_init() 621 if (tbl == NULL) in sysctl_core_net_init() 624 tbl[0].data = &net->core.sysctl_somaxconn; in sysctl_core_net_init() 628 tbl[0].procname = NULL; in sysctl_core_net_init() 632 net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl); in sysctl_core_net_init() 639 if (tbl != netns_core_table) in sysctl_core_net_init() [all …]
|
/net/mac80211/ |
D | mesh_pathtbl.c | 18 static void mesh_path_free_rcu(struct mesh_table *tbl, struct mesh_path *mpath); 45 struct mesh_table *tbl = tblptr; in mesh_path_rht_free() local 47 mesh_path_free_rcu(tbl, mpath); in mesh_path_rht_free() 50 static void mesh_table_init(struct mesh_table *tbl) in mesh_table_init() argument 52 INIT_HLIST_HEAD(&tbl->known_gates); in mesh_table_init() 53 INIT_HLIST_HEAD(&tbl->walk_head); in mesh_table_init() 54 atomic_set(&tbl->entries, 0); in mesh_table_init() 55 spin_lock_init(&tbl->gates_lock); in mesh_table_init() 56 spin_lock_init(&tbl->walk_lock); in mesh_table_init() 61 WARN_ON(rhashtable_init(&tbl->rhead, &mesh_rht_params)); in mesh_table_init() [all …]
|
/net/netfilter/ |
D | xt_repldata.h | 24 } *tbl; \ 26 size_t term_offset = (offsetof(typeof(*tbl), entries[nhooks]) + \ 28 tbl = kzalloc(term_offset + sizeof(*term), GFP_KERNEL); \ 29 if (tbl == NULL) \ 31 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \ 32 strncpy(tbl->repl.name, info->name, sizeof(tbl->repl.name)); \ 34 tbl->repl.valid_hooks = hook_mask; \ 35 tbl->repl.num_entries = nhooks + 1; \ 36 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \ 41 tbl->repl.hook_entry[hooknum] = bytes; \ [all …]
|
/net/sctp/ |
D | sysctl.c | 384 struct ctl_table tbl; in proc_sctp_do_hmac_alg() local 390 memset(&tbl, 0, sizeof(struct ctl_table)); in proc_sctp_do_hmac_alg() 393 tbl.data = tmp; in proc_sctp_do_hmac_alg() 394 tbl.maxlen = sizeof(tmp); in proc_sctp_do_hmac_alg() 396 tbl.data = net->sctp.sctp_hmac_alg ? : none; in proc_sctp_do_hmac_alg() 397 tbl.maxlen = strlen(tbl.data); in proc_sctp_do_hmac_alg() 400 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 431 struct ctl_table tbl; in proc_sctp_do_rto_min() local 434 memset(&tbl, 0, sizeof(struct ctl_table)); in proc_sctp_do_rto_min() 435 tbl.maxlen = sizeof(unsigned int); in proc_sctp_do_rto_min() [all …]
|
/net/openvswitch/ |
D | meter.c | 55 static struct dp_meter *lookup_meter(const struct dp_meter_table *tbl, in lookup_meter() argument 58 struct dp_meter_instance *ti = rcu_dereference_ovsl(tbl->ti); in lookup_meter() 98 dp_meter_instance_realloc(struct dp_meter_table *tbl, u32 size) in dp_meter_instance_realloc() argument 100 struct dp_meter_instance *ti = rcu_dereference_ovsl(tbl->ti); in dp_meter_instance_realloc() 113 rcu_assign_pointer(tbl->ti, new_ti); in dp_meter_instance_realloc() 137 static int attach_meter(struct dp_meter_table *tbl, struct dp_meter *meter) in attach_meter() argument 139 struct dp_meter_instance *ti = rcu_dereference_ovsl(tbl->ti); in attach_meter() 152 tbl->count++; in attach_meter() 153 if (tbl->count >= tbl->max_meters_allowed) { in attach_meter() 158 if (tbl->count >= ti->n_meters && in attach_meter() [all …]
|
D | flow_table.c | 247 static int tbl_mask_array_realloc(struct flow_table *tbl, int size) in tbl_mask_array_realloc() argument 256 old = ovsl_dereference(tbl->mask_array); in tbl_mask_array_realloc() 267 rcu_assign_pointer(tbl->mask_array, new); in tbl_mask_array_realloc() 272 static int tbl_mask_array_add_mask(struct flow_table *tbl, in tbl_mask_array_add_mask() argument 275 struct mask_array *ma = ovsl_dereference(tbl->mask_array); in tbl_mask_array_add_mask() 279 err = tbl_mask_array_realloc(tbl, ma->max + in tbl_mask_array_add_mask() 284 ma = ovsl_dereference(tbl->mask_array); in tbl_mask_array_add_mask() 300 static void tbl_mask_array_del_mask(struct flow_table *tbl, in tbl_mask_array_del_mask() argument 303 struct mask_array *ma = ovsl_dereference(tbl->mask_array); in tbl_mask_array_del_mask() 326 tbl_mask_array_realloc(tbl, ma->max / 2); in tbl_mask_array_del_mask() [all …]
|
D | flow_table.h | 100 struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl,
|
/net/ipv4/ |
D | sysctl_net_ipv4.c | 229 struct ctl_table tbl = { in proc_tcp_congestion_control() local 237 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control() 247 struct ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX, }; in proc_tcp_available_congestion_control() local 250 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_tcp_available_congestion_control() 251 if (!tbl.data) in proc_tcp_available_congestion_control() 253 tcp_get_available_congestion_control(tbl.data, TCP_CA_BUF_MAX); in proc_tcp_available_congestion_control() 254 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_congestion_control() 255 kfree(tbl.data); in proc_tcp_available_congestion_control() 263 struct ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX }; in proc_allowed_congestion_control() local 266 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_allowed_congestion_control() [all …]
|
D | udp_diag.c | 28 static int udp_dump_one(struct udp_table *tbl, in udp_dump_one() argument 44 req->id.idiag_if, 0, tbl, NULL); in udp_dump_one() 52 req->id.idiag_if, 0, tbl, NULL); in udp_dump_one() 169 struct udp_table *tbl) in __udp_diag_destroy() argument 181 req->id.idiag_if, 0, tbl, NULL); in __udp_diag_destroy() 189 req->id.idiag_if, 0, tbl, NULL); in __udp_diag_destroy() 197 req->id.idiag_if, 0, tbl, NULL); in __udp_diag_destroy()
|
D | fib_rules.c | 112 struct fib_table *tbl; in fib4_rule_action() local 133 tbl = fib_get_table(rule->fr_net, tb_id); in fib4_rule_action() 134 if (tbl) in fib4_rule_action() 135 err = fib_table_lookup(tbl, &flp->u.ip4, in fib4_rule_action()
|
D | devinet.c | 2666 struct ctl_table *tbl; in devinet_init_net() local 2680 tbl = kmemdup(ctl_forward_entry, sizeof(ctl_forward_entry), GFP_KERNEL); in devinet_init_net() 2681 if (!tbl) in devinet_init_net() 2684 tbl[0].data = &all->data[IPV4_DEVCONF_FORWARDING - 1]; in devinet_init_net() 2685 tbl[0].extra1 = all; in devinet_init_net() 2686 tbl[0].extra2 = net; in devinet_init_net() 2724 forw_hdr = register_net_sysctl(net, "net/ipv4", tbl); in devinet_init_net() 2740 kfree(tbl); in devinet_init_net() 2753 struct ctl_table *tbl; in devinet_exit_net() local 2755 tbl = net->ipv4.forw_hdr->ctl_table_arg; in devinet_exit_net() [all …]
|
D | route.c | 3612 struct ctl_table *tbl; in sysctl_route_net_init() local 3614 tbl = ipv4_route_flush_table; in sysctl_route_net_init() 3616 tbl = kmemdup(tbl, sizeof(ipv4_route_flush_table), GFP_KERNEL); in sysctl_route_net_init() 3617 if (!tbl) in sysctl_route_net_init() 3622 if (tbl[0].procname != ipv4_route_flush_procname) in sysctl_route_net_init() 3623 tbl[0].procname = NULL; in sysctl_route_net_init() 3626 tbl[0].extra1 = net; in sysctl_route_net_init() 3628 net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl); in sysctl_route_net_init() 3634 if (tbl != ipv4_route_flush_table) in sysctl_route_net_init() 3635 kfree(tbl); in sysctl_route_net_init() [all …]
|
D | arp.c | 163 .tbl = &arp_tbl, 1123 struct neigh_table *tbl = &arp_tbl; in arp_invalidate() local 1135 write_lock_bh(&tbl->lock); in arp_invalidate() 1137 neigh_remove_one(neigh, tbl); in arp_invalidate() 1138 write_unlock_bh(&tbl->lock); in arp_invalidate()
|
/net/rds/ |
D | tcp.c | 530 struct ctl_table *tbl; in rds_tcp_init_net() local 539 tbl = rds_tcp_sysctl_table; in rds_tcp_init_net() 541 tbl = kmemdup(rds_tcp_sysctl_table, in rds_tcp_init_net() 543 if (!tbl) { in rds_tcp_init_net() 547 rtn->ctl_table = tbl; in rds_tcp_init_net() 549 tbl[RDS_TCP_SNDBUF].data = &rtn->sndbuf_size; in rds_tcp_init_net() 550 tbl[RDS_TCP_RCVBUF].data = &rtn->rcvbuf_size; in rds_tcp_init_net() 551 rtn->rds_tcp_sysctl = register_net_sysctl(net, "net/rds/tcp", tbl); in rds_tcp_init_net() 584 kfree(tbl); in rds_tcp_init_net()
|
/net/netlabel/ |
D | netlabel_domainhash.c | 36 struct list_head *tbl; member 146 bkt_list = &netlbl_domhsh_rcu_deref(netlbl_domhsh)->tbl[bkt]; in netlbl_domhsh_search() 374 hsh_tbl->tbl = kcalloc(hsh_tbl->size, in netlbl_domhsh_init() 377 if (hsh_tbl->tbl == NULL) { in netlbl_domhsh_init() 382 INIT_LIST_HEAD(&hsh_tbl->tbl[iter]); in netlbl_domhsh_init() 438 &rcu_dereference(netlbl_domhsh)->tbl[bkt]); in netlbl_domhsh_add() 954 iter_list = &rcu_dereference(netlbl_domhsh)->tbl[iter_bkt]; in netlbl_domhsh_walk()
|
D | netlabel_unlabeled.c | 63 struct list_head *tbl; member 209 bkt_list = &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]; in netlbl_unlhsh_search_iface() 332 &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]); in netlbl_unlhsh_add_iface() 1185 iter_list = &rcu_dereference(netlbl_unlhsh)->tbl[iter_bkt]; in netlbl_unlabel_staticlist() 1427 hsh_tbl->tbl = kcalloc(hsh_tbl->size, in netlbl_unlabel_init() 1430 if (hsh_tbl->tbl == NULL) { in netlbl_unlabel_init() 1435 INIT_LIST_HEAD(&hsh_tbl->tbl[iter]); in netlbl_unlabel_init()
|
/net/netlink/ |
D | diag.c | 93 struct netlink_table *tbl = &nl_table[protocol]; in __netlink_diag_dump() local 118 rhashtable_walk_enter(&tbl->hash, hti); in __netlink_diag_dump() 157 sk_for_each_bound(sk, &tbl->mc_list) { in __netlink_diag_dump()
|
D | af_netlink.c | 549 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in netlink_update_listeners() local 554 listeners = nl_deref_protected(tbl->listeners); in netlink_update_listeners() 558 for (i = 0; i < NLGRPLONGS(tbl->groups); i++) { in netlink_update_listeners() 560 sk_for_each_bound(sk, &tbl->mc_list) { in netlink_update_listeners() 2118 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in __netlink_change_ngroups() local 2123 if (NLGRPSZ(tbl->groups) < NLGRPSZ(groups)) { in __netlink_change_ngroups() 2127 old = nl_deref_protected(tbl->listeners); in __netlink_change_ngroups() 2128 memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups)); in __netlink_change_ngroups() 2129 rcu_assign_pointer(tbl->listeners, new); in __netlink_change_ngroups() 2133 tbl->groups = groups; in __netlink_change_ngroups() [all …]
|
/net/bridge/ |
D | br_vlan_tunnel.c | 37 static struct net_bridge_vlan *br_vlan_tunnel_lookup(struct rhashtable *tbl, in br_vlan_tunnel_lookup() argument 40 return rhashtable_lookup_fast(tbl, &tunnel_id, in br_vlan_tunnel_lookup()
|
/net/ipv6/ |
D | ip6_fib.c | 2524 lockdep_is_held(&iter->tbl->tb6_lock)); in ipv6_route_yield() 2538 iter->w.root = &iter->tbl->tb6_root; in ipv6_route_seq_setup_walk() 2547 static struct fib6_table *ipv6_route_seq_next_table(struct fib6_table *tbl, in ipv6_route_seq_next_table() argument 2553 if (tbl) { in ipv6_route_seq_next_table() 2554 h = (tbl->tb6_id & (FIB6_TABLE_HASHSZ - 1)) + 1; in ipv6_route_seq_next_table() 2555 node = rcu_dereference_bh(hlist_next_rcu(&tbl->tb6_hlist)); in ipv6_route_seq_next_table() 2598 spin_lock_bh(&iter->tbl->tb6_lock); in ipv6_route_seq_next() 2600 spin_unlock_bh(&iter->tbl->tb6_lock); in ipv6_route_seq_next() 2609 iter->tbl = ipv6_route_seq_next_table(iter->tbl, net); in ipv6_route_seq_next() 2610 if (!iter->tbl) in ipv6_route_seq_next() [all …]
|
/net/802/ |
D | hippi.c | 138 if (p->tbl->family != AF_INET6) in hippi_neigh_setup_dev()
|