Home
last modified time | relevance | path

Searched refs:window_clamp (Results 1 – 7 of 7) sorted by relevance

/net/ipv4/
Dtcp_minisocks.c367 u32 window_clamp; in tcp_openreq_init_rwin() local
373 window_clamp = READ_ONCE(tp->window_clamp); in tcp_openreq_init_rwin()
375 req->rsk_window_clamp = window_clamp ? : dst_metric(dst, RTAX_WINDOW); in tcp_openreq_init_rwin()
511 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
520 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
Dtcp_output.c206 __u32 *rcv_wnd, __u32 *window_clamp, in tcp_select_initial_window() argument
213 if (*window_clamp == 0) in tcp_select_initial_window()
214 (*window_clamp) = (U16_MAX << TCP_MAX_WSCALE); in tcp_select_initial_window()
215 space = min(*window_clamp, space); in tcp_select_initial_window()
242 space = min_t(u32, space, *window_clamp); in tcp_select_initial_window()
247 (*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp); in tcp_select_initial_window()
2977 full_space = min_t(int, tp->window_clamp, allowed_space); in __tcp_select_window()
3699 if (!tp->window_clamp) in tcp_connect_init()
3700 tp->window_clamp = dst_metric(dst, RTAX_WINDOW); in tcp_connect_init()
3707 (tp->window_clamp > tcp_full_space(sk) || tp->window_clamp == 0)) in tcp_connect_init()
[all …]
Dtcp_input.c514 room = min_t(int, tp->window_clamp, tcp_space(sk)) - tp->rcv_ssthresh; in tcp_grow_window()
555 if (tp->window_clamp >= maxwin) { in tcp_init_buffer_space()
556 tp->window_clamp = maxwin; in tcp_init_buffer_space()
559 tp->window_clamp = max(maxwin - in tcp_init_buffer_space()
566 tp->window_clamp > 2 * tp->advmss && in tcp_init_buffer_space()
567 tp->window_clamp + tp->advmss > maxwin) in tcp_init_buffer_space()
568 tp->window_clamp = max(2 * tp->advmss, maxwin - tp->advmss); in tcp_init_buffer_space()
570 tp->rcv_ssthresh = min(tp->rcv_ssthresh, tp->window_clamp); in tcp_init_buffer_space()
595 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window()
759 tp->window_clamp = tcp_win_from_space(sk, rcvbuf); in tcp_rcv_space_adjust()
[all …]
Dtcp.c1583 if (2*rcv_window_now <= tp->window_clamp) { in tcp_cleanup_rbuf()
1735 tcp_sk(sk)->window_clamp = tcp_win_from_space(sk, val); in tcp_set_rcvlowat()
3037 tp->window_clamp = 0; in tcp_disconnect()
3377 tp->window_clamp = 0; in tcp_set_window_clamp()
3379 tp->window_clamp = val < SOCK_MIN_RCVBUF / 2 ? in tcp_set_window_clamp()
3381 tp->rcv_ssthresh = min(tp->rcv_wnd, tp->window_clamp); in tcp_set_window_clamp()
4006 val = tp->window_clamp; in do_tcp_getsockopt()
Dsyncookies.c429 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(&rt->dst, RTAX_WINDOW); in cookie_v4_check()
/net/ipv6/
Dsyncookies.c246 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(dst, RTAX_WINDOW); in cookie_v6_check()
/net/mptcp/
Dprotocol.c1914 u32 window_clamp; in mptcp_rcv_space_adjust() local
1916 window_clamp = tcp_win_from_space(sk, rcvbuf); in mptcp_rcv_space_adjust()
1931 tcp_sk(ssk)->window_clamp = window_clamp; in mptcp_rcv_space_adjust()