/net/sched/ |
H A D | sch_plug.c | 140 struct tc_plug_qopt *ctl = nla_data(opt); local 142 if (nla_len(opt) < sizeof(*ctl)) 145 q->limit = ctl->limit;
|
H A D | sch_fifo.c | 64 struct tc_fifo_qopt *ctl = nla_data(opt); local 66 if (nla_len(opt) < sizeof(*ctl)) 69 sch->limit = ctl->limit;
|
H A D | sch_red.c | 183 struct tc_red_qopt *ctl; local 201 ctl = nla_data(tb[TCA_RED_PARMS]); 203 if (ctl->limit > 0) { 204 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit); 210 q->flags = ctl->flags; 211 q->limit = ctl->limit; 219 ctl->qth_min, ctl->qth_max, ctl->Wlog, 220 ctl [all...] |
H A D | sch_gred.c | 384 struct tc_gred_qopt *ctl, int prio, 400 q->limit = ctl->limit; 406 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, 407 ctl->Scell_log, stab, max_P); 422 struct tc_gred_qopt *ctl; local 446 ctl = nla_data(tb[TCA_GRED_PARMS]); 449 if (ctl 383 gred_change_vq(struct Qdisc *sch, int dp, struct tc_gred_qopt *ctl, int prio, u8 *stab, u32 max_P, struct gred_sched_data **prealloc) argument [all...] |
H A D | sch_choke.c | 413 const struct tc_red_qopt *ctl; local 432 ctl = nla_data(tb[TCA_CHOKE_PARMS]); 434 if (ctl->limit > CHOKE_MAX_QUEUE) 437 mask = roundup_pow_of_two(ctl->limit + 1) - 1; 477 q->flags = ctl->flags; 478 q->limit = ctl->limit; 480 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, 481 ctl [all...] |
H A D | sch_sfb.c | 496 const struct tc_sfb_qopt *ctl = &sfb_default_ops; local 508 ctl = nla_data(tb[TCA_SFB_PARMS]); 511 limit = ctl->limit; 525 q->rehash_interval = msecs_to_jiffies(ctl->rehash_interval); 526 q->warmup_time = msecs_to_jiffies(ctl->warmup_time); 529 q->increment = ctl->increment; 530 q->decrement = ctl->decrement; 531 q->max = ctl->max; 532 q->bin_size = ctl->bin_size; 533 q->penalty_rate = ctl [all...] |
H A D | sch_sfq.c | 642 struct tc_sfq_qopt *ctl = nla_data(opt); local 647 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) 651 if (ctl->divisor && 652 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) 660 if (ctl->quantum) { 661 q->quantum = ctl->quantum; 664 q->perturb_period = ctl->perturb_period * HZ; 665 if (ctl->flows) 666 q->maxflows = min_t(u32, ctl [all...] |
/net/ipv4/ |
H A D | sysctl_net_ipv4.c | 149 static int proc_tcp_default_init_rwnd(struct ctl_table *ctl, int write, argument 153 int old_value = *(int *)ctl->data; 154 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); 155 int new_value = *(int *)ctl->data; 158 *(int *)ctl->data = old_value; 163 static int proc_tcp_congestion_control(struct ctl_table *ctl, int write, argument 181 static int proc_tcp_available_congestion_control(struct ctl_table *ctl, argument 198 static int proc_allowed_congestion_control(struct ctl_table *ctl, argument 218 static int proc_tcp_fastopen_key(struct ctl_table *ctl, int write, argument
|
H A D | devinet.c | 1989 static int devinet_conf_proc(struct ctl_table *ctl, int write, argument 1993 int old_value = *(int *)ctl->data; 1994 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); 1995 int new_value = *(int *)ctl->data; 1998 struct ipv4_devconf *cnf = ctl->extra1; 1999 struct net *net = ctl->extra2; 2000 int i = (int *)ctl->data - cnf->data; 2029 static int devinet_sysctl_forward(struct ctl_table *ctl, int write, argument 2033 int *valp = ctl->data; 2036 int ret = proc_dointvec(ctl, writ 2072 ipv4_doint_and_flush(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/net/sctp/ |
H A D | sysctl.c | 65 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, argument 365 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, argument 370 unsigned int min = *(unsigned int *) ctl->extra1; 371 unsigned int max = *(unsigned int *) ctl->extra2; 394 static int proc_sctp_do_rto_max(struct ctl_table *ctl, in argument 423 proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 434 proc_sctp_do_auth(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/net/bridge/ |
H A D | br_netfilter.c | 917 int brnf_sysctl_call_tables(struct ctl_table *ctl, int write, argument 922 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); 924 if (write && *(int *)(ctl->data)) 925 *(int *)(ctl->data) = 1;
|
/net/ipv6/ |
H A D | ndisc.c | 1670 static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, argument 1679 dev_name, ctl->procname, 1680 dev_name, ctl->procname); 1685 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 1687 struct net_device *dev = ctl->extra1; 1691 if ((strcmp(ctl->procname, "retrans_time") == 0) || 1692 (strcmp(ctl->procname, "base_reachable_time") == 0)) 1693 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); 1695 if (strcmp(ctl->procname, "retrans_time") == 0) 1696 ret = neigh_proc_dointvec(ctl, writ [all...] |
H A D | route.c | 2870 int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write, argument 2878 net = (struct net *)ctl->extra1; 2880 proc_dointvec(ctl, write, buffer, lenp, ppos);
|
H A D | addrconf.c | 4910 int addrconf_sysctl_forward(struct ctl_table *ctl, int write, argument 4913 int *valp = ctl->data; 4920 * ctl->data points to idev->cnf.forwarding, we should 4923 lctl = *ctl; 4929 ret = addrconf_fixup_forwarding(ctl, valp, val); 4995 int addrconf_sysctl_disable(struct ctl_table *ctl, int write, argument 4998 int *valp = ctl->data; 5005 * ctl->data points to idev->cnf.disable_ipv6, we should 5008 lctl = *ctl; 5014 ret = addrconf_disable_ipv6(ctl, val 5021 addrconf_sysctl_proxy_ndp(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/net/core/ |
H A D | neighbour.c | 2824 static int proc_unres_qlen(struct ctl_table *ctl, int write, argument 2828 struct ctl_table tmp = *ctl; 2834 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); 2838 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); 2871 static void neigh_proc_update(struct ctl_table *ctl, int write) argument 2873 struct net_device *dev = ctl->extra1; 2874 struct neigh_parms *p = ctl->extra2; 2876 int index = (int *) ctl->data - p->data; 2886 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, argument 2890 struct ctl_table tmp = *ctl; 2901 neigh_proc_dointvec(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 2911 neigh_proc_dointvec_jiffies(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 2922 neigh_proc_dointvec_userhz_jiffies(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 2932 neigh_proc_dointvec_ms_jiffies(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 2943 neigh_proc_dointvec_unres_qlen(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/net/ |
H A D | socket.c | 2016 unsigned char ctl[sizeof(struct cmsghdr) + 20] local 2019 unsigned char *ctl_buf = ctl; 2059 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, 2060 sizeof(ctl)); 2066 if (ctl_len > sizeof(ctl)) { 2113 if (ctl_buf != ctl)
|