Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 21 of 21) sorted by relevance

/net/sctp/
Dsysctl.c43 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
46 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
49 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
52 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
55 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
325 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument
371 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument
376 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min()
377 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min()
400 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, in proc_sctp_do_rto_max() argument
[all …]
/net/sched/
Dsch_red.c197 struct tc_red_qopt *ctl; in red_change() local
215 ctl = nla_data(tb[TCA_RED_PARMS]); in red_change()
216 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog)) in red_change()
219 if (ctl->limit > 0) { in red_change()
220 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit, in red_change()
230 q->flags = ctl->flags; in red_change()
231 q->limit = ctl->limit; in red_change()
239 ctl->qth_min, ctl->qth_max, ctl->Wlog, in red_change()
240 ctl->Plog, ctl->Scell_log, in red_change()
246 if (ctl->flags & TC_RED_ADAPTATIVE) in red_change()
Dsch_choke.c348 const struct tc_red_qopt *ctl; in choke_change() local
368 ctl = nla_data(tb[TCA_CHOKE_PARMS]); in choke_change()
370 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog)) in choke_change()
373 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change()
376 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change()
415 q->flags = ctl->flags; in choke_change()
416 q->limit = ctl->limit; in choke_change()
418 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change()
419 ctl->Plog, ctl->Scell_log, in choke_change()
Dsch_gred.c475 struct tc_gred_qopt *ctl, int prio, in gred_change_vq() argument
483 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog)) { in gred_change_vq()
498 if (ctl->limit > sch->limit) in gred_change_vq()
501 q->limit = ctl->limit; in gred_change_vq()
507 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, in gred_change_vq()
508 ctl->Scell_log, stab, max_P); in gred_change_vq()
639 struct tc_gred_qopt *ctl; in gred_change() local
669 ctl = nla_data(tb[TCA_GRED_PARMS]); in gred_change()
672 if (ctl->DP >= table->DPs) { in gred_change()
678 err = gred_vqs_validate(table, ctl->DP, tb[TCA_GRED_VQ_LIST], in gred_change()
[all …]
Dsch_sfb.c494 const struct tc_sfb_qopt *ctl = &sfb_default_ops; in sfb_change() local
507 ctl = nla_data(tb[TCA_SFB_PARMS]); in sfb_change()
510 limit = ctl->limit; in sfb_change()
526 q->rehash_interval = msecs_to_jiffies(ctl->rehash_interval); in sfb_change()
527 q->warmup_time = msecs_to_jiffies(ctl->warmup_time); in sfb_change()
530 q->increment = ctl->increment; in sfb_change()
531 q->decrement = ctl->decrement; in sfb_change()
532 q->max = ctl->max; in sfb_change()
533 q->bin_size = ctl->bin_size; in sfb_change()
534 q->penalty_rate = ctl->penalty_rate; in sfb_change()
[all …]
Dsch_sfq.c626 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local
633 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
637 if (ctl->divisor && in sfq_change()
638 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
649 if (ctl->quantum) { in sfq_change()
650 q->quantum = ctl->quantum; in sfq_change()
653 q->perturb_period = ctl->perturb_period * HZ; in sfq_change()
654 if (ctl->flows) in sfq_change()
655 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); in sfq_change()
656 if (ctl->divisor) { in sfq_change()
[all …]
Dsch_plug.c136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() local
138 if (nla_len(opt) < sizeof(*ctl)) in plug_init()
141 q->limit = ctl->limit; in plug_init()
Dsch_fifo.c68 struct tc_fifo_qopt *ctl = nla_data(opt); in fifo_init() local
70 if (nla_len(opt) < sizeof(*ctl)) in fifo_init()
73 sch->limit = ctl->limit; in fifo_init()
Dsch_skbprio.c170 struct tc_skbprio_qopt *ctl = nla_data(opt); in skbprio_change() local
172 sch->limit = ctl->limit; in skbprio_change()
/net/unix/
Dsysctl_net_unix.c38 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register()
39 if (net->unx.ctl == NULL) in unix_sysctl_register()
54 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
55 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
/net/ipv6/
Dndisc.c1822 static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, in ndisc_warn_deprecated_sysctl() argument
1831 dev_name, ctl->procname, in ndisc_warn_deprecated_sysctl()
1832 dev_name, ctl->procname); in ndisc_warn_deprecated_sysctl()
1837 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp,… in ndisc_ifinfo_sysctl_change() argument
1839 struct net_device *dev = ctl->extra1; in ndisc_ifinfo_sysctl_change()
1843 if ((strcmp(ctl->procname, "retrans_time") == 0) || in ndisc_ifinfo_sysctl_change()
1844 (strcmp(ctl->procname, "base_reachable_time") == 0)) in ndisc_ifinfo_sysctl_change()
1845 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); in ndisc_ifinfo_sysctl_change()
1847 if (strcmp(ctl->procname, "retrans_time") == 0) in ndisc_ifinfo_sysctl_change()
1848 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
[all …]
Daddrconf.c6044 int addrconf_sysctl_forward(struct ctl_table *ctl, int write, in addrconf_sysctl_forward() argument
6047 int *valp = ctl->data; in addrconf_sysctl_forward()
6057 lctl = *ctl; in addrconf_sysctl_forward()
6063 ret = addrconf_fixup_forwarding(ctl, valp, val); in addrconf_sysctl_forward()
6070 int addrconf_sysctl_mtu(struct ctl_table *ctl, int write, in addrconf_sysctl_mtu() argument
6073 struct inet6_dev *idev = ctl->extra1; in addrconf_sysctl_mtu()
6077 lctl = *ctl; in addrconf_sysctl_mtu()
6142 int addrconf_sysctl_disable(struct ctl_table *ctl, int write, in addrconf_sysctl_disable() argument
6145 int *valp = ctl->data; in addrconf_sysctl_disable()
6155 lctl = *ctl; in addrconf_sysctl_disable()
[all …]
Droute.c6010 int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write, in ipv6_sysctl_rtcache_flush() argument
6019 net = (struct net *)ctl->extra1; in ipv6_sysctl_rtcache_flush()
6021 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
/net/core/
Dneighbour.c3378 static int proc_unres_qlen(struct ctl_table *ctl, int write, in proc_unres_qlen() argument
3382 struct ctl_table tmp = *ctl; in proc_unres_qlen()
3388 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
3392 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
3425 static void neigh_proc_update(struct ctl_table *ctl, int write) in neigh_proc_update() argument
3427 struct net_device *dev = ctl->extra1; in neigh_proc_update()
3428 struct neigh_parms *p = ctl->extra2; in neigh_proc_update()
3430 int index = (int *) ctl->data - p->data; in neigh_proc_update()
3442 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, in neigh_proc_dointvec_zero_intmax() argument
3446 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax()
[all …]
/net/ipv4/
Ddevinet.c2363 static int devinet_conf_proc(struct ctl_table *ctl, int write, in devinet_conf_proc() argument
2367 int old_value = *(int *)ctl->data; in devinet_conf_proc()
2368 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc()
2369 int new_value = *(int *)ctl->data; in devinet_conf_proc()
2372 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc()
2373 struct net *net = ctl->extra2; in devinet_conf_proc()
2374 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc()
2416 static int devinet_sysctl_forward(struct ctl_table *ctl, int write, in devinet_sysctl_forward() argument
2420 int *valp = ctl->data; in devinet_sysctl_forward()
2423 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
[all …]
Dsysctl_net_ipv4.c223 static int proc_tcp_congestion_control(struct ctl_table *ctl, int write, in proc_tcp_congestion_control() argument
226 struct net *net = container_of(ctl->data, struct net, in proc_tcp_congestion_control()
243 static int proc_tcp_available_congestion_control(struct ctl_table *ctl, in proc_tcp_available_congestion_control() argument
260 static int proc_allowed_congestion_control(struct ctl_table *ctl, in proc_allowed_congestion_control() argument
445 static int proc_tcp_available_ulp(struct ctl_table *ctl, in proc_tcp_available_ulp() argument
/net/rds/
Dtcp.c64 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write,
678 static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write, in rds_tcp_skbuf_handler() argument
685 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
688 *(int *)(ctl->extra1)); in rds_tcp_skbuf_handler()
/net/mpls/
Daf_mpls.c1364 static int mpls_conf_proc(struct ctl_table *ctl, int write, in mpls_conf_proc() argument
1368 int oval = *(int *)ctl->data; in mpls_conf_proc()
1369 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in mpls_conf_proc()
1372 struct mpls_dev *mdev = ctl->extra1; in mpls_conf_proc()
1373 int i = (int *)ctl->data - (int *)mdev; in mpls_conf_proc()
1374 struct net *net = ctl->extra2; in mpls_conf_proc()
1375 int val = *(int *)ctl->data; in mpls_conf_proc()
2671 net->mpls.ctl = register_net_sysctl(net, "net/mpls", table); in mpls_net_init()
2672 if (net->mpls.ctl == NULL) { in mpls_net_init()
2687 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit()
[all …]
/net/bridge/
Dbr_netfilter_hooks.c1029 int brnf_sysctl_call_tables(struct ctl_table *ctl, int write, in brnf_sysctl_call_tables() argument
1034 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()
1036 if (write && *(int *)(ctl->data)) in brnf_sysctl_call_tables()
1037 *(int *)(ctl->data) = 1; in brnf_sysctl_call_tables()
/net/
Dsocket.c2240 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ____sys_sendmsg() local
2243 unsigned char *ctl_buf = ctl; in ____sys_sendmsg()
2255 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ____sys_sendmsg()
2256 sizeof(ctl)); in ____sys_sendmsg()
2264 if (ctl_len > sizeof(ctl)) { in ____sys_sendmsg()
2311 if (ctl_buf != ctl) in ____sys_sendmsg()
/net/can/j1939/
Dtransport.c562 bool ctl, in j1939_tp_tx_dat_new() argument
584 if (ctl) { in j1939_tp_tx_dat_new()