Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
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-6.1.9/net/ipv4/
Dtcp_minisocks.c381 u32 window_clamp; in tcp_openreq_init_rwin() local
387 window_clamp = READ_ONCE(tp->window_clamp); in tcp_openreq_init_rwin()
389 req->rsk_window_clamp = window_clamp ? : dst_metric(dst, RTAX_WINDOW); in tcp_openreq_init_rwin()
525 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
534 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
Dtcp_output.c207 __u32 *rcv_wnd, __u32 *window_clamp, in tcp_select_initial_window() argument
214 if (*window_clamp == 0) in tcp_select_initial_window()
215 (*window_clamp) = (U16_MAX << TCP_MAX_WSCALE); in tcp_select_initial_window()
216 space = min(*window_clamp, space); in tcp_select_initial_window()
243 space = min_t(u32, space, *window_clamp); in tcp_select_initial_window()
248 (*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp); in tcp_select_initial_window()
2967 full_space = min_t(int, tp->window_clamp, allowed_space); in __tcp_select_window()
3679 if (!tp->window_clamp) in tcp_connect_init()
3680 tp->window_clamp = dst_metric(dst, RTAX_WINDOW); in tcp_connect_init()
3687 (tp->window_clamp > tcp_full_space(sk) || tp->window_clamp == 0)) in tcp_connect_init()
[all …]
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()
590 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window()
754 tp->window_clamp = tcp_win_from_space(sk, rcvbuf); in tcp_rcv_space_adjust()
[all …]
Dsyncookies.c433 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(&rt->dst, RTAX_WINDOW); in cookie_v4_check()
Dtcp.c1605 if (2*rcv_window_now <= tp->window_clamp) { in __tcp_cleanup_rbuf()
1865 tcp_sk(sk)->window_clamp = tcp_win_from_space(sk, val); in tcp_set_rcvlowat()
3142 tp->window_clamp = 0; in tcp_disconnect()
3479 tp->window_clamp = 0; in tcp_set_window_clamp()
3481 tp->window_clamp = val < SOCK_MIN_RCVBUF / 2 ? in tcp_set_window_clamp()
3483 tp->rcv_ssthresh = min(tp->rcv_wnd, tp->window_clamp); in tcp_set_window_clamp()
4109 val = tp->window_clamp; in do_tcp_getsockopt()
/linux-6.1.9/tools/testing/selftests/bpf/
Dbpf_tcp_helpers.h68 __u32 window_clamp; member
/linux-6.1.9/net/ipv6/
Dsyncookies.c245 req->rsk_window_clamp = tp->window_clamp ? :dst_metric(dst, RTAX_WINDOW); in cookie_v6_check()
/linux-6.1.9/include/linux/
Dtcp.h239 u32 window_clamp; /* Maximal window to advertise */ member
/linux-6.1.9/net/mptcp/
Dprotocol.c1964 u32 window_clamp; in mptcp_rcv_space_adjust() local
1966 window_clamp = tcp_win_from_space(sk, rcvbuf); in mptcp_rcv_space_adjust()
1981 tcp_sk(ssk)->window_clamp = window_clamp; in mptcp_rcv_space_adjust()
/linux-6.1.9/include/net/
Dtcp.h1433 __u32 *window_clamp, int wscale_ok,
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c1240 tp->window_clamp); in chtls_recv_sock()