Home
last modified time | relevance | path

Searched refs:ca (Results 1 – 18 of 18) sorted by relevance

/net/ipv4/
Dtcp_htcp.c48 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time() argument
50 return jiffies - ca->last_cong; in htcp_cong_time()
53 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount() argument
55 return htcp_cong_time(ca) / ca->minRTT; in htcp_ccount()
58 static inline void htcp_reset(struct htcp *ca) in htcp_reset() argument
60 ca->undo_last_cong = ca->last_cong; in htcp_reset()
61 ca->undo_maxRTT = ca->maxRTT; in htcp_reset()
62 ca->undo_old_maxB = ca->old_maxB; in htcp_reset()
64 ca->last_cong = jiffies; in htcp_reset()
70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo() local
[all …]
Dtcp_cdg.c140 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_hystart_update() local
143 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
144 if (ca->delay_min == 0) in tcp_cdg_hystart_update()
150 if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) { in tcp_cdg_hystart_update()
151 ca->last_ack = now_us; in tcp_cdg_hystart_update()
152 ca->round_start = now_us; in tcp_cdg_hystart_update()
153 } else if (before(now_us, ca->last_ack + 3000)) { in tcp_cdg_hystart_update()
154 u32 base_owd = max(ca->delay_min / 2U, 125U); in tcp_cdg_hystart_update()
156 ca->last_ack = now_us; in tcp_cdg_hystart_update()
157 if (after(now_us, ca->round_start + base_owd)) { in tcp_cdg_hystart_update()
[all …]
Dtcp_cubic.c105 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
107 ca->cnt = 0; in bictcp_reset()
108 ca->last_max_cwnd = 0; in bictcp_reset()
109 ca->last_cwnd = 0; in bictcp_reset()
110 ca->last_time = 0; in bictcp_reset()
111 ca->bic_origin_point = 0; in bictcp_reset()
112 ca->bic_K = 0; in bictcp_reset()
113 ca->delay_min = 0; in bictcp_reset()
114 ca->epoch_start = 0; in bictcp_reset()
115 ca->ack_cnt = 0; in bictcp_reset()
[all …]
Dtcp_bic.c60 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
62 ca->cnt = 0; in bictcp_reset()
63 ca->last_max_cwnd = 0; in bictcp_reset()
64 ca->last_cwnd = 0; in bictcp_reset()
65 ca->last_time = 0; in bictcp_reset()
66 ca->epoch_start = 0; in bictcp_reset()
67 ca->delayed_ack = 2 << ACK_RATIO_SHIFT; in bictcp_reset()
72 struct bictcp *ca = inet_csk_ca(sk); in bictcp_init() local
74 bictcp_reset(ca); in bictcp_init()
75 ca->loss_cwnd = 0; in bictcp_init()
[all …]
Dtcp_cong.c38 const struct tcp_congestion_ops *ca = tcp_ca_find(name); in __tcp_ca_find_autoload() local
40 if (!ca && capable(CAP_NET_ADMIN)) { in __tcp_ca_find_autoload()
44 ca = tcp_ca_find(name); in __tcp_ca_find_autoload()
47 return ca; in __tcp_ca_find_autoload()
67 int tcp_register_congestion_control(struct tcp_congestion_ops *ca) in tcp_register_congestion_control() argument
72 if (!ca->ssthresh || !ca->cong_avoid) { in tcp_register_congestion_control()
73 pr_err("%s does not implement required ops\n", ca->name); in tcp_register_congestion_control()
77 ca->key = jhash(ca->name, sizeof(ca->name), strlen(ca->name)); in tcp_register_congestion_control()
80 if (ca->key == TCP_CA_UNSPEC || tcp_ca_find_key(ca->key)) { in tcp_register_congestion_control()
82 ca->name); in tcp_register_congestion_control()
[all …]
Dtcp_illinois.c59 struct illinois *ca = inet_csk_ca(sk); in rtt_reset() local
61 ca->end_seq = tp->snd_nxt; in rtt_reset()
62 ca->cnt_rtt = 0; in rtt_reset()
63 ca->sum_rtt = 0; in rtt_reset()
70 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local
72 ca->alpha = ALPHA_MAX; in tcp_illinois_init()
73 ca->beta = BETA_BASE; in tcp_illinois_init()
74 ca->base_rtt = 0x7fffffff; in tcp_illinois_init()
75 ca->max_rtt = 0; in tcp_illinois_init()
77 ca->acked = 0; in tcp_illinois_init()
[all …]
Dtcp_dctcp.c71 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() argument
73 ca->next_seq = tp->snd_nxt; in dctcp_reset()
75 ca->acked_bytes_ecn = 0; in dctcp_reset()
76 ca->acked_bytes_total = 0; in dctcp_reset()
86 struct dctcp *ca = inet_csk_ca(sk); in dctcp_init() local
88 ca->prior_snd_una = tp->snd_una; in dctcp_init()
89 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init()
91 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in dctcp_init()
93 ca->loss_cwnd = 0; in dctcp_init()
94 ca->ce_state = 0; in dctcp_init()
[all …]
Dtcp_hybla.c35 struct hybla *ca = inet_csk_ca(sk); in hybla_recalc_param() local
37 ca->rho_3ls = max_t(u32, in hybla_recalc_param()
40 ca->rho = ca->rho_3ls >> 3; in hybla_recalc_param()
41 ca->rho2_7ls = (ca->rho_3ls * ca->rho_3ls) << 1; in hybla_recalc_param()
42 ca->rho2 = ca->rho2_7ls >> 7; in hybla_recalc_param()
48 struct hybla *ca = inet_csk_ca(sk); in hybla_init() local
50 ca->rho = 0; in hybla_init()
51 ca->rho2 = 0; in hybla_init()
52 ca->rho_3ls = 0; in hybla_init()
53 ca->rho2_7ls = 0; in hybla_init()
[all …]
Dtcp_highspeed.c102 struct hstcp *ca = inet_csk_ca(sk); in hstcp_init() local
104 ca->ai = 0; in hstcp_init()
114 struct hstcp *ca = inet_csk_ca(sk); in hstcp_cong_avoid() local
129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid()
130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid()
131 ca->ai < HSTCP_AIMD_MAX - 1) in hstcp_cong_avoid()
132 ca->ai++; in hstcp_cong_avoid()
133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid()
134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid()
135 ca->ai--; in hstcp_cong_avoid()
[all …]
Dtcp_vegas.c292 const struct vegas *ca = inet_csk_ca(sk); in tcp_vegas_get_info() local
295 info->vegas.tcpv_enabled = ca->doing_vegas_now, in tcp_vegas_get_info()
296 info->vegas.tcpv_rttcnt = ca->cntRTT, in tcp_vegas_get_info()
297 info->vegas.tcpv_rtt = ca->baseRTT, in tcp_vegas_get_info()
298 info->vegas.tcpv_minrtt = ca->minRTT, in tcp_vegas_get_info()
Dtcp_westwood.c262 const struct westwood *ca = inet_csk_ca(sk); in tcp_westwood_info() local
267 info->vegas.tcpv_rtt = jiffies_to_usecs(ca->rtt), in tcp_westwood_info()
268 info->vegas.tcpv_minrtt = jiffies_to_usecs(ca->rtt_min), in tcp_westwood_info()
Dtcp_minisocks.c417 const struct tcp_congestion_ops *ca; in tcp_ca_openreq_child() local
420 ca = tcp_ca_find_key(ca_key); in tcp_ca_openreq_child()
421 if (likely(ca && try_module_get(ca->owner))) { in tcp_ca_openreq_child()
423 icsk->icsk_ca_ops = ca; in tcp_ca_openreq_child()
Dtcp_output.c3096 const struct tcp_congestion_ops *ca; in tcp_ca_dst_init() local
3103 ca = tcp_ca_find_key(ca_key); in tcp_ca_dst_init()
3104 if (likely(ca && try_module_get(ca->owner))) { in tcp_ca_dst_init()
3107 icsk->icsk_ca_ops = ca; in tcp_ca_dst_init()
/net/bluetooth/hidp/
Dsock.c52 struct hidp_connadd_req ca; in hidp_sock_ioctl() local
67 if (copy_from_user(&ca, argp, sizeof(ca))) in hidp_sock_ioctl()
70 csock = sockfd_lookup(ca.ctrl_sock, &err); in hidp_sock_ioctl()
74 isock = sockfd_lookup(ca.intr_sock, &err); in hidp_sock_ioctl()
79 ca.name[sizeof(ca.name)-1] = 0; in hidp_sock_ioctl()
81 err = hidp_connection_add(&ca, csock, isock); in hidp_sock_ioctl()
82 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in hidp_sock_ioctl()
166 struct compat_hidp_connadd_req ca; in hidp_sock_compat_ioctl() local
171 if (copy_from_user(&ca, (void __user *) arg, sizeof(ca))) in hidp_sock_compat_ioctl()
174 if (put_user(ca.ctrl_sock, &uca->ctrl_sock) || in hidp_sock_compat_ioctl()
[all …]
/net/sched/
Dact_connmark.c39 struct tcf_connmark_info *ca = a->priv; in tcf_connmark() local
44 spin_lock(&ca->tcf_lock); in tcf_connmark()
45 ca->tcf_tm.lastuse = jiffies; in tcf_connmark()
46 bstats_update(&ca->tcf_bstats, skb); in tcf_connmark()
66 ca->tcf_qstats.overlimits++; in tcf_connmark()
71 proto, ca->net, &tuple)) in tcf_connmark()
74 zone.id = ca->zone; in tcf_connmark()
77 thash = nf_conntrack_find_get(ca->net, &zone, &tuple); in tcf_connmark()
83 ca->tcf_qstats.overlimits++; in tcf_connmark()
88 spin_unlock(&ca->tcf_lock); in tcf_connmark()
[all …]
/net/bluetooth/bnep/
Dsock.c55 struct bnep_connadd_req ca; in bnep_sock_ioctl() local
70 if (copy_from_user(&ca, argp, sizeof(ca))) in bnep_sock_ioctl()
73 nsock = sockfd_lookup(ca.sock, &err); in bnep_sock_ioctl()
81 ca.device[sizeof(ca.device)-1] = 0; in bnep_sock_ioctl()
83 err = bnep_add_connection(&ca, nsock); in bnep_sock_ioctl()
85 if (copy_to_user(argp, &ca, sizeof(ca))) in bnep_sock_ioctl()
/net/bluetooth/cmtp/
Dsock.c68 struct cmtp_connadd_req ca; in cmtp_sock_ioctl() local
83 if (copy_from_user(&ca, argp, sizeof(ca))) in cmtp_sock_ioctl()
86 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl()
95 err = cmtp_add_connection(&ca, nsock); in cmtp_sock_ioctl()
97 if (copy_to_user(argp, &ca, sizeof(ca))) in cmtp_sock_ioctl()
/net/ipv6/
Dsit.c295 unsigned int cmax, c = 0, ca, len; in ipip6_tunnel_get_prl() local
313 ca = t->prl_count < cmax ? t->prl_count : cmax; in ipip6_tunnel_get_prl()
321 kp = kcalloc(ca, sizeof(*kp), GFP_ATOMIC); in ipip6_tunnel_get_prl()