Home
last modified time | relevance | path

Searched refs:tcp_sock (Results 1 – 25 of 61) sorted by relevance

123

/Linux-v5.10/net/ipv4/
Dbpf_tcp_ca.c120 case offsetof(struct tcp_sock, snd_cwnd): in bpf_tcp_ca_btf_struct_access()
121 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
123 case offsetof(struct tcp_sock, snd_cwnd_cnt): in bpf_tcp_ca_btf_struct_access()
124 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access()
126 case offsetof(struct tcp_sock, snd_ssthresh): in bpf_tcp_ca_btf_struct_access()
127 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access()
129 case offsetof(struct tcp_sock, ecn_flags): in bpf_tcp_ca_btf_struct_access()
130 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
147 BPF_CALL_2(bpf_tcp_send_ack, struct tcp_sock *, tp, u32, rcv_nxt) in BPF_CALL_2() argument
Dtcp_recovery.c12 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd()
36 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout()
64 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_detect_loss()
101 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_mark_lost()
121 void tcp_rack_advance(struct tcp_sock *tp, u8 sacked, u32 end_seq, in tcp_rack_advance()
154 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_timeout()
190 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.c312 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr()
332 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr()
339 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce()
375 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack()
381 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn()
387 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo()
401 const struct tcp_sock *tp = tcp_sk(sk); in tcp_sndbuf_expand()
459 struct tcp_sock *tp = tcp_sk(sk); in __tcp_grow_window()
476 struct tcp_sock *tp = tcp_sk(sk); in tcp_grow_window()
507 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_buffer_space()
[all …]
Dtcp_dctcp.c67 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset()
77 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_init()
105 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ssthresh()
113 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_update_alpha()
147 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
185 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_get_info()
Dtcp_output.c53 void tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh()
68 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent()
96 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq()
122 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss()
143 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_restart()
160 static void tcp_event_data_sent(struct tcp_sock *tp, in tcp_event_data_sent()
185 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent()
261 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window()
311 const struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send_synack()
324 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send_syn()
[all …]
Dtcp_bbr.c266 struct tcp_sock *tp = tcp_sk(sk); in bbr_init_pacing_rate_from_rtt()
285 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_pacing_rate()
303 struct tcp_sock *tp = tcp_sk(sk); in bbr_tso_segs_goal()
320 struct tcp_sock *tp = tcp_sk(sk); in bbr_save_cwnd()
331 struct tcp_sock *tp = tcp_sk(sk); in bbr_cwnd_event()
436 struct tcp_sock *tp = tcp_sk(sk); in bbr_packets_in_net_at_edt()
480 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd_to_recover_or_restore()
519 struct tcp_sock *tp = tcp_sk(sk); in bbr_set_cwnd()
554 struct tcp_sock *tp = tcp_sk(sk); in bbr_is_next_cycle_phase()
590 struct tcp_sock *tp = tcp_sk(sk); in bbr_advance_cycle_phase()
[all …]
Dtcp_rate.c42 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_sent()
81 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered()
113 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_gen()
185 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_check_app_limited()
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_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_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_westwood.c165 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_timer.c86 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources()
216 struct tcp_sock *tp = tcp_sk(sk); in tcp_write_timeout()
347 struct tcp_sock *tp = tcp_sk(sk); in tcp_probe_timer()
399 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_synack_timer()
438 struct tcp_sock *tp = tcp_sk(sk); in tcp_retransmit_timer()
665 struct tcp_sock *tp = tcp_sk(sk); in tcp_keepalive_timer()
750 struct tcp_sock *tp = container_of(timer, struct tcp_sock, compressed_ack_timer); in tcp_compressed_ack_kick()
Dtcp_cong.c392 u32 tcp_slow_start(struct tcp_sock *tp, u32 acked) in tcp_slow_start()
406 void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai()
434 struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_cong_avoid()
453 const struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_ssthresh()
461 const struct tcp_sock *tp = tcp_sk(sk); in tcp_reno_undo_cwnd()
Dtcp_illinois.c59 struct tcp_sock *tp = tcp_sk(sk); in rtt_reset()
224 struct tcp_sock *tp = tcp_sk(sk); in update_params()
262 struct tcp_sock *tp = tcp_sk(sk); in tcp_illinois_cong_avoid()
297 struct tcp_sock *tp = tcp_sk(sk); in tcp_illinois_ssthresh()
Dtcp_yeah.c43 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init()
60 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid()
189 const struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_ssthresh()
Dtcp_vegas.c73 const struct tcp_sock *tp = tcp_sk(sk); in vegas_enable()
160 static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) in tcp_vegas_ssthresh()
167 struct tcp_sock *tp = tcp_sk(sk); in tcp_vegas_cong_avoid()
Dtcp_cubic.c127 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
333 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid()
352 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh()
397 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
456 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_acked()
Dtcp_lp.c136 struct tcp_sock *tp = tcp_sk(sk); in tcp_lp_remote_hz_estimator()
189 struct tcp_sock *tp = tcp_sk(sk); in tcp_lp_owd_calculator()
266 struct tcp_sock *tp = tcp_sk(sk); in tcp_lp_pkts_acked()
Dtcp.c391 static u64 tcp_compute_delivery_rate(const struct tcp_sock *tp) in tcp_compute_delivery_rate()
412 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_sock()
478 static inline bool tcp_stream_is_readable(const struct tcp_sock *tp, in tcp_stream_is_readable()
507 const struct tcp_sock *tp = tcp_sk(sk); in tcp_poll()
607 struct tcp_sock *tp = tcp_sk(sk); in tcp_ioctl()
651 static inline void tcp_mark_push(struct tcp_sock *tp, struct sk_buff *skb) in tcp_mark_push()
657 static inline bool forced_push(const struct tcp_sock *tp) in forced_push()
664 struct tcp_sock *tp = tcp_sk(sk); in skb_entail()
681 static inline void tcp_mark_urg(struct tcp_sock *tp, int flags) in tcp_mark_urg()
709 struct tcp_sock *tp = tcp_sk(sk); in tcp_push()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/
Dbpf_tcp_helpers.h53 struct tcp_sock { struct
90 static __always_inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() argument
92 return (struct tcp_sock *)sk; in tcp_sk()
188 static __always_inline __u32 tcp_slow_start(struct tcp_sock *tp, __u32 acked) in tcp_slow_start()
198 static __always_inline bool tcp_in_slow_start(const struct tcp_sock *tp) in tcp_in_slow_start()
205 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited()
214 static __always_inline void tcp_cong_avoid_ai(struct tcp_sock *tp, __u32 w, __u32 acked) in tcp_cong_avoid_ai()
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_dctcp.c44 static __always_inline void dctcp_reset(const struct tcp_sock *tp, in dctcp_reset()
56 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
77 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
86 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
116 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss()
135 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ece_ack_cwr()
200 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
Dbpf_cubic.c163 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
389 struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
408 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
455 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
502 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
530 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS()
Dbpf_iter_tcp4.c70 static bool tcp_in_initial_slowstart(const struct tcp_sock *tcp) in tcp_in_initial_slowstart()
75 static int dump_tcp_sock(struct seq_file *seq, struct tcp_sock *tp, in dump_tcp_sock()
203 struct tcp_sock *tp; in dump_tcp4()
/Linux-v5.10/include/net/
Dtcp.h390 void tcp_clear_retrans(struct tcp_sock *tp);
610 void tcp_skb_mark_lost_uncond_verify(struct tcp_sock *tp, struct sk_buff *skb);
630 static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize) in tcp_bound_to_half_wnd()
671 static inline u32 __tcp_set_rto(const struct tcp_sock *tp) in __tcp_set_rto()
676 static inline void __tcp_fast_path_on(struct tcp_sock *tp, u32 snd_wnd) in __tcp_fast_path_on()
683 static inline void tcp_fast_path_on(struct tcp_sock *tp) in tcp_fast_path_on()
690 struct tcp_sock *tp = tcp_sk(sk); in tcp_fast_path_check()
721 static inline u32 tcp_min_rtt(const struct tcp_sock *tp) in tcp_min_rtt()
730 static inline u32 tcp_receive_window(const struct tcp_sock *tp) in tcp_receive_window()
771 static inline u32 tcp_time_stamp(const struct tcp_sock *tp) in tcp_time_stamp()
[all …]
/Linux-v5.10/include/linux/
Dtcp.h145 struct tcp_sock { struct
437 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() argument
439 return (struct tcp_sock *)sk; in tcp_sk()
479 static inline void tcp_move_syn(struct tcp_sock *tp, in tcp_move_syn()
486 static inline void tcp_saved_syn_free(struct tcp_sock *tp) in tcp_saved_syn_free()
501 static inline u16 tcp_mss_clamp(const struct tcp_sock *tp, u16 mss) in tcp_mss_clamp()

123