| /linux/samples/bpf/ |
| H A D | tcp_dumpstats_kern.c | 28 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 D | tcp_rtt.c | 29 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 D | cgrp_ls_attach_cgroup.c | 27 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 D | bpf_dctcp.c | 64 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 D | sock_destroy_prog.c | 79 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 D | tcp_ca_write_sk_pacing.c | 36 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 D | tcp_ca_incompl_cong_ops.c | 12 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG() 18 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
|
| H A D | bpf_cubic.c | 160 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 D | bpf_cc_cubic.c | 40 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 D | tcp_ca_update.c | 33 return tcp_sk(sk)->snd_ssthresh; in BPF_PROG() 39 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
|
| H A D | bpf_tracing_net.h | 173 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_is_cwnd_limited() 185 const struct tcp_sock *tp = tcp_sk(sk); 154 static inline struct tcp_sock *tcp_sk(const struct sock *sk) tcp_sk() function
|
| /linux/net/ipv4/ |
| H A D | tcp_fastopen.c | 59 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 D | tcp_highspeed.c | 102 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 D | tcp_scalable.c | 20 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 D | tcp_hybla.c | 39 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 D | tcp_illinois.c | 59 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 D | tcp_htcp.c | 105 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()
|
| H A D | tcp_diag.c | 30 const struct tcp_sock *tp = tcp_sk(sk); in tcp_diag_get_info() 127 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux() 158 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux_size()
|
| H A D | tcp_bpf.c | 26 tcp = tcp_sk(sk); in tcp_eat_skb() 244 tcp = tcp_sk(sk); in tcp_bpf_recvmsg_parser() 681 tp = tcp_sk(sk); in tcp_bpf_strp_read_sock()
|
| /linux/net/tls/ |
| H A D | tls_device.c | 209 clean_acked_data_disable(tcp_sk(sk)); in tls_device_sk_destruct() 286 struct tcp_sock *tp = tcp_sk(sk); in tls_push_record() 877 tls_device_resync_rx(tls_ctx, sk, tcp_sk(sk)->copied_seq, in tls_device_core_ctrl_rx_resync() 990 trace_tls_device_decrypted(sk, tcp_sk(sk)->copied_seq - rxm->full_len, in tls_device_decrypted() 1129 start_marker_record->end_seq = tcp_sk(sk)->write_seq; in tls_set_device_offload() 1134 clean_acked_data_enable(tcp_sk(sk), &tls_tcp_clean_acked); in tls_set_device_offload() 1160 tcp_sk(sk)->write_seq); in tls_set_device_offload() 1162 tcp_sk(sk)->write_seq, rec_seq, rc); in tls_set_device_offload() 1180 clean_acked_data_disable(tcp_sk(sk)); in tls_set_device_offload() 1241 tcp_sk(s in tls_set_device_offload_rx() [all...] |
| /linux/net/mptcp/ |
| H A D | protocol.c | 114 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create() 586 const struct tcp_sock *tp = tcp_sk(ssk); in mptcp_subflow_could_cleanup() 722 tp = tcp_sk(ssk); in __mptcp_move_skbs_from_subflow() 899 const struct tcp_sock *tp = tcp_sk(subflow->tcp_sock); in mptcp_rcv_rtt_update() 1219 if (unlikely(tcp_sk(ssk)->snd_wnd < mptcp_snd_wnd)) { in mptcp_check_allowed_size() 1220 tcp_sk(ssk)->snd_wnd = min_t(u64, U32_MAX, mptcp_snd_wnd); in mptcp_check_allowed_size() 1355 tcp_mark_push(tcp_sk(ssk), skb); in mptcp_sendmsg_frag() 1362 tcp_mark_push(tcp_sk(ssk), skb); in mptcp_sendmsg_frag() 1416 WRITE_ONCE(tcp_sk(ssk)->write_seq, tcp_sk(ssk)->write_seq + copy); in mptcp_sendmsg_frag() 1487 u32 rcv_tstamp = READ_ONCE(tcp_sk(mptcp_subflow_tcp_sock(subflow))->rcv_tstamp); in mptcp_subflow_active() [all …]
|
| H A D | fastopen.c | 25 tp = tcp_sk(ssk); in mptcp_fastopen_subflow_synack_set_params()
|
| /linux/net/psp/ |
| H A D | psp_sock.c | 163 skb_rbtree_walk(skb, &tcp_sk(sk)->out_of_order_queue) { in psp_sock_recv_queue_check() 236 pas->upgrade_seq = tcp_sk(sk)->rcv_nxt; in psp_sock_assoc_set_tx()
|
| /linux/net/rds/ |
| H A D | tcp.c | 88 return tcp_sk(tc->t_sock->sk)->write_seq; 93 return tcp_sk(tc->t_sock->sk)->snd_una; in rds_tcp_write_seq()
|
| /linux/net/smc/ |
| H A D | af_smc.c | 1532 if (!tcp_sk(smc->clcsock->sk)->syn_smc) in __smc_connect() 1703 tcp_sk(smc->clcsock->sk)->syn_smc = 1; in smc_connect() 1930 if (tcp_sk(new_smc->clcsock->sk)->syn_smc) in smc_listen_out() 2472 if (!tcp_sk(newclcsock->sk)->syn_smc) { in smc_listen_work() 2610 if (tcp_sk(new_smc->clcsock->sk)->syn_smc) in smc_tcp_listen_work() 2671 tcp_sk(smc->clcsock->sk)->syn_smc = 1; in smc_listen() 2692 tcp_sk(smc->clcsock->sk)->smc_hs_congested = smc_hs_congested; in smc_listen()
|