Home
last modified time | relevance | path

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

123

/linux/samples/bpf/
H A 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/tools/testing/selftests/bpf/progs/
H A 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()
H A Dtcp_rtt.c29 struct bpf_tcp_sock *tcp_sk; in _sockops() local
50 tcp_sk = bpf_tcp_sock(sk); in _sockops()
51 if (!tcp_sk) in _sockops()
56 storage->dsack_dups = tcp_sk->dsack_dups; in _sockops()
57 storage->delivered = tcp_sk->delivered; in _sockops()
58 storage->delivered_ce = tcp_sk->delivered_ce; in _sockops()
59 storage->icsk_retransmits = tcp_sk->icsk_retransmits; in _sockops()
H A Dbpf_dctcp.c70 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
118 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
127 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
157 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
176 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ece_ack_cwr()
205 *prior_rcv_nxt = tcp_sk(sk)->rcv_nxt; in dctcp_ece_ack_update()
234 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in BPF_PROG()
H A 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()
H A Dtcp_ca_write_sk_pacing.c38 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
49 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
55 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
H A Dbpf_cubic.c166 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us()
171 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
191 tcp_sk(sk)->snd_ssthresh = initial_ssthresh; in BPF_PROG()
202 delta = now - tcp_sk(sk)->lsndtime; in BPF_PROG()
388 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
408 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
456 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
505 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
H A Dtcp_ca_incompl_cong_ops.c12 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
18 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
H A Dbpf_cc_cubic.c49 const struct tcp_sock *tp = tcp_sk(sk); in tcp_update_pacing_rate()
79 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_reduction()
107 if (tcp_sk(sk)->reordering > TCP_REORDERING) in tcp_may_raise_cwnd()
129 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
H A Dtcp_ca_update.c33 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
39 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
/linux/net/ipv4/
H A Dtcp_timer.c30 const struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_rto_to_user_timeout()
107 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources()
217 struct tcp_sock *tp = tcp_sk(sk); in retransmits_timed_out()
244 struct tcp_sock *tp = tcp_sk(sk); in tcp_write_timeout()
309 struct tcp_sock *tp = tcp_sk(sk); in tcp_delack_timer_handler()
380 struct tcp_sock *tp = tcp_sk(sk); in tcp_probe_timer()
429 struct tcp_sock *tp = tcp_sk(sk); in tcp_update_rto_stats()
446 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_synack_timer()
521 struct tcp_sock *tp = tcp_sk(sk); in tcp_retransmit_timer()
692 tcp_mstamp_refresh(tcp_sk(sk)); in tcp_write_timer_handler()
[all …]
H A Dtcp_bbr.c268 struct tcp_sock *tp = tcp_sk(sk); in bbr_init_pacing_rate_from_rtt()
288 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_pacing_rate()
306 struct tcp_sock *tp = tcp_sk(sk); in bbr_tso_segs_goal()
323 struct tcp_sock *tp = tcp_sk(sk); in bbr_save_cwnd()
334 struct tcp_sock *tp = tcp_sk(sk); in bbr_cwnd_event()
439 struct tcp_sock *tp = tcp_sk(sk); in bbr_packets_in_net_at_edt()
483 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd_to_recover_or_restore()
522 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd()
899 tcp_sk(sk)->snd_ssthresh = in bbr_check_drain()
1097 return tcp_snd_cwnd(tcp_sk(sk)); in bbr_undo_cwnd()
[all …]
H A 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()
H A Dtcp_input.c147 BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_parse_hdr()
246 tcp_sk(sk)->advmss); in tcp_measure_rcv_mss()
356 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce()
514 struct tcp_sock *tp = tcp_sk(sk); in tcp_grow_window()
554 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_buffer_space()
591 struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_window()
711 struct tcp_sock *tp = tcp_sk(sk); in tcp_rcv_rtt_measure_ts()
732 struct tcp_sock *tp = tcp_sk(sk); in tcp_rcv_space_adjust()
3562 if (tcp_sk(sk)->reordering > in tcp_may_raise_cwnd()
4421 if (tcp_sk(sk)->tcp_usec_ts) in tcp_tsval_replay()
[all …]
H A 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()
H A Dtcp_output.c70 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent()
125 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss()
146 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_restart()
184 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent()
262 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window()
335 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send_syn()
379 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send()
1301 tp = tcp_sk(sk); in __tcp_transmit_skb()
1485 tcp_sk(sk)->rcv_nxt); in tcp_transmit_skb()
2620 tcp_sk(sk)->tcp_tx_delay; in tcp_small_queue_check()
[all …]
H A Dtcp_dctcp.c91 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_init()
121 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ssthresh()
129 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_update_alpha()
177 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
219 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_get_info()
246 struct tcp_sock *tp = tcp_sk(sk); in dctcp_cwnd_undo()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dtcp_fastopen.c172 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_add_skb()
261 tp = tcp_sk(child); in tcp_fastopen_create_child()
340 tcp_sk(sk)->fastopen_no_cookie || in tcp_fastopen_no_cookie()
436 tcp_sk(sk)->fastopen_client_fail = TFO_COOKIE_UNAVAILABLE; in tcp_fastopen_cookie_check()
450 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_defer_connect()
545 tcp_sk(sk)->syn_fastopen_ch = 1; in tcp_fastopen_active_should_disable()
557 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_disable_ofo_check()
584 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_detect_blackhole()
H A 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()
H A 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()
/linux/include/net/
H A Dtcp.h771 struct tcp_sock *tp = tcp_sk(sk); in tcp_fast_path_check()
1344 const struct tcp_sock *tp = tcp_sk(sk); in tcp_current_ssthresh()
1389 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited()
1417 s64 delay = tcp_sk(sk)->tcp_wstamp_ns - tcp_sk(sk)->tcp_clock_cache; in tcp_pacing_delay()
1505 struct tcp_sock *tp = tcp_sk(sk); in tcp_slow_start_after_idle_check()
1574 struct tcp_sock *tp = tcp_sk(sk); in __tcp_adjust_rcv_ssthresh()
1611 const struct tcp_sock *tp = tcp_sk(sk); in tcp_epollin_ready()
2104 struct tcp_sock *tp = tcp_sk(sk); in tcp_push_pending_frames()
2132 return tcp_sk(sk)->highest_sack; in tcp_highest_sack()
2146 tcp_sk(sk)->highest_sack = new; in tcp_highest_sack_replace()
[all …]

123