Home
last modified time | relevance | path

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

1234567

/net/sched/
Dsch_gred.c62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() argument
64 return test_bit(GRED_WRED_MODE, &table->flags); in gred_wred_mode()
67 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() argument
69 __set_bit(GRED_WRED_MODE, &table->flags); in gred_enable_wred_mode()
72 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() argument
74 __clear_bit(GRED_WRED_MODE, &table->flags); in gred_disable_wred_mode()
77 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() argument
79 return test_bit(GRED_RIO_MODE, &table->flags); in gred_rio_mode()
82 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() argument
84 __set_bit(GRED_RIO_MODE, &table->flags); in gred_enable_rio_mode()
[all …]
/net/xfrm/
Dxfrm_sysctl.c46 struct ctl_table *table; in xfrm_sysctl_init() local
50 table = kmemdup(xfrm_table, sizeof(xfrm_table), GFP_KERNEL); in xfrm_sysctl_init()
51 if (!table) in xfrm_sysctl_init()
53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
54 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init()
55 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init()
56 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init()
60 table[0].procname = NULL; in xfrm_sysctl_init()
62 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table); in xfrm_sysctl_init()
68 kfree(table); in xfrm_sysctl_init()
[all …]
/net/netfilter/
Dnf_tables_api.c101 struct nft_table *table, in nft_ctx_init() argument
107 ctx->table = table; in nft_ctx_init()
143 const struct nft_table *table, in nf_tables_register_hooks() argument
147 if (table->flags & NFT_TABLE_F_DORMANT || in nf_tables_register_hooks()
156 const struct nft_table *table, in nf_tables_unregister_hooks() argument
160 if (table->flags & NFT_TABLE_F_DORMANT || in nf_tables_unregister_hooks()
176 nft_activate_next(ctx->net, ctx->table); in nft_trans_table_add()
190 nft_deactivate_next(ctx->net, ctx->table); in nft_deltable()
217 ctx->table->use--; in nft_delchain()
358 ctx->table->use--; in nft_delset()
[all …]
Dnf_conntrack_timestamp.c45 struct ctl_table *table; in nf_conntrack_tstamp_init_sysctl() local
47 table = kmemdup(tstamp_sysctl_table, sizeof(tstamp_sysctl_table), in nf_conntrack_tstamp_init_sysctl()
49 if (!table) in nf_conntrack_tstamp_init_sysctl()
52 table[0].data = &net->ct.sysctl_tstamp; in nf_conntrack_tstamp_init_sysctl()
56 table[0].procname = NULL; in nf_conntrack_tstamp_init_sysctl()
59 table); in nf_conntrack_tstamp_init_sysctl()
67 kfree(table); in nf_conntrack_tstamp_init_sysctl()
74 struct ctl_table *table; in nf_conntrack_tstamp_fini_sysctl() local
76 table = net->ct.tstamp_sysctl_header->ctl_table_arg; in nf_conntrack_tstamp_fini_sysctl()
78 kfree(table); in nf_conntrack_tstamp_fini_sysctl()
Dnf_conntrack_acct.c67 struct ctl_table *table; in nf_conntrack_acct_init_sysctl() local
69 table = kmemdup(acct_sysctl_table, sizeof(acct_sysctl_table), in nf_conntrack_acct_init_sysctl()
71 if (!table) in nf_conntrack_acct_init_sysctl()
74 table[0].data = &net->ct.sysctl_acct; in nf_conntrack_acct_init_sysctl()
78 table[0].procname = NULL; in nf_conntrack_acct_init_sysctl()
81 table); in nf_conntrack_acct_init_sysctl()
89 kfree(table); in nf_conntrack_acct_init_sysctl()
96 struct ctl_table *table; in nf_conntrack_acct_fini_sysctl() local
98 table = net->ct.acct_sysctl_header->ctl_table_arg; in nf_conntrack_acct_fini_sysctl()
100 kfree(table); in nf_conntrack_acct_fini_sysctl()
Dx_tables.c475 if (par->match->table != NULL && in xt_check_match()
476 strcmp(par->match->table, par->table) != 0) { in xt_check_match()
479 par->match->table, par->table); in xt_check_match()
870 if (par->target->table != NULL && in xt_check_target()
871 strcmp(par->target->table, par->table) != 0) { in xt_check_target()
874 par->target->table, par->table); in xt_check_target()
1136 void xt_table_unlock(struct xt_table *table) in xt_table_unlock() argument
1138 mutex_unlock(&xt[table->af].mutex); in xt_table_unlock()
1221 xt_replace_table(struct xt_table *table, in xt_replace_table() argument
1237 private = table->private; in xt_replace_table()
[all …]
Dnf_log.c431 static int nf_log_proc_dostring(struct ctl_table *table, int write, in nf_log_proc_dostring() argument
437 int tindex = (unsigned long)table->extra1; in nf_log_proc_dostring()
438 struct net *net = table->extra2; in nf_log_proc_dostring()
441 struct ctl_table tmp = *table; in nf_log_proc_dostring()
465 struct ctl_table tmp = *table; in nf_log_proc_dostring()
484 struct ctl_table *table; in netfilter_log_sysctl_init() local
486 table = nf_log_sysctl_table; in netfilter_log_sysctl_init()
488 table = kmemdup(nf_log_sysctl_table, in netfilter_log_sysctl_init()
491 if (!table) in netfilter_log_sysctl_init()
513 table[i].extra2 = net; in netfilter_log_sysctl_init()
[all …]
Dnf_conntrack_ecache.c359 struct ctl_table *table; in nf_conntrack_event_init_sysctl() local
361 table = kmemdup(event_sysctl_table, sizeof(event_sysctl_table), in nf_conntrack_event_init_sysctl()
363 if (!table) in nf_conntrack_event_init_sysctl()
366 table[0].data = &net->ct.sysctl_events; in nf_conntrack_event_init_sysctl()
370 table[0].procname = NULL; in nf_conntrack_event_init_sysctl()
373 register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_event_init_sysctl()
381 kfree(table); in nf_conntrack_event_init_sysctl()
388 struct ctl_table *table; in nf_conntrack_event_fini_sysctl() local
390 table = net->ct.event_sysctl_header->ctl_table_arg; in nf_conntrack_event_fini_sysctl()
392 kfree(table); in nf_conntrack_event_fini_sysctl()
/net/unix/
Dsysctl_net_unix.c31 struct ctl_table *table; in unix_sysctl_register() local
33 table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL); in unix_sysctl_register()
34 if (table == NULL) in unix_sysctl_register()
39 table[0].procname = NULL; in unix_sysctl_register()
41 table[0].data = &net->unx.sysctl_max_dgram_qlen; in unix_sysctl_register()
42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register()
49 kfree(table); in unix_sysctl_register()
56 struct ctl_table *table; in unix_sysctl_unregister() local
58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
60 kfree(table); in unix_sysctl_unregister()
/net/openvswitch/
Dflow_table.c109 int ovs_flow_tbl_count(const struct flow_table *table) in ovs_flow_tbl_count() argument
111 return table->count; in ovs_flow_tbl_count()
204 int ovs_flow_tbl_init(struct flow_table *table) in ovs_flow_tbl_init() argument
217 rcu_assign_pointer(table->ti, ti); in ovs_flow_tbl_init()
218 rcu_assign_pointer(table->ufid_ti, ufid_ti); in ovs_flow_tbl_init()
219 INIT_LIST_HEAD(&table->mask_list); in ovs_flow_tbl_init()
220 table->last_rehash = jiffies; in ovs_flow_tbl_init()
221 table->count = 0; in ovs_flow_tbl_init()
222 table->ufid_count = 0; in ovs_flow_tbl_init()
278 void ovs_flow_tbl_destroy(struct flow_table *table) in ovs_flow_tbl_destroy() argument
[all …]
Dflow_table.h66 int ovs_flow_tbl_count(const struct flow_table *table);
67 void ovs_flow_tbl_destroy(struct flow_table *table);
70 int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow,
72 void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow);
73 int ovs_flow_tbl_num_masks(const struct flow_table *table);
74 struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table,
/net/ax25/
Dsysctl_net_ax25.c155 struct ctl_table *table; in ax25_register_dev_sysctl() local
157 table = kmemdup(ax25_param_table, sizeof(ax25_param_table), GFP_KERNEL); in ax25_register_dev_sysctl()
158 if (!table) in ax25_register_dev_sysctl()
162 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
165 ax25_dev->sysheader = register_net_sysctl(&init_net, path, table); in ax25_register_dev_sysctl()
167 kfree(table); in ax25_register_dev_sysctl()
176 struct ctl_table *table; in ax25_unregister_dev_sysctl() local
180 table = header->ctl_table_arg; in ax25_unregister_dev_sysctl()
182 kfree(table); in ax25_unregister_dev_sysctl()
/net/ipv4/
Dsysctl_net_ipv4.c71 static int ipv4_local_port_range(struct ctl_table *table, int write, in ipv4_local_port_range() argument
76 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range()
82 .mode = table->mode, in ipv4_local_port_range()
107 static int ipv4_privileged_ports(struct ctl_table *table, int write, in ipv4_privileged_ports() argument
110 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports()
118 .mode = table->mode, in ipv4_privileged_ports()
141 static void inet_get_ping_group_range_table(struct ctl_table *table, kgid_t *low, kgid_t *high) in inet_get_ping_group_range_table() argument
143 kgid_t *data = table->data; in inet_get_ping_group_range_table()
145 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
156 static void set_ping_group_range(struct ctl_table *table, kgid_t low, kgid_t high) in set_ping_group_range() argument
[all …]
Dip_fragment.c597 struct ctl_table *table; in ip4_frags_ns_ctl_register() local
600 table = ip4_frags_ns_ctl_table; in ip4_frags_ns_ctl_register()
602 table = kmemdup(table, sizeof(ip4_frags_ns_ctl_table), GFP_KERNEL); in ip4_frags_ns_ctl_register()
603 if (!table) in ip4_frags_ns_ctl_register()
606 table[0].data = &net->ipv4.frags.high_thresh; in ip4_frags_ns_ctl_register()
607 table[0].extra1 = &net->ipv4.frags.low_thresh; in ip4_frags_ns_ctl_register()
608 table[0].extra2 = &init_net.ipv4.frags.high_thresh; in ip4_frags_ns_ctl_register()
609 table[1].data = &net->ipv4.frags.low_thresh; in ip4_frags_ns_ctl_register()
610 table[1].extra2 = &net->ipv4.frags.high_thresh; in ip4_frags_ns_ctl_register()
611 table[2].data = &net->ipv4.frags.timeout; in ip4_frags_ns_ctl_register()
[all …]
Dxfrm4_policy.c297 struct ctl_table *table; in xfrm4_net_sysctl_init() local
300 table = xfrm4_policy_table; in xfrm4_net_sysctl_init()
302 table = kmemdup(table, sizeof(xfrm4_policy_table), GFP_KERNEL); in xfrm4_net_sysctl_init()
303 if (!table) in xfrm4_net_sysctl_init()
306 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init()
309 hdr = register_net_sysctl(net, "net/ipv4", table); in xfrm4_net_sysctl_init()
318 kfree(table); in xfrm4_net_sysctl_init()
325 struct ctl_table *table; in xfrm4_net_sysctl_exit() local
330 table = net->ipv4.xfrm4_hdr->ctl_table_arg; in xfrm4_net_sysctl_exit()
333 kfree(table); in xfrm4_net_sysctl_exit()
/net/core/
Dsysctl_net_core.c38 static int rps_sock_flow_sysctl(struct ctl_table *table, int write, in rps_sock_flow_sysctl() argument
46 .mode = table->mode in rps_sock_flow_sysctl()
108 static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, in flow_limit_cpu_sysctl() argument
187 static int flow_limit_table_len_sysctl(struct ctl_table *table, int write, in flow_limit_table_len_sysctl() argument
196 ptr = table->data; in flow_limit_table_len_sysctl()
198 ret = proc_dointvec(table, write, buffer, lenp, ppos); in flow_limit_table_len_sysctl()
210 static int set_default_qdisc(struct ctl_table *table, int write, in set_default_qdisc() argument
229 static int proc_do_dev_weight(struct ctl_table *table, int write, in proc_do_dev_weight() argument
234 ret = proc_dointvec(table, write, buffer, lenp, ppos); in proc_do_dev_weight()
244 static int proc_do_rss_key(struct ctl_table *table, int write, in proc_do_rss_key() argument
[all …]
Ddevlink.c1596 static int devlink_dpipe_matches_put(struct devlink_dpipe_table *table, in devlink_dpipe_matches_put() argument
1605 if (table->table_ops->matches_dump(table->priv, skb)) in devlink_dpipe_matches_put()
1643 static int devlink_dpipe_actions_put(struct devlink_dpipe_table *table, in devlink_dpipe_actions_put() argument
1652 if (table->table_ops->actions_dump(table->priv, skb)) in devlink_dpipe_actions_put()
1664 struct devlink_dpipe_table *table) in devlink_dpipe_table_put() argument
1669 table_size = table->table_ops->size_get(table->priv); in devlink_dpipe_table_put()
1674 if (nla_put_string(skb, DEVLINK_ATTR_DPIPE_TABLE_NAME, table->name) || in devlink_dpipe_table_put()
1679 table->counters_enabled)) in devlink_dpipe_table_put()
1682 if (devlink_dpipe_matches_put(table, skb)) in devlink_dpipe_table_put()
1685 if (devlink_dpipe_actions_put(table, skb)) in devlink_dpipe_table_put()
[all …]
/net/6lowpan/
Ddebugfs.c76 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_set()
92 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_get()
107 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_show()
137 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_write()
188 &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
194 &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
200 &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
206 &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
224 if (!lowpan_iphc_ctx_is_active(&t->table[i])) in lowpan_context_show()
227 seq_printf(file, "%3d|%39pI6c/%-3d|%d\n", t->table[i].id, in lowpan_context_show()
[all …]
/net/batman-adv/
Dhash.c31 INIT_HLIST_HEAD(&hash->table[i]); in batadv_hash_init()
40 kfree(hash->table); in batadv_hash_destroy()
53 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
54 if (!hash->table) in batadv_hash_new()
67 kfree(hash->table); in batadv_hash_new()
/net/bridge/netfilter/
Debtables.c179 struct ebt_table *table) in ebt_do_table() argument
196 read_lock_bh(&table->lock); in ebt_do_table()
197 private = table->private; in ebt_do_table()
218 read_unlock_bh(&table->lock); in ebt_do_table()
242 read_unlock_bh(&table->lock); in ebt_do_table()
246 read_unlock_bh(&table->lock); in ebt_do_table()
270 read_unlock_bh(&table->lock); in ebt_do_table()
282 read_unlock_bh(&table->lock); in ebt_do_table()
300 read_unlock_bh(&table->lock); in ebt_do_table()
303 read_unlock_bh(&table->lock); in ebt_do_table()
[all …]
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c87 struct ctl_table *table; in nf_ct_frag6_sysctl_register() local
90 table = nf_ct_frag6_sysctl_table; in nf_ct_frag6_sysctl_register()
92 table = kmemdup(table, sizeof(nf_ct_frag6_sysctl_table), in nf_ct_frag6_sysctl_register()
94 if (table == NULL) in nf_ct_frag6_sysctl_register()
97 table[0].data = &net->nf_frag.frags.timeout; in nf_ct_frag6_sysctl_register()
98 table[1].data = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register()
99 table[1].extra2 = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
100 table[2].data = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
101 table[2].extra1 = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register()
102 table[2].extra2 = &init_net.nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register()
[all …]
/net/
Dsysctl_net.c42 struct ctl_table *table) in net_ctl_permissions() argument
48 int mode = (table->mode >> 6) & 7; in net_ctl_permissions()
52 return table->mode; in net_ctl_permissions()
56 struct ctl_table *table, in net_ctl_set_ownership() argument
118 const char *path, struct ctl_table *table) in register_net_sysctl() argument
120 return __register_sysctl_table(&net->sysctls, path, table); in register_net_sysctl()
/net/ieee802154/6lowpan/
Dreassembly.c457 struct ctl_table *table; in lowpan_frags_ns_sysctl_register() local
462 table = lowpan_frags_ns_ctl_table; in lowpan_frags_ns_sysctl_register()
464 table = kmemdup(table, sizeof(lowpan_frags_ns_ctl_table), in lowpan_frags_ns_sysctl_register()
466 if (table == NULL) in lowpan_frags_ns_sysctl_register()
469 table[0].data = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register()
470 table[0].extra1 = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register()
471 table[0].extra2 = &init_net.ieee802154_lowpan.frags.high_thresh; in lowpan_frags_ns_sysctl_register()
472 table[1].data = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register()
473 table[1].extra2 = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register()
474 table[2].data = &ieee802154_lowpan->frags.timeout; in lowpan_frags_ns_sysctl_register()
[all …]
/net/ipv6/
Dreassembly.c444 struct ctl_table *table; in ip6_frags_ns_sysctl_register() local
447 table = ip6_frags_ns_ctl_table; in ip6_frags_ns_sysctl_register()
449 table = kmemdup(table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL); in ip6_frags_ns_sysctl_register()
450 if (!table) in ip6_frags_ns_sysctl_register()
453 table[0].data = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
454 table[0].extra1 = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
455 table[0].extra2 = &init_net.ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
456 table[1].data = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
457 table[1].extra2 = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
458 table[2].data = &net->ipv6.frags.timeout; in ip6_frags_ns_sysctl_register()
[all …]
Droute.c870 struct fib6_table *table, in ip6_pol_route_lookup() argument
879 read_lock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
880 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in ip6_pol_route_lookup()
892 read_unlock_bh(&table->tb6_lock); in ip6_pol_route_lookup()
894 trace_fib6_table_lookup(net, rt, table->tb6_id, fl6); in ip6_pol_route_lookup()
943 struct fib6_table *table; in __ip6_ins_rt() local
945 table = rt->rt6i_table; in __ip6_ins_rt()
946 write_lock_bh(&table->tb6_lock); in __ip6_ins_rt()
947 err = fib6_add(&table->tb6_root, rt, info, mxc, extack); in __ip6_ins_rt()
948 write_unlock_bh(&table->tb6_lock); in __ip6_ins_rt()
[all …]

1234567