/net/sched/ |
D | sch_gred.c | 62 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/ |
D | xfrm_sysctl.c | 45 struct ctl_table *table; in xfrm_sysctl_init() local 49 table = kmemdup(xfrm_table, sizeof(xfrm_table), GFP_KERNEL); in xfrm_sysctl_init() 50 if (!table) in xfrm_sysctl_init() 52 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init() 53 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init() 54 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init() 55 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init() 59 table[0].procname = NULL; in xfrm_sysctl_init() 61 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table); in xfrm_sysctl_init() 67 kfree(table); in xfrm_sysctl_init() [all …]
|
/net/unix/ |
D | sysctl_net_unix.c | 31 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/netfilter/ |
D | nf_tables_api.c | 96 struct nft_table *table, in nft_ctx_init() argument 102 ctx->table = table; in nft_ctx_init() 155 static int nf_tables_register_hooks(const struct nft_table *table, in nf_tables_register_hooks() argument 159 if (table->flags & NFT_TABLE_F_DORMANT || in nf_tables_register_hooks() 166 static void nf_tables_unregister_hooks(const struct nft_table *table, in nf_tables_unregister_hooks() argument 170 if (table->flags & NFT_TABLE_F_DORMANT || in nf_tables_unregister_hooks() 189 ctx->table->flags |= NFT_TABLE_INACTIVE; in nft_trans_table_add() 203 list_del_rcu(&ctx->table->list); in nft_deltable() 230 ctx->table->use--; in nft_delchain() 356 ctx->table->use--; in nft_delset() [all …]
|
D | nf_conntrack_timestamp.c | 45 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()
|
D | nf_conntrack_acct.c | 67 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()
|
D | x_tables.c | 473 if (par->match->table != NULL && in xt_check_match() 474 strcmp(par->match->table, par->table) != 0) { in xt_check_match() 477 par->match->table, par->table); in xt_check_match() 856 if (par->target->table != NULL && in xt_check_target() 857 strcmp(par->target->table, par->table) != 0) { in xt_check_target() 860 par->target->table, par->table); in xt_check_target() 1088 void xt_table_unlock(struct xt_table *table) in xt_table_unlock() argument 1090 mutex_unlock(&xt[table->af].mutex); in xt_table_unlock() 1162 xt_replace_table(struct xt_table *table, in xt_replace_table() argument 1178 private = table->private; in xt_replace_table() [all …]
|
D | nf_conntrack_ecache.c | 269 struct ctl_table *table; in nf_conntrack_event_init_sysctl() local 271 table = kmemdup(event_sysctl_table, sizeof(event_sysctl_table), in nf_conntrack_event_init_sysctl() 273 if (!table) in nf_conntrack_event_init_sysctl() 276 table[0].data = &net->ct.sysctl_events; in nf_conntrack_event_init_sysctl() 280 table[0].procname = NULL; in nf_conntrack_event_init_sysctl() 283 register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_event_init_sysctl() 291 kfree(table); in nf_conntrack_event_init_sysctl() 298 struct ctl_table *table; in nf_conntrack_event_fini_sysctl() local 300 table = net->ct.event_sysctl_header->ctl_table_arg; in nf_conntrack_event_fini_sysctl() 302 kfree(table); in nf_conntrack_event_fini_sysctl()
|
D | nfnetlink.c | 41 } table[NFNL_SUBSYS_COUNT]; variable 56 mutex_lock(&table[subsys_id].mutex); in nfnl_lock() 62 mutex_unlock(&table[subsys_id].mutex); in nfnl_unlock() 69 return lockdep_is_held(&table[subsys_id].mutex); in lockdep_nfnl_is_held() 77 if (table[n->subsys_id].subsys) { in nfnetlink_subsys_register() 81 rcu_assign_pointer(table[n->subsys_id].subsys, n); in nfnetlink_subsys_register() 91 table[n->subsys_id].subsys = NULL; in nfnetlink_subsys_unregister() 105 return rcu_dereference(table[subsys_id].subsys); in nfnetlink_get_subsys() 210 if (rcu_dereference_protected(table[subsys_id].subsys, in nfnetlink_rcv_msg() 211 lockdep_is_held(&table[subsys_id].mutex)) != ss || in nfnetlink_rcv_msg() [all …]
|
D | nf_log.c | 396 static int nf_log_proc_dostring(struct ctl_table *table, int write, in nf_log_proc_dostring() argument 403 int tindex = (unsigned long)table->extra1; in nf_log_proc_dostring() 404 struct net *net = table->extra2; in nf_log_proc_dostring() 425 struct ctl_table tmp = *table; in nf_log_proc_dostring() 444 struct ctl_table *table; in netfilter_log_sysctl_init() local 446 table = nf_log_sysctl_table; in netfilter_log_sysctl_init() 448 table = kmemdup(nf_log_sysctl_table, in netfilter_log_sysctl_init() 451 if (!table) in netfilter_log_sysctl_init() 469 table[i].extra2 = net; in netfilter_log_sysctl_init() 473 table); in netfilter_log_sysctl_init() [all …]
|
D | nf_conntrack_standalone.c | 500 struct ctl_table *table; in nf_conntrack_standalone_init_sysctl() local 502 table = kmemdup(nf_ct_sysctl_table, sizeof(nf_ct_sysctl_table), in nf_conntrack_standalone_init_sysctl() 504 if (!table) in nf_conntrack_standalone_init_sysctl() 507 table[1].data = &net->ct.count; in nf_conntrack_standalone_init_sysctl() 508 table[2].data = &net->ct.htable_size; in nf_conntrack_standalone_init_sysctl() 509 table[3].data = &net->ct.sysctl_checksum; in nf_conntrack_standalone_init_sysctl() 510 table[4].data = &net->ct.sysctl_log_invalid; in nf_conntrack_standalone_init_sysctl() 514 table[0].procname = NULL; in nf_conntrack_standalone_init_sysctl() 516 net->ct.sysctl_header = register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_standalone_init_sysctl() 523 kfree(table); in nf_conntrack_standalone_init_sysctl() [all …]
|
/net/openvswitch/ |
D | flow_table.c | 115 int ovs_flow_tbl_count(const struct flow_table *table) in ovs_flow_tbl_count() argument 117 return table->count; in ovs_flow_tbl_count() 209 int ovs_flow_tbl_init(struct flow_table *table) in ovs_flow_tbl_init() argument 222 rcu_assign_pointer(table->ti, ti); in ovs_flow_tbl_init() 223 rcu_assign_pointer(table->ufid_ti, ufid_ti); in ovs_flow_tbl_init() 224 INIT_LIST_HEAD(&table->mask_list); in ovs_flow_tbl_init() 225 table->last_rehash = jiffies; in ovs_flow_tbl_init() 226 table->count = 0; in ovs_flow_tbl_init() 227 table->ufid_count = 0; in ovs_flow_tbl_init() 283 void ovs_flow_tbl_destroy(struct flow_table *table) in ovs_flow_tbl_destroy() argument [all …]
|
D | flow_table.h | 66 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/ |
D | sysctl_net_ax25.c | 155 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/batman-adv/ |
D | hash.c | 31 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/ipv4/ |
D | sysctl_net_ipv4.c | 65 static int ipv4_local_port_range(struct ctl_table *table, int write, in ipv4_local_port_range() argument 70 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range() 76 .mode = table->mode, in ipv4_local_port_range() 96 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 98 kgid_t *data = table->data; in inet_get_ping_group_range_table() 100 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table() 111 static void set_ping_group_range(struct ctl_table *table, kgid_t low, kgid_t high) in set_ping_group_range() argument 113 kgid_t *data = table->data; in set_ping_group_range() 115 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range() 123 static int ipv4_ping_group_range(struct ctl_table *table, int write, in ipv4_ping_group_range() argument [all …]
|
D | xfrm4_policy.c | 307 struct ctl_table *table; in xfrm4_net_sysctl_init() local 310 table = xfrm4_policy_table; in xfrm4_net_sysctl_init() 312 table = kmemdup(table, sizeof(xfrm4_policy_table), GFP_KERNEL); in xfrm4_net_sysctl_init() 313 if (!table) in xfrm4_net_sysctl_init() 316 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init() 319 hdr = register_net_sysctl(net, "net/ipv4", table); in xfrm4_net_sysctl_init() 328 kfree(table); in xfrm4_net_sysctl_init() 335 struct ctl_table *table; in xfrm4_net_sysctl_exit() local 340 table = net->ipv4.xfrm4_hdr->ctl_table_arg; in xfrm4_net_sysctl_exit() 343 kfree(table); in xfrm4_net_sysctl_exit()
|
/net/bridge/netfilter/ |
D | ebtables.c | 188 struct ebt_table *table) in ebt_do_table() argument 209 read_lock_bh(&table->lock); in ebt_do_table() 210 private = table->private; in ebt_do_table() 231 read_unlock_bh(&table->lock); in ebt_do_table() 254 read_unlock_bh(&table->lock); in ebt_do_table() 258 read_unlock_bh(&table->lock); in ebt_do_table() 285 read_unlock_bh(&table->lock); in ebt_do_table() 298 read_unlock_bh(&table->lock); in ebt_do_table() 316 read_unlock_bh(&table->lock); in ebt_do_table() 319 read_unlock_bh(&table->lock); in ebt_do_table() [all …]
|
/net/ |
D | sysctl_net.c | 42 struct ctl_table *table) in net_ctl_permissions() argument 51 int mode = (table->mode >> 6) & 7; in net_ctl_permissions() 56 int mode = (table->mode >> 3) & 7; in net_ctl_permissions() 59 return table->mode; in net_ctl_permissions() 108 const char *path, struct ctl_table *table) in register_net_sysctl() argument 110 return __register_sysctl_table(&net->sysctls, path, table); in register_net_sysctl()
|
/net/ieee802154/6lowpan/ |
D | reassembly.c | 456 struct ctl_table *table; in lowpan_frags_ns_sysctl_register() local 461 table = lowpan_frags_ns_ctl_table; in lowpan_frags_ns_sysctl_register() 463 table = kmemdup(table, sizeof(lowpan_frags_ns_ctl_table), in lowpan_frags_ns_sysctl_register() 465 if (table == NULL) in lowpan_frags_ns_sysctl_register() 468 table[0].data = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register() 469 table[0].extra1 = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register() 470 table[0].extra2 = &init_net.ieee802154_lowpan.frags.high_thresh; in lowpan_frags_ns_sysctl_register() 471 table[1].data = &ieee802154_lowpan->frags.low_thresh; in lowpan_frags_ns_sysctl_register() 472 table[1].extra2 = &ieee802154_lowpan->frags.high_thresh; in lowpan_frags_ns_sysctl_register() 473 table[2].data = &ieee802154_lowpan->frags.timeout; in lowpan_frags_ns_sysctl_register() [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 97 struct ctl_table *table; in nf_ct_frag6_sysctl_register() local 100 table = nf_ct_frag6_sysctl_table; in nf_ct_frag6_sysctl_register() 102 table = kmemdup(table, sizeof(nf_ct_frag6_sysctl_table), in nf_ct_frag6_sysctl_register() 104 if (table == NULL) in nf_ct_frag6_sysctl_register() 107 table[0].data = &net->nf_frag.frags.timeout; in nf_ct_frag6_sysctl_register() 108 table[1].data = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register() 109 table[1].extra2 = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register() 110 table[2].data = &net->nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register() 111 table[2].extra1 = &net->nf_frag.frags.low_thresh; in nf_ct_frag6_sysctl_register() 112 table[2].extra2 = &init_net.nf_frag.frags.high_thresh; in nf_ct_frag6_sysctl_register() [all …]
|
/net/ipv6/ |
D | route.c | 845 struct fib6_table *table, in ip6_pol_route_lookup() argument 854 read_lock_bh(&table->tb6_lock); in ip6_pol_route_lookup() 855 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); in ip6_pol_route_lookup() 867 read_unlock_bh(&table->tb6_lock); in ip6_pol_route_lookup() 914 struct fib6_table *table; in __ip6_ins_rt() local 916 table = rt->rt6i_table; in __ip6_ins_rt() 917 write_lock_bh(&table->tb6_lock); in __ip6_ins_rt() 918 err = fib6_add(&table->tb6_root, rt, info, mxc); in __ip6_ins_rt() 919 write_unlock_bh(&table->tb6_lock); in __ip6_ins_rt() 1004 struct fib6_table *table = rt->rt6i_table; in rt6_make_pcpu_route() local [all …]
|
D | xfrm6_policy.c | 333 struct ctl_table *table; in xfrm6_net_sysctl_init() local 336 table = xfrm6_policy_table; in xfrm6_net_sysctl_init() 338 table = kmemdup(table, sizeof(xfrm6_policy_table), GFP_KERNEL); in xfrm6_net_sysctl_init() 339 if (!table) in xfrm6_net_sysctl_init() 342 table[0].data = &net->xfrm.xfrm6_dst_ops.gc_thresh; in xfrm6_net_sysctl_init() 345 hdr = register_net_sysctl(net, "net/ipv6", table); in xfrm6_net_sysctl_init() 354 kfree(table); in xfrm6_net_sysctl_init() 361 struct ctl_table *table; in xfrm6_net_sysctl_exit() local 366 table = net->ipv6.sysctl.xfrm6_hdr->ctl_table_arg; in xfrm6_net_sysctl_exit() 369 kfree(table); in xfrm6_net_sysctl_exit()
|
D | reassembly.c | 598 struct ctl_table *table; in ip6_frags_ns_sysctl_register() local 601 table = ip6_frags_ns_ctl_table; in ip6_frags_ns_sysctl_register() 603 table = kmemdup(table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL); in ip6_frags_ns_sysctl_register() 604 if (!table) in ip6_frags_ns_sysctl_register() 607 table[0].data = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register() 608 table[0].extra1 = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register() 609 table[0].extra2 = &init_net.ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register() 610 table[1].data = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register() 611 table[1].extra2 = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register() 612 table[2].data = &net->ipv6.frags.timeout; in ip6_frags_ns_sysctl_register() [all …]
|
/net/decnet/ |
D | dn_rules.c | 92 tbl = dn_fib_get_table(rule->table, 0); in dn_fib_rule_action() 131 if (rule->table == RT_TABLE_UNSPEC) { in dn_fib_rule_configure() 133 struct dn_fib_table *table; in dn_fib_rule_configure() local 135 table = dn_fib_empty_table(); in dn_fib_rule_configure() 136 if (table == NULL) { in dn_fib_rule_configure() 141 rule->table = table->n; in dn_fib_rule_configure()
|