Home
last modified time | relevance | path

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

/net/sctp/
Dsysctl.c65 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
68 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
71 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
74 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
77 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
319 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument
365 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument
370 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min()
371 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min()
394 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.c183 struct tc_red_qopt *ctl; in red_change() local
201 ctl = nla_data(tb[TCA_RED_PARMS]); in red_change()
203 if (ctl->limit > 0) { in red_change()
204 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit); in red_change()
210 q->flags = ctl->flags; in red_change()
211 q->limit = ctl->limit; in red_change()
220 ctl->qth_min, ctl->qth_max, ctl->Wlog, in red_change()
221 ctl->Plog, ctl->Scell_log, in red_change()
227 if (ctl->flags & TC_RED_ADAPTATIVE) in red_change()
Dsch_gred.c384 struct tc_gred_qopt *ctl, int prio, in gred_change_vq() argument
400 q->limit = ctl->limit; in gred_change_vq()
406 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, in gred_change_vq()
407 ctl->Scell_log, stab, max_P); in gred_change_vq()
422 struct tc_gred_qopt *ctl; in gred_change() local
446 ctl = nla_data(tb[TCA_GRED_PARMS]); in gred_change()
449 if (ctl->DP >= table->DPs) in gred_change()
453 if (ctl->prio == 0) { in gred_change()
460 "setting default to %d\n", ctl->DP, def_prio); in gred_change()
464 prio = ctl->prio; in gred_change()
[all …]
Dsch_choke.c413 const struct tc_red_qopt *ctl; in choke_change() local
432 ctl = nla_data(tb[TCA_CHOKE_PARMS]); in choke_change()
434 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change()
437 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change()
479 q->flags = ctl->flags; in choke_change()
480 q->limit = ctl->limit; in choke_change()
482 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change()
483 ctl->Plog, ctl->Scell_log, in choke_change()
Dsch_sfb.c496 const struct tc_sfb_qopt *ctl = &sfb_default_ops; in sfb_change() local
508 ctl = nla_data(tb[TCA_SFB_PARMS]); in sfb_change()
511 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.c644 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local
649 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()
653 if (ctl->divisor && in sfq_change()
654 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
662 if (ctl->quantum) { in sfq_change()
663 q->quantum = ctl->quantum; in sfq_change()
666 q->perturb_period = ctl->perturb_period * HZ; in sfq_change()
667 if (ctl->flows) in sfq_change()
668 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); in sfq_change()
669 if (ctl->divisor) { in sfq_change()
[all …]
Dsch_plug.c140 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() local
142 if (nla_len(opt) < sizeof(*ctl)) in plug_init()
145 q->limit = ctl->limit; in plug_init()
Dsch_fifo.c64 struct tc_fifo_qopt *ctl = nla_data(opt); in fifo_init() local
66 if (nla_len(opt) < sizeof(*ctl)) in fifo_init()
69 sch->limit = ctl->limit; in fifo_init()
/net/unix/
Dsysctl_net_unix.c42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register()
43 if (net->unx.ctl == NULL) in unix_sysctl_register()
58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
59 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
/net/ipv4/
Dsysctl_net_ipv4.c149 static int proc_tcp_default_init_rwnd(struct ctl_table *ctl, int write, in proc_tcp_default_init_rwnd() argument
153 int old_value = *(int *)ctl->data; in proc_tcp_default_init_rwnd()
154 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in proc_tcp_default_init_rwnd()
155 int new_value = *(int *)ctl->data; in proc_tcp_default_init_rwnd()
158 *(int *)ctl->data = old_value; in proc_tcp_default_init_rwnd()
163 static int proc_tcp_congestion_control(struct ctl_table *ctl, int write, in proc_tcp_congestion_control() argument
181 static int proc_tcp_available_congestion_control(struct ctl_table *ctl, in proc_tcp_available_congestion_control() argument
198 static int proc_allowed_congestion_control(struct ctl_table *ctl, in proc_allowed_congestion_control() argument
218 static int proc_tcp_fastopen_key(struct ctl_table *ctl, int write, in proc_tcp_fastopen_key() argument
Ddevinet.c1987 static int devinet_conf_proc(struct ctl_table *ctl, int write, in devinet_conf_proc() argument
1991 int old_value = *(int *)ctl->data; in devinet_conf_proc()
1992 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc()
1993 int new_value = *(int *)ctl->data; in devinet_conf_proc()
1996 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc()
1997 struct net *net = ctl->extra2; in devinet_conf_proc()
1998 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc()
2027 static int devinet_sysctl_forward(struct ctl_table *ctl, int write, in devinet_sysctl_forward() argument
2031 int *valp = ctl->data; in devinet_sysctl_forward()
2034 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
[all …]
/net/ipv6/
Dndisc.c1679 static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, in ndisc_warn_deprecated_sysctl() argument
1688 dev_name, ctl->procname, in ndisc_warn_deprecated_sysctl()
1689 dev_name, ctl->procname); in ndisc_warn_deprecated_sysctl()
1694 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp,… in ndisc_ifinfo_sysctl_change() argument
1696 struct net_device *dev = ctl->extra1; in ndisc_ifinfo_sysctl_change()
1700 if ((strcmp(ctl->procname, "retrans_time") == 0) || in ndisc_ifinfo_sysctl_change()
1701 (strcmp(ctl->procname, "base_reachable_time") == 0)) in ndisc_ifinfo_sysctl_change()
1702 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); in ndisc_ifinfo_sysctl_change()
1704 if (strcmp(ctl->procname, "retrans_time") == 0) in ndisc_ifinfo_sysctl_change()
1705 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
[all …]
Daddrconf.c4964 int addrconf_sysctl_forward(struct ctl_table *ctl, int write, in addrconf_sysctl_forward() argument
4967 int *valp = ctl->data; in addrconf_sysctl_forward()
4977 lctl = *ctl; in addrconf_sysctl_forward()
4983 ret = addrconf_fixup_forwarding(ctl, valp, val); in addrconf_sysctl_forward()
4990 int addrconf_sysctl_mtu(struct ctl_table *ctl, int write, in addrconf_sysctl_mtu() argument
4993 struct inet6_dev *idev = ctl->extra1; in addrconf_sysctl_mtu()
4997 lctl = *ctl; in addrconf_sysctl_mtu()
5064 int addrconf_sysctl_disable(struct ctl_table *ctl, int write, in addrconf_sysctl_disable() argument
5067 int *valp = ctl->data; in addrconf_sysctl_disable()
5077 lctl = *ctl; in addrconf_sysctl_disable()
[all …]
Droute.c2889 int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write, in ipv6_sysctl_rtcache_flush() argument
2897 net = (struct net *)ctl->extra1; in ipv6_sysctl_rtcache_flush()
2899 proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
/net/core/
Dneighbour.c2841 static int proc_unres_qlen(struct ctl_table *ctl, int write, in proc_unres_qlen() argument
2845 struct ctl_table tmp = *ctl; in proc_unres_qlen()
2851 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
2855 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
2888 static void neigh_proc_update(struct ctl_table *ctl, int write) in neigh_proc_update() argument
2890 struct net_device *dev = ctl->extra1; in neigh_proc_update()
2891 struct neigh_parms *p = ctl->extra2; in neigh_proc_update()
2893 int index = (int *) ctl->data - p->data; in neigh_proc_update()
2903 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, in neigh_proc_dointvec_zero_intmax() argument
2907 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax()
[all …]
/net/bridge/
Dbr_netfilter.c930 int brnf_sysctl_call_tables(struct ctl_table *ctl, int write, in brnf_sysctl_call_tables() argument
935 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()
937 if (write && *(int *)(ctl->data)) in brnf_sysctl_call_tables()
938 *(int *)(ctl->data) = 1; in brnf_sysctl_call_tables()
/net/
Dsocket.c2031 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ___sys_sendmsg() local
2034 unsigned char *ctl_buf = ctl; in ___sys_sendmsg()
2072 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ___sys_sendmsg()
2073 sizeof(ctl)); in ___sys_sendmsg()
2079 if (ctl_len > sizeof(ctl)) { in ___sys_sendmsg()
2126 if (ctl_buf != ctl) in ___sys_sendmsg()