Home
last modified time | relevance | path

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

12

/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.c64 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_reset()
112 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
121 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
151 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
170 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
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);
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.c36 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
47 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG()
53 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
H A Dbpf_cubic.c160 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us()
165 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset()
193 tcp_sk(sk)->snd_ssthresh = initial_ssthresh; in BPF_PROG()
208 delta = now - tcp_sk(sk)->lsndtime; in BPF_PROG()
392 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
412 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
460 struct tcp_sock *tp = tcp_sk(sk); in hystart_update()
509 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.c40 const struct tcp_sock *tp = tcp_sk(sk); in before()
70 struct tcp_sock *tp = tcp_sk(sk); in tcp_update_pacing_rate()
98 if (tcp_sk(sk)->reordering > TCP_REORDERING) in tcp_cwnd_reduction()
120 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()
H A Dbpf_tracing_net.h178 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() function
190 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited()
/linux/net/ipv4/
H A Dtcp_input.c149 bool unknown_opt = tcp_sk(sk)->rx_opt.saw_unknown && in bpf_skops_parse_hdr()
150 BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_parse_hdr()
152 bool parse_all_opt = BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_parse_hdr()
246 u8 old_ratio = tcp_sk(sk)->scaling_ratio; in tcp_measure_rcv_mss()
249 tcp_sk(sk)->scaling_ratio = val ? val : 1; in tcp_measure_rcv_mss()
251 if (old_ratio != tcp_sk(sk)->scaling_ratio) { in tcp_measure_rcv_mss()
252 struct tcp_sock *tp = tcp_sk(sk); in tcp_measure_rcv_mss()
262 tcp_sk(sk)->advmss); in tcp_measure_rcv_mss()
298 len -= tcp_sk(sk)->tcp_header_len; in tcp_measure_rcv_mss()
314 unsigned int quickacks = tcp_sk(sk)->rcv_wnd / (2 * icsk->icsk_ack.rcv_mss); in tcp_incr_quickack()
[all …]
H A Dtcp_timer.c31 const struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_rto_to_user_timeout()
109 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources()
219 struct tcp_sock *tp = tcp_sk(sk); in retransmits_timed_out()
246 struct tcp_sock *tp = tcp_sk(sk); in tcp_write_timeout()
312 struct tcp_sock *tp = tcp_sk(sk); in tcp_delack_timer_handler()
374 !READ_ONCE(tcp_sk(sk)->compressed_ack)) in tcp_delack_timer()
395 struct tcp_sock *tp = tcp_sk(sk); in tcp_probe_timer()
445 struct tcp_sock *tp = tcp_sk(sk); in tcp_update_rto_stats()
462 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_synack_timer()
502 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rtx_probe0_timed_out()
[all …]
H A Dtcp_fastopen.c59 RCU_INIT_POINTER(tcp_sk(sk)->fastopen_rsk, NULL); in reqsk_fastopen_remove()
259 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_add_skb()
348 tp = tcp_sk(child); in tcp_fastopen_create_child()
430 tcp_sk(sk)->fastopen_no_cookie || in tcp_fastopen_no_cookie()
494 tcp_sk(child)->syn_fastopen_child = 1; in tcp_try_fastopen()
527 tcp_sk(sk)->fastopen_client_fail = TFO_COOKIE_UNAVAILABLE; in tcp_fastopen_cookie_check()
541 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_defer_connect()
635 tcp_sk(sk)->syn_fastopen_ch = 1; in tcp_fastopen_active_should_disable()
647 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_disable_ofo_check()
677 struct tcp_sock *tp = tcp_sk(sk); in tcp_fastopen_active_detect_blackhole()
H A Dtcp_output.c86 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent()
115 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq()
141 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss()
162 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_restart()
200 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent()
277 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window()
345 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_send()
479 if (likely(!BPF_SOCK_OPS_TEST_FLAG(tcp_sk(sk), in bpf_skops_hdr_opt_len()
963 struct tcp_sock *tp = tcp_sk(sk); in tcp_syn_options()
1133 smc_set_option_cond(tcp_sk(s in tcp_synack_options()
[all...]
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_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()
H A 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()
H A 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()
H A Dtcp_ao.c199 ao = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_ignore_icmp()
309 ao = rcu_dereference_check(tcp_sk(sk)->ao_info, in __tcp_ao_do_lookup()
406 ao = rcu_dereference_protected(tcp_sk(sk)->ao_info, 1); in tcp_ao_destroy_sock()
407 rcu_assign_pointer(tcp_sk(sk)->ao_info, NULL); in tcp_ao_destroy_sock()
826 ao_info = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_prepare_reset()
849 ao_info = rcu_dereference(tcp_sk(sk)->ao_info); in tcp_ao_prepare_reset()
850 snd_basis = tcp_sk(sk)->snd_una; in tcp_ao_prepare_reset()
873 struct tcp_sock *tp = tcp_sk(sk); in tcp_ao_transmit_skb()
878 ao = rcu_dereference_protected(tcp_sk(sk)->ao_info, in tcp_ao_transmit_skb()
1005 info = rcu_dereference(tcp_sk(s in tcp_inbound_ao_hash()
[all...]
H A Dtcp_minisocks.c294 const struct tcp_sock *tp = tcp_sk(sk); in tcp_time_wait_init()
329 struct tcp_sock *tp = tcp_sk(sk); in tcp_time_wait()
436 const struct tcp_sock *tp = tcp_sk(sk_listener); in tcp_openreq_init_rwin()
475 struct tcp_sock *tp = tcp_sk(sk); in tcp_ecn_openreq_child()
562 newtp = tcp_sk(newsk); in tcp_create_openreq_child()
563 oldtp = tcp_sk(sk); in tcp_create_openreq_child()
941 tcp_sk(child)->rx_opt.ts_recent = tmp_opt.rcv_tsval; in tcp_check_req()
1008 tcp_segs_in(tcp_sk(child), skb); in tcp_child_process()
H A Dtcp_htcp.c105 const struct tcp_sock *tp = tcp_sk(sk); in measure_achieved_throughput()
224 const struct tcp_sock *tp = tcp_sk(sk); in htcp_recalc_ssthresh()
233 struct tcp_sock *tp = tcp_sk(sk); in htcp_cong_avoid()
/linux/net/tls/
H A Dtls_device.c209 clean_acked_data_disable(tcp_sk(sk)); in tls_device_sk_destruct()
286 struct tcp_sock *tp = tcp_sk(sk); in tls_push_record()
880 tls_device_resync_rx(tls_ctx, sk, tcp_sk(sk)->copied_seq, in tls_device_core_ctrl_rx_resync()
993 trace_tls_device_decrypted(sk, tcp_sk(sk)->copied_seq - rxm->full_len, in tls_device_decrypted()
1132 start_marker_record->end_seq = tcp_sk(sk)->write_seq; in tls_set_device_offload()
1137 clean_acked_data_enable(tcp_sk(sk), &tls_tcp_clean_acked); in tls_set_device_offload()
1163 tcp_sk(sk)->write_seq); in tls_set_device_offload()
1165 tcp_sk(sk)->write_seq, rec_seq, rc); in tls_set_device_offload()
1183 clean_acked_data_disable(tcp_sk(sk)); in tls_set_device_offload()
1244 tcp_sk(s in tls_set_device_offload_rx()
[all...]
/linux/net/ipv6/
H A Dtcp_ipv6.c94 #define tcp_inet6_sk(sk) (&container_of_const(tcp_sk(sk), \
142 struct tcp_sock *tp = tcp_sk(sk); in tcp_v6_connect()
384 mtu = READ_ONCE(tcp_sk(sk)->mtu_info); in tcp_v6_mtu_reduced()
389 if (tcp_mtu_to_mss(sk, mtu) >= tcp_sk(sk)->mss_cache) in tcp_v6_mtu_reduced()
460 tp = tcp_sk(sk); in tcp_v6_err()
854 struct sock *ctl_sk = net->ipv6.tcp_sk; in tcp_v6_send_response()
1276 tcp_rsk(req)->snt_isn + 1 : tcp_sk(sk)->snd_nxt,
1365 tcp_sk(newsk)->af_specific = &tcp_sock_ipv6_mapped_specific;
1436 newtp = tcp_sk(newsk);
1490 newtp->advmss = tcp_mss_clamp(tcp_sk(s
[all...]
/linux/net/mptcp/
H A Dprotocol.c114 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create()
664 const struct tcp_sock *tp = tcp_sk(ssk); in mptcp_subflow_could_cleanup()
811 tp = tcp_sk(ssk); in __mptcp_move_skbs_from_subflow()
988 const struct tcp_sock *tp = tcp_sk(subflow->tcp_sock); in mptcp_rcv_rtt_update()
1301 if (unlikely(tcp_sk(ssk)->snd_wnd < mptcp_snd_wnd)) { in mptcp_check_allowed_size()
1302 tcp_sk(ssk)->snd_wnd = min_t(u64, U32_MAX, mptcp_snd_wnd); in mptcp_check_allowed_size()
1437 tcp_mark_push(tcp_sk(ssk), skb); in mptcp_sendmsg_frag()
1444 tcp_mark_push(tcp_sk(ssk), skb); in mptcp_sendmsg_frag()
1498 WRITE_ONCE(tcp_sk(ssk)->write_seq, tcp_sk(ssk)->write_seq + copy); in mptcp_sendmsg_frag()
1569 u32 rcv_tstamp = READ_ONCE(tcp_sk(mptcp_subflow_tcp_sock(subflow))->rcv_tstamp); in mptcp_subflow_active()
[all …]

12