Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
A Dtest_tcpbpf_kern.c39 return tp->window_clamp; in get_tp_window_clamp()
48 int window_clamp = 9216; in bpf_testcb() local
103 &window_clamp, sizeof(window_clamp)); in bpf_testcb()
132 &window_clamp, sizeof(window_clamp)); in bpf_testcb()
/linux/net/ipv4/
A Dtcp_minisocks.c360 u32 window_clamp; in tcp_openreq_init_rwin() local
366 window_clamp = READ_ONCE(tp->window_clamp); in tcp_openreq_init_rwin()
368 req->rsk_window_clamp = window_clamp ? : dst_metric(dst, RTAX_WINDOW); in tcp_openreq_init_rwin()
504 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
513 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
A Dtcp_output.c209 __u32 *rcv_wnd, __u32 *window_clamp, in tcp_select_initial_window() argument
216 if (*window_clamp == 0) in tcp_select_initial_window()
217 (*window_clamp) = (U16_MAX << TCP_MAX_WSCALE); in tcp_select_initial_window()
218 space = min(*window_clamp, space); in tcp_select_initial_window()
245 space = min_t(u32, space, *window_clamp); in tcp_select_initial_window()
250 (*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp); in tcp_select_initial_window()
3652 if (!tp->window_clamp) in tcp_connect_init()
3653 tp->window_clamp = dst_metric(dst, RTAX_WINDOW); in tcp_connect_init()
3660 (tp->window_clamp > tcp_full_space(sk) || tp->window_clamp == 0)) in tcp_connect_init()
3661 tp->window_clamp = tcp_full_space(sk); in tcp_connect_init()
[all …]
A Dtcp_input.c501 room = min_t(int, tp->window_clamp, tcp_space(sk)) - tp->rcv_ssthresh; in tcp_grow_window()
550 if (tp->window_clamp >= maxwin) { in tcp_init_buffer_space()
551 tp->window_clamp = maxwin; in tcp_init_buffer_space()
554 tp->window_clamp = max(maxwin - in tcp_init_buffer_space()
561 tp->window_clamp > 2 * tp->advmss && in tcp_init_buffer_space()
562 tp->window_clamp + tp->advmss > maxwin) in tcp_init_buffer_space()
563 tp->window_clamp = max(2 * tp->advmss, maxwin - tp->advmss); in tcp_init_buffer_space()
565 tp->rcv_ssthresh = min(tp->rcv_ssthresh, tp->window_clamp); in tcp_init_buffer_space()
589 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window()
753 tp->window_clamp = tcp_win_from_space(sk, rcvbuf); in tcp_rcv_space_adjust()
[all …]
A Dtcp.c1567 if (2*rcv_window_now <= tp->window_clamp) { in tcp_cleanup_rbuf()
1717 tcp_sk(sk)->window_clamp = tcp_win_from_space(sk, val); in tcp_set_rcvlowat()
2997 tp->window_clamp = 0; in tcp_disconnect()
3334 tp->window_clamp = 0; in tcp_set_window_clamp()
3336 tp->window_clamp = val < SOCK_MIN_RCVBUF / 2 ? in tcp_set_window_clamp()
3338 tp->rcv_ssthresh = min(tp->rcv_wnd, tp->window_clamp); in tcp_set_window_clamp()
3959 val = tp->window_clamp; in do_tcp_getsockopt()
A Dsyncookies.c427 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(&rt->dst, RTAX_WINDOW); in cookie_v4_check()
/linux/tools/testing/selftests/bpf/
A Dbpf_tcp_helpers.h64 __u32 window_clamp; member
/linux/net/ipv6/
A Dsyncookies.c243 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(dst, RTAX_WINDOW); in cookie_v6_check()
/linux/include/linux/
A Dtcp.h209 u32 window_clamp; /* Maximal window to advertise */ member
/linux/net/mptcp/
A Dprotocol.c1875 u32 window_clamp; in mptcp_rcv_space_adjust() local
1877 window_clamp = tcp_win_from_space(sk, rcvbuf); in mptcp_rcv_space_adjust()
1892 tcp_sk(ssk)->window_clamp = window_clamp; in mptcp_rcv_space_adjust()
/linux/include/net/
A Dtcp.h1401 __u32 *window_clamp, int wscale_ok,
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A Dchtls_cm.c1241 tp->window_clamp); in chtls_recv_sock()

Completed in 54 milliseconds