Lines Matching refs:sk

150 void tcp_assign_congestion_control(struct sock *sk)  in tcp_assign_congestion_control()  argument
152 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_assign_congestion_control()
175 void tcp_init_congestion_control(struct sock *sk) in tcp_init_congestion_control() argument
177 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_init_congestion_control()
180 icsk->icsk_ca_ops->init(sk); in tcp_init_congestion_control()
183 static void tcp_reinit_congestion_control(struct sock *sk, in tcp_reinit_congestion_control() argument
186 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_reinit_congestion_control()
188 tcp_cleanup_congestion_control(sk); in tcp_reinit_congestion_control()
192 if (sk->sk_state != TCP_CLOSE && icsk->icsk_ca_ops->init) in tcp_reinit_congestion_control()
193 icsk->icsk_ca_ops->init(sk); in tcp_reinit_congestion_control()
197 void tcp_cleanup_congestion_control(struct sock *sk) in tcp_cleanup_congestion_control() argument
199 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_cleanup_congestion_control()
202 icsk->icsk_ca_ops->release(sk); in tcp_cleanup_congestion_control()
327 int tcp_set_congestion_control(struct sock *sk, const char *name) in tcp_set_congestion_control() argument
329 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_set_congestion_control()
346 ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN))) in tcp_set_congestion_control()
351 tcp_reinit_congestion_control(sk, ca); in tcp_set_congestion_control()
408 void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_reno_cong_avoid() argument
410 struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_cong_avoid()
412 if (!tcp_is_cwnd_limited(sk)) in tcp_reno_cong_avoid()
427 u32 tcp_reno_ssthresh(struct sock *sk) in tcp_reno_ssthresh() argument
429 const struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_ssthresh()