Home
last modified time | relevance | path

Searched refs:tcp_sk (Results 1 – 25 of 72) sorted by relevance

123

/Linux-v6.6/samples/bpf/
Dtcp_dumpstats_kern.c28 struct bpf_tcp_sock *tcp_sk; in _sockops() local
56 tcp_sk = bpf_tcp_sock(sk); in _sockops()
57 if (!tcp_sk) in _sockops()
63 tcp_sk->dsack_dups, tcp_sk->delivered); in _sockops()
65 tcp_sk->delivered_ce, tcp_sk->icsk_retransmits); in _sockops()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtcp_rtt.c26 struct bpf_tcp_sock *tcp_sk; in _sockops() local
47 tcp_sk = bpf_tcp_sock(sk); in _sockops()
48 if (!tcp_sk) in _sockops()
53 storage->dsack_dups = tcp_sk->dsack_dups; in _sockops()
54 storage->delivered = tcp_sk->delivered; in _sockops()
55 storage->delivered_ce = tcp_sk->delivered_ce; in _sockops()
56 storage->icsk_retransmits = tcp_sk->icsk_retransmits; in _sockops()
Dcgrp_ls_attach_cgroup.c27 struct tcp_sock *tcp_sk; in set_cookie() local
37 tcp_sk = bpf_skc_to_tcp_sock(sk); in set_cookie()
38 if (!tcp_sk) in set_cookie()
42 tcp_sk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, in set_cookie()
56 struct tcp_sock *tcp_sk; in update_cookie_sockops() local
66 tcp_sk = bpf_skc_to_tcp_sock(sk); in update_cookie_sockops()
67 if (!tcp_sk) in update_cookie_sockops()
71 tcp_sk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, 0); in update_cookie_sockops()
Dtcp_ca_write_sk_pacing.c14 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() function
44 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
55 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
61 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
Dtcp_ca_incompl_cong_ops.c10 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() function
18 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
24 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
Dbpf_dctcp.c63 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
111 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
120 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
150 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
169 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ece_ack_cwr()
199 *prior_rcv_nxt = tcp_sk(sk)->rcv_nxt; in dctcp_ece_ack_update()
228 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in BPF_PROG()
Dsock_destroy_prog.c79 struct tcp6_sock *tcp_sk; in iter_tcp6_server() local
88 tcp_sk = bpf_skc_to_tcp6_sock(sk_common); in iter_tcp6_server()
89 if (!tcp_sk) in iter_tcp6_server()
92 icsk = &tcp_sk->tcp.inet_conn; in iter_tcp6_server()
Dtcp_ca_update.c13 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() function
39 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
45 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
Dbpf_cubic.c158 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us()
163 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
184 tcp_sk(sk)->snd_ssthresh = initial_ssthresh; in BPF_PROG()
196 delta = now - tcp_sk(sk)->lsndtime; in BPF_PROG()
383 struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
402 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
449 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
498 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
/Linux-v6.6/net/ipv4/
Dtcp_timer.c32 start_ts = tcp_sk(sk)->retrans_stamp; in tcp_clamp_rto_to_user_timeout()
36 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout()
106 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources()
220 start_ts = tcp_sk(sk)->retrans_stamp; in retransmits_timed_out()
229 return (s32)(tcp_time_stamp(tcp_sk(sk)) - start_ts - timeout) >= 0; in retransmits_timed_out()
236 struct tcp_sock *tp = tcp_sk(sk); in tcp_write_timeout()
301 struct tcp_sock *tp = tcp_sk(sk); in tcp_delack_timer_handler()
372 struct tcp_sock *tp = tcp_sk(sk); in tcp_probe_timer()
425 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_synack_timer()
460 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rtx_probe0_timed_out()
[all …]
Dtcp_bbr.c246 unsigned int mss = tcp_sk(sk)->mss_cache; in bbr_rate_bytes_per_sec()
268 struct tcp_sock *tp = tcp_sk(sk); in bbr_init_pacing_rate_from_rtt()
287 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_pacing_rate()
305 struct tcp_sock *tp = tcp_sk(sk); in bbr_tso_segs_goal()
322 struct tcp_sock *tp = tcp_sk(sk); in bbr_save_cwnd()
333 struct tcp_sock *tp = tcp_sk(sk); in bbr_cwnd_event()
438 struct tcp_sock *tp = tcp_sk(sk); in bbr_packets_in_net_at_edt()
482 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd_to_recover_or_restore()
521 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd()
556 struct tcp_sock *tp = tcp_sk(sk); in bbr_is_next_cycle_phase()
[all …]
Dtcp_recovery.c7 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd()
60 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_detect_loss()
97 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_mark_lost()
151 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_timeout()
189 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_update_reo_wnd()
220 struct tcp_sock *tp = tcp_sk(sk); in tcp_newreno_mark_lost()
Dtcp_input.c145 bool unknown_opt = tcp_sk(sk)->rx_opt.saw_unknown && in bpf_skops_parse_hdr()
146 BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_parse_hdr()
148 bool parse_all_opt = BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_parse_hdr()
248 tcp_sk(sk)->scaling_ratio = val ? val : 1; in tcp_measure_rcv_mss()
251 tcp_sk(sk)->advmss); in tcp_measure_rcv_mss()
288 len -= tcp_sk(sk)->tcp_header_len; in tcp_measure_rcv_mss()
304 unsigned int quickacks = tcp_sk(sk)->rcv_wnd / (2 * icsk->icsk_ack.rcv_mss); in tcp_incr_quickack()
344 tcp_sk(sk)->ecn_flags &= ~TCP_ECN_DEMAND_CWR; in tcp_ecn_accept_cwr()
362 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce()
394 if (tcp_sk(sk)->ecn_flags & TCP_ECN_OK) in tcp_ecn_check_ce()
[all …]
Dtcp_westwood.c73 w->snd_una = tcp_sk(sk)->snd_una; in tcp_westwood_init()
127 w->snd_una = tcp_sk(sk)->snd_una; in westwood_update_window()
165 const struct tcp_sock *tp = tcp_sk(sk); in westwood_fast_bw()
182 const struct tcp_sock *tp = tcp_sk(sk); in westwood_acked_count()
219 const struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_bw_rttmin()
242 struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_event()
Dtcp_output.c68 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent()
97 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq()
123 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss()
144 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_restart()
182 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent()
258 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window()
318 const struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send_synack()
331 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send_syn()
375 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send()
488 if (likely(!BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_hdr_opt_len()
[all …]
Dtcp_dctcp.c80 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_init()
110 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ssthresh()
118 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_update_alpha()
166 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
208 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_get_info()
235 struct tcp_sock *tp = tcp_sk(sk); in dctcp_cwnd_undo()
Dtcp_cubic.c115 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us()
120 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
139 tcp_sk(sk)->snd_ssthresh = initial_ssthresh; in cubictcp_init()
149 delta = now - tcp_sk(sk)->lsndtime; in cubictcp_cwnd_event()
326 struct tcp_sock *tp = tcp_sk(sk); in cubictcp_cong_avoid()
343 const struct tcp_sock *tp = tcp_sk(sk); in cubictcp_recalc_ssthresh()
388 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
450 const struct tcp_sock *tp = tcp_sk(sk); in cubictcp_acked()
Dtcp_highspeed.c102 struct tcp_sock *tp = tcp_sk(sk); in hstcp_init()
114 struct tcp_sock *tp = tcp_sk(sk); in hstcp_cong_avoid()
153 const struct tcp_sock *tp = tcp_sk(sk); in hstcp_ssthresh()
Dtcp_rate.c42 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_sent()
83 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered()
120 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_gen()
196 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_check_app_limited()
Dtcp_cdg.c143 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_hystart_update()
244 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_backoff()
265 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_cong_avoid()
302 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_acked()
331 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_ssthresh()
348 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_cwnd_event()
376 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_init()
Dtcp_fastopen.c171 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_add_skb()
260 tp = tcp_sk(child); in tcp_fastopen_create_child()
339 tcp_sk(sk)->fastopen_no_cookie || in tcp_fastopen_no_cookie()
435 tcp_sk(sk)->fastopen_client_fail = TFO_COOKIE_UNAVAILABLE; in tcp_fastopen_cookie_check()
449 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_defer_connect()
544 tcp_sk(sk)->syn_fastopen_ch = 1; in tcp_fastopen_active_should_disable()
556 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_disable_ofo_check()
583 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_detect_blackhole()
Dtcp_dctcp.h6 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ece_ack_cwr()
35 *prior_rcv_nxt = tcp_sk(sk)->rcv_nxt; in dctcp_ece_ack_update()
Dtcp_scalable.c20 struct tcp_sock *tp = tcp_sk(sk); in tcp_scalable_cong_avoid()
36 const struct tcp_sock *tp = tcp_sk(sk); in tcp_scalable_ssthresh()
Dtcp_hybla.c39 tcp_sk(sk)->srtt_us / (rtt0 * USEC_PER_MSEC), in hybla_recalc_param()
48 struct tcp_sock *tp = tcp_sk(sk); in hybla_init()
92 struct tcp_sock *tp = tcp_sk(sk); in hybla_cong_avoid()
/Linux-v6.6/include/net/
Dtcp.h527 last_overflow = READ_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp); in tcp_synq_overflow()
550 last_overflow = READ_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp); in tcp_synq_no_recent_overflow()
636 if (hrtimer_try_to_cancel(&tcp_sk(sk)->pacing_timer) == 1) in tcp_clear_xmit_timers()
639 if (hrtimer_try_to_cancel(&tcp_sk(sk)->compressed_ack_timer) == 1) in tcp_clear_xmit_timers()
717 struct tcp_sock *tp = tcp_sk(sk); in tcp_fast_path_check()
1257 const struct tcp_sock *tp = tcp_sk(sk); in tcp_current_ssthresh()
1302 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited()
1330 s64 delay = tcp_sk(sk)->tcp_wstamp_ns - tcp_sk(sk)->tcp_clock_cache; in tcp_pacing_delay()
1368 if (!tcp_sk(sk)->packets_out && !inet_csk(sk)->icsk_pending) in tcp_check_probe_timer()
1418 struct tcp_sock *tp = tcp_sk(sk); in tcp_slow_start_after_idle_check()
[all …]

123