/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_008.cpp | 43 int tcp_sock; in UdpTcpBind() local 60 tcp_sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in UdpTcpBind() 61 if (tcp_sock < 0) { in UdpTcpBind() 65 ret = bind(tcp_sock, const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&sa)), sizeof(sa)); in UdpTcpBind() 71 (*sock2) = tcp_sock; in UdpTcpBind() 81 int tcp_sock; in ClientFunc() local 83 ret = UdpTcpBind(&udp_sock, &tcp_sock); in ClientFunc() 89 (void)close(tcp_sock); in ClientFunc() 99 int tcp_sock; in ItNetContainer008() local 101 ret = UdpTcpBind(&udp_sock, &tcp_sock); in ItNetContainer008() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | bpf_tcp_ca.c | 33 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 65 /* promote it to tcp_sock */ in bpf_tcp_ca_is_valid_access() 98 case offsetof(struct tcp_sock, snd_cwnd): in bpf_tcp_ca_btf_struct_access() 99 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access() 101 case offsetof(struct tcp_sock, snd_cwnd_cnt): in bpf_tcp_ca_btf_struct_access() 102 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access() 104 case offsetof(struct tcp_sock, snd_ssthresh): in bpf_tcp_ca_btf_struct_access() 105 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access() 107 case offsetof(struct tcp_sock, ecn_flags): in bpf_tcp_ca_btf_struct_access() 108 end = offsetofend(struct tcp_sock, ecn_flag in bpf_tcp_ca_btf_struct_access() [all...] |
H A D | tcp_recovery.c | 7 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() 32 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() 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() 118 void tcp_rack_advance(struct tcp_sock *tp, u8 sacked, u32 end_seq, in tcp_rack_advance() 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 D | tcp_output.c | 53 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() 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() 161 static void tcp_event_data_sent(struct tcp_sock *tp, in tcp_event_data_sent() 182 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent() 251 /* Chose a new window to advertise, update state in tcp_sock for the 258 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window() 318 const struct tcp_sock *t in tcp_ecn_send_synack() [all...] |
H A D | tcp_bbr.c | 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() 592 struct tcp_sock *t in bbr_advance_cycle_phase() [all...] |
H A D | tcp_input.c | 335 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() 355 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() 362 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() 398 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack() 404 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn() 410 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo() 424 const struct tcp_sock *tp = tcp_sk(sk); in tcp_sndbuf_expand() 483 const struct tcp_sock *tp = tcp_sk(sk); in __tcp_grow_window() 520 struct tcp_sock *tp = tcp_sk(sk); in tcp_grow_window() 560 struct tcp_sock *t in tcp_init_buffer_space() [all...] |
H A D | tcp_dctcp.c | 70 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() 80 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()
|
H A D | tcp_rate.c | 42 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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | bpf_tcp_ca.c | 40 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 91 /* promote it to tcp_sock */ in bpf_tcp_ca_is_valid_access() 120 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_flag in bpf_tcp_ca_btf_struct_access() [all...] |
H A D | tcp_recovery.c | 12 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() 37 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() 65 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_detect_loss() 102 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_mark_lost() 123 void tcp_rack_advance(struct tcp_sock *tp, u8 sacked, u32 end_seq, in tcp_rack_advance() 156 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_timeout() 192 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_update_reo_wnd() 223 struct tcp_sock *tp = tcp_sk(sk); in tcp_newreno_mark_lost()
|
H A D | tcp_output.c | 55 void tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh() 70 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() 99 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() 125 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss() 146 struct tcp_sock *tp = tcp_sk(sk); in tcp_cwnd_restart() 163 static void tcp_event_data_sent(struct tcp_sock *tp, in tcp_event_data_sent() 184 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_ack_sent() 253 /* Chose a new window to advertise, update state in tcp_sock for the 260 struct tcp_sock *tp = tcp_sk(sk); in tcp_select_window() 310 const struct tcp_sock *t in tcp_ecn_send_synack() [all...] |
H A D | tcp_bbr.c | 266 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 *t in bbr_advance_cycle_phase() [all...] |
H A D | tcp_dctcp.c | 67 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()
|
H A D | tcp_input.c | 327 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() 347 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() 354 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() 390 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack() 396 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn() 402 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo() 416 const struct tcp_sock *tp = tcp_sk(sk); in tcp_sndbuf_expand() 475 struct tcp_sock *tp = tcp_sk(sk); in __tcp_grow_window() 512 struct tcp_sock *tp = tcp_sk(sk); in tcp_grow_window() 544 struct tcp_sock *t in tcp_init_buffer_space() [all...] |
H A D | tcp_rate.c | 42 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_sent() 82 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered() 118 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_gen() 190 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_check_app_limited()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | tcp_ca_write_sk_pacing.c | 14 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() 16 return (struct tcp_sock *)sk; in tcp_sk() 19 static inline unsigned int tcp_left_out(const struct tcp_sock *tp) in tcp_left_out() 24 static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp) in tcp_packets_in_flight() 44 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG()
|
H A D | bpf_dctcp.c | 51 static __always_inline void dctcp_reset(const struct tcp_sock *tp, in dctcp_reset() 63 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()
|
H A D | tcp_ca_incompl_cong_ops.c | 10 static inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() 12 return (struct tcp_sock *)sk; in tcp_sk()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tcp.h | 394 void tcp_clear_retrans(struct tcp_sock *tp); 592 void tcp_mark_push(struct tcp_sock *tp, struct sk_buff *skb); 650 static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize) in tcp_bound_to_half_wnd() 694 static inline u32 __tcp_set_rto(const struct tcp_sock *tp) in __tcp_set_rto() 699 static inline void __tcp_fast_path_on(struct tcp_sock *tp, u32 snd_wnd) in __tcp_fast_path_on() 710 static inline void tcp_fast_path_on(struct tcp_sock *tp) in tcp_fast_path_on() 717 struct tcp_sock *tp = tcp_sk(sk); in tcp_fast_path_check() 750 static inline u32 tcp_min_rtt(const struct tcp_sock *tp) in tcp_min_rtt() 759 static inline u32 tcp_receive_window(const struct tcp_sock *tp) in tcp_receive_window() 800 static inline u32 tcp_time_stamp(const struct tcp_sock *t [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | tcp.h | 385 void tcp_clear_retrans(struct tcp_sock *tp); 608 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() 687 static inline void tcp_fast_path_on(struct tcp_sock *tp) in tcp_fast_path_on() 694 struct tcp_sock *tp = tcp_sk(sk); in tcp_fast_path_check() 725 static inline u32 tcp_min_rtt(const struct tcp_sock *tp) in tcp_min_rtt() 734 static inline u32 tcp_receive_window(const struct tcp_sock *tp) in tcp_receive_window() 775 static inline u32 tcp_time_stamp(const struct tcp_sock *t [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | bpf_tcp_helpers.h | 53 struct tcp_sock { struct 90 static __always_inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_dctcp.c | 44 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | bpf_tcp_helpers.h | 62 struct tcp_sock { struct 101 static __always_inline struct tcp_sock *tcp_sk(const struct sock *sk) in tcp_sk() 103 return (struct tcp_sock *)sk; in tcp_sk() 200 static __always_inline bool tcp_in_slow_start(const struct tcp_sock *tp) in tcp_in_slow_start() 207 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited() 230 extern __u32 tcp_slow_start(struct tcp_sock *tp, __u32 acked) __ksym; 231 extern void tcp_cong_avoid_ai(struct tcp_sock *tp, __u32 w, __u32 acked) __ksym;
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_output.c | 84 const struct tcp_sock *tp = tcp_sk(sk); in __tcp_nip_mtu_to_mss() 132 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_event_new_data_sent() 172 struct tcp_sock *tp = tcp_sk(sk); in __nip_tcp_select_window() 232 struct tcp_sock *tp = tcp_sk(sk); in nip_tcp_select_window() 292 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_connect_init() 366 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_connect_queue_skb() 380 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_advertise_mss() 430 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_established_options() 452 static void tcp_nip_options_write(__be32 *ptr, struct tcp_sock *tp, in tcp_nip_options_write() 464 struct tcp_sock *t in tcp_nip_event_ack_sent() [all...] |
H A D | tcp_nip_input.c | 195 static void tcp_nip_overlap_handle(struct tcp_sock *tp, struct sk_buff *skb) in tcp_nip_overlap_handle() 230 static void tcp_nip_rcv_nxt_update(struct tcp_sock *tp, u32 seq) in tcp_nip_rcv_nxt_update() 311 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_ofo_queue() 363 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_data_queue_ofo() 537 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_data_queue() 631 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_push_pending_frames() 689 struct tcp_sock *tp = tcp_sk(sk); in __tcp_nip_ack_snd_check() 729 static void tcp_nip_snd_una_update(struct tcp_sock *tp, u32 ack) in tcp_nip_snd_una_update() 740 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_rearm_rto() 789 struct tcp_sock *t in tcp_nip_clean_rtx_queue() [all...] |