Lines Matching refs:sock
51 void tcp_time_wait(struct sock *sk, int state, int timeo);
255 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
280 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
288 void sk_forced_mem_schedule(struct sock *sk, int size);
290 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
303 bool tcp_check_oom(struct sock *sk, int shift);
317 void tcp_shutdown(struct sock *sk, int how);
323 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
324 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
325 int tcp_sendpage(struct sock *sk, struct page *page, int offset, size_t size,
327 int tcp_sendpage_locked(struct sock *sk, struct page *page, int offset,
329 ssize_t do_tcp_sendpages(struct sock *sk, struct page *page, int offset,
331 void tcp_release_cb(struct sock *sk);
333 void tcp_write_timer_handler(struct sock *sk);
334 void tcp_delack_timer_handler(struct sock *sk);
335 int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
336 int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb);
337 void tcp_rcv_established(struct sock *sk, struct sk_buff *skb);
338 void tcp_rcv_space_adjust(struct sock *sk);
339 int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp);
340 void tcp_twsk_destructor(struct sock *sk);
345 void tcp_enter_quickack_mode(struct sock *sk, unsigned int max_quickacks);
346 static inline void tcp_dec_quickack_mode(struct sock *sk, in tcp_dec_quickack_mode()
377 struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
380 int tcp_child_process(struct sock *parent, struct sock *child,
382 void tcp_enter_loss(struct sock *sk);
383 void tcp_cwnd_reduction(struct sock *sk, int newly_acked_sacked, int flag);
385 void tcp_update_metrics(struct sock *sk);
386 void tcp_init_metrics(struct sock *sk);
389 void tcp_close(struct sock *sk, long timeout);
390 void tcp_init_sock(struct sock *sk);
391 void tcp_init_transfer(struct sock *sk, int bpf_op);
392 __poll_t tcp_poll(struct file *file, struct socket *sock,
394 int tcp_getsockopt(struct sock *sk, int level, int optname,
396 int tcp_setsockopt(struct sock *sk, int level, int optname,
398 int compat_tcp_getsockopt(struct sock *sk, int level, int optname,
400 int compat_tcp_setsockopt(struct sock *sk, int level, int optname,
402 void tcp_set_keepalive(struct sock *sk, int val);
404 int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
406 int tcp_set_rcvlowat(struct sock *sk, int val);
407 void tcp_data_ready(struct sock *sk);
409 int tcp_mmap(struct file *file, struct socket *sock,
420 u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
422 u16 tcp_v6_get_syncookie(struct sock *sk, struct ipv6hdr *iph,
426 struct sock *sk, struct tcphdr *th);
431 void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb);
432 void tcp_v4_mtu_reduced(struct sock *sk);
433 void tcp_req_err(struct sock *sk, u32 seq, bool abort);
434 int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb);
435 struct sock *tcp_create_openreq_child(const struct sock *sk,
438 void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst);
439 struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
444 int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb);
445 int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len);
446 int tcp_connect(struct sock *sk);
452 struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
456 int tcp_disconnect(struct sock *sk, int flags);
458 void tcp_finish_connect(struct sock *sk, struct sk_buff *skb);
459 int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size);
460 void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb);
463 struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb,
468 struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);
486 static inline void tcp_synq_overflow(const struct sock *sk) in tcp_synq_overflow()
509 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow()
549 struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb);
557 void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
559 int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
560 int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);
561 void tcp_retransmit_timer(struct sock *sk);
562 void tcp_xmit_retransmit_queue(struct sock *);
563 void tcp_simple_retransmit(struct sock *);
564 void tcp_enter_recovery(struct sock *sk, bool ece_ack);
565 int tcp_trim_head(struct sock *, struct sk_buff *, u32);
570 int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
574 void tcp_send_probe0(struct sock *);
575 void tcp_send_partial(struct sock *);
576 int tcp_write_wakeup(struct sock *, int mib);
577 void tcp_send_fin(struct sock *sk);
578 void tcp_send_active_reset(struct sock *sk, gfp_t priority);
579 int tcp_send_synack(struct sock *);
580 void tcp_push_one(struct sock *, unsigned int mss_now);
581 void __tcp_send_ack(struct sock *sk, u32 rcv_nxt);
582 void tcp_send_ack(struct sock *sk);
583 void tcp_send_delayed_ack(struct sock *sk);
584 void tcp_send_loss_probe(struct sock *sk);
585 bool tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto);
590 void tcp_rearm_rto(struct sock *sk);
591 void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req);
592 void tcp_reset(struct sock *sk);
594 void tcp_fin(struct sock *sk);
597 void tcp_init_xmit_timers(struct sock *);
598 static inline void tcp_clear_xmit_timers(struct sock *sk) in tcp_clear_xmit_timers()
609 unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu);
610 unsigned int tcp_current_mss(struct sock *sk);
636 void tcp_get_info(struct sock *, struct tcp_info *);
639 int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
642 void tcp_initialize_rcv_mss(struct sock *sk);
644 int tcp_mtu_to_mss(struct sock *sk, int pmtu);
645 int tcp_mss_to_mtu(struct sock *sk, int mss);
646 void tcp_mtup_init(struct sock *sk);
647 void tcp_init_buffer_space(struct sock *sk);
649 static inline void tcp_bound_rto(const struct sock *sk) in tcp_bound_rto()
672 static inline void tcp_fast_path_check(struct sock *sk) in tcp_fast_path_check()
684 static inline u32 tcp_rto_min(struct sock *sk) in tcp_rto_min()
694 static inline u32 tcp_rto_min_us(struct sock *sk) in tcp_rto_min_us()
727 u32 __tcp_select_window(struct sock *sk);
729 void tcp_send_window_probe(struct sock *sk);
859 struct sock *sk_redir;
877 static inline struct sock *tcp_skb_bpf_redirect_fetch(struct sk_buff *skb) in tcp_skb_bpf_redirect_fetch()
1032 void (*init)(struct sock *sk);
1034 void (*release)(struct sock *sk);
1037 u32 (*ssthresh)(struct sock *sk);
1039 void (*cong_avoid)(struct sock *sk, u32 ack, u32 acked);
1041 void (*set_state)(struct sock *sk, u8 new_state);
1043 void (*cwnd_event)(struct sock *sk, enum tcp_ca_event ev);
1045 void (*in_ack_event)(struct sock *sk, u32 flags);
1047 u32 (*undo_cwnd)(struct sock *sk);
1049 void (*pkts_acked)(struct sock *sk, const struct ack_sample *sample);
1051 u32 (*min_tso_segs)(struct sock *sk);
1053 u32 (*sndbuf_expand)(struct sock *sk);
1057 void (*cong_control)(struct sock *sk, const struct rate_sample *rs);
1059 size_t (*get_info)(struct sock *sk, u32 ext, int *attr,
1069 void tcp_assign_congestion_control(struct sock *sk);
1070 void tcp_init_congestion_control(struct sock *sk);
1071 void tcp_cleanup_congestion_control(struct sock *sk);
1077 int tcp_set_congestion_control(struct sock *sk, const char *name, bool load,
1082 u32 tcp_reno_ssthresh(struct sock *sk);
1083 u32 tcp_reno_undo_cwnd(struct sock *sk);
1084 void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked);
1098 static inline bool tcp_ca_needs_ecn(const struct sock *sk) in tcp_ca_needs_ecn()
1105 static inline void tcp_set_ca_state(struct sock *sk, const u8 ca_state) in tcp_set_ca_state()
1114 static inline void tcp_ca_event(struct sock *sk, const enum tcp_ca_event event) in tcp_ca_event()
1123 void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb);
1124 void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
1126 void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost,
1128 void tcp_rate_check_app_limited(struct sock *sk);
1183 static inline bool tcp_in_cwnd_reduction(const struct sock *sk) in tcp_in_cwnd_reduction()
1193 static inline __u32 tcp_current_ssthresh(const struct sock *sk) in tcp_current_ssthresh()
1208 void tcp_enter_cwr(struct sock *sk);
1238 static inline bool tcp_is_cwnd_limited(const struct sock *sk) in tcp_is_cwnd_limited()
1255 static inline bool tcp_needs_internal_pacing(const struct sock *sk) in tcp_needs_internal_pacing()
1263 static inline unsigned long tcp_pacing_delay(const struct sock *sk, in tcp_pacing_delay()
1273 static inline void tcp_reset_xmit_timer(struct sock *sk, in tcp_reset_xmit_timer()
1289 static inline unsigned long tcp_probe0_base(const struct sock *sk) in tcp_probe0_base()
1295 static inline unsigned long tcp_probe0_when(const struct sock *sk, in tcp_probe0_when()
1303 static inline void tcp_check_probe_timer(struct sock *sk) in tcp_check_probe_timer()
1336 bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb);
1337 int tcp_filter(struct sock *sk, struct sk_buff *skb);
1338 void tcp_set_state(struct sock *sk, int state);
1339 void tcp_done(struct sock *sk);
1340 int tcp_abort(struct sock *sk, int err);
1349 void tcp_cwnd_restart(struct sock *sk, s32 delta);
1351 static inline void tcp_slow_start_after_idle_check(struct sock *sk) in tcp_slow_start_after_idle_check()
1366 void tcp_select_initial_window(const struct sock *sk, int __space,
1371 static inline int tcp_win_from_space(const struct sock *sk, int space) in tcp_win_from_space()
1381 static inline int tcp_space(const struct sock *sk) in tcp_space()
1388 static inline int tcp_full_space(const struct sock *sk) in tcp_full_space()
1394 const struct sock *sk_listener,
1397 void tcp_enter_memory_pressure(struct sock *sk);
1398 void tcp_leave_memory_pressure(struct sock *sk);
1402 struct net *net = sock_net((struct sock *)tp); in keepalive_intvl_when()
1409 struct net *net = sock_net((struct sock *)tp); in keepalive_time_when()
1416 struct net *net = sock_net((struct sock *)tp); in keepalive_probes()
1429 static inline int tcp_fin_time(const struct sock *sk) in tcp_fin_time()
1561 const struct sock *sk, const struct sk_buff *skb);
1562 int tcp_md5_do_add(struct sock *sk, const union tcp_md5_addr *addr,
1565 int tcp_md5_do_del(struct sock *sk, const union tcp_md5_addr *addr,
1567 struct tcp_md5sig_key *tcp_v4_md5_lookup(const struct sock *sk,
1568 const struct sock *addr_sk);
1573 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk,
1577 tcp_md5_do_lookup(const struct sock *sk, in tcp_md5_do_lookup()
1588 static inline struct tcp_md5sig_key *tcp_md5_do_lookup(const struct sock *sk, in tcp_md5_do_lookup()
1611 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,
1613 void tcp_fastopen_cache_set(struct sock *sk, u16 mss,
1625 void tcp_fastopen_destroy_cipher(struct sock *sk);
1627 int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk,
1629 void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb);
1630 struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
1635 bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
1637 bool tcp_fastopen_defer_connect(struct sock *sk, int *err);
1651 void tcp_fastopen_active_disable(struct sock *sk);
1652 bool tcp_fastopen_active_should_disable(struct sock *sk);
1653 void tcp_fastopen_active_disable_ofo_check(struct sock *sk);
1654 void tcp_fastopen_active_detect_blackhole(struct sock *sk, bool expired);
1658 struct tcp_fastopen_context *tcp_fastopen_get_ctx(const struct sock *sk) in tcp_fastopen_get_ctx()
1696 void tcp_chrono_start(struct sock *sk, const enum tcp_chrono type);
1697 void tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type);
1716 void tcp_write_queue_purge(struct sock *sk);
1718 static inline struct sk_buff *tcp_rtx_queue_head(const struct sock *sk) in tcp_rtx_queue_head()
1723 static inline struct sk_buff *tcp_rtx_queue_tail(const struct sock *sk) in tcp_rtx_queue_tail()
1728 static inline struct sk_buff *tcp_write_queue_head(const struct sock *sk) in tcp_write_queue_head()
1733 static inline struct sk_buff *tcp_write_queue_tail(const struct sock *sk) in tcp_write_queue_tail()
1741 static inline struct sk_buff *tcp_send_head(const struct sock *sk) in tcp_send_head()
1746 static inline bool tcp_skb_is_last(const struct sock *sk, in tcp_skb_is_last()
1752 static inline bool tcp_write_queue_empty(const struct sock *sk) in tcp_write_queue_empty()
1757 static inline bool tcp_rtx_queue_empty(const struct sock *sk) in tcp_rtx_queue_empty()
1762 static inline bool tcp_rtx_and_write_queues_empty(const struct sock *sk) in tcp_rtx_and_write_queues_empty()
1767 static inline void tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb) in tcp_add_write_queue_tail()
1779 struct sock *sk) in tcp_insert_write_queue_before()
1784 static inline void tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk) in tcp_unlink_write_queue()
1792 static inline void tcp_rtx_queue_unlink(struct sk_buff *skb, struct sock *sk) in tcp_rtx_queue_unlink()
1798 static inline void tcp_rtx_queue_unlink_and_free(struct sk_buff *skb, struct sock *sk) in tcp_rtx_queue_unlink_and_free()
1805 static inline void tcp_push_pending_frames(struct sock *sk) in tcp_push_pending_frames()
1829 static inline void tcp_advance_highest_sack(struct sock *sk, struct sk_buff *skb) in tcp_advance_highest_sack()
1834 static inline struct sk_buff *tcp_highest_sack(struct sock *sk) in tcp_highest_sack()
1839 static inline void tcp_highest_sack_reset(struct sock *sk) in tcp_highest_sack_reset()
1845 static inline void tcp_highest_sack_replace(struct sock *sk, in tcp_highest_sack_replace()
1854 static inline bool inet_sk_transparent(const struct sock *sk) in inet_sk_transparent()
1890 struct sock *syn_wait_sk;
1898 void tcp_v4_destroy_sock(struct sock *sk);
1909 struct net *net = sock_net((struct sock *)tp); in tcp_notsent_lowat()
1917 static inline bool tcp_stream_memory_free(const struct sock *sk, int wake) in tcp_stream_memory_free()
1931 int tcp_rtx_synack(const struct sock *sk, struct request_sock *req);
1934 struct sock *sk, struct sk_buff *skb);
1939 struct tcp_md5sig_key *(*md5_lookup) (const struct sock *sk,
1940 const struct sock *addr_sk);
1943 const struct sock *sk,
1945 int (*md5_parse)(struct sock *sk,
1955 struct tcp_md5sig_key *(*req_md5_lookup)(const struct sock *sk,
1956 const struct sock *addr_sk);
1959 const struct sock *sk,
1963 const struct sock *sk_listener,
1969 struct dst_entry *(*route_req)(const struct sock *sk, struct flowi *fl,
1973 int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
1981 const struct sock *sk, struct sk_buff *skb, in cookie_init_sequence()
1990 const struct sock *sk, struct sk_buff *skb, in cookie_init_sequence()
2003 void tcp_mark_skb_lost(struct sock *sk, struct sk_buff *skb);
2004 void tcp_newreno_mark_lost(struct sock *sk, bool snd_una_advanced);
2007 extern void tcp_rack_mark_lost(struct sock *sk);
2010 extern void tcp_rack_reo_timeout(struct sock *sk);
2011 extern void tcp_rack_update_reo_wnd(struct sock *sk, struct rate_sample *rs);
2014 static inline s64 tcp_rto_delta_us(const struct sock *sk) in tcp_rto_delta_us()
2059 static inline int tcp_inq(struct sock *sk) in tcp_inq()
2083 int tcp_peek_len(struct socket *sock);
2102 static inline void tcp_listendrop(const struct sock *sk) in tcp_listendrop()
2104 atomic_inc(&((struct sock *)sk)->sk_drops); in tcp_listendrop()
2122 int (*init)(struct sock *sk);
2124 void (*update)(struct sock *sk, struct proto *p);
2126 void (*release)(struct sock *sk);
2128 int (*get_info)(const struct sock *sk, struct sk_buff *skb);
2129 size_t (*get_info_size)(const struct sock *sk);
2136 int tcp_set_ulp(struct sock *sk, const char *name);
2138 void tcp_cleanup_ulp(struct sock *sk);
2139 void tcp_update_ulp(struct sock *sk, struct proto *p);
2148 int tcp_bpf_init(struct sock *sk);
2149 void tcp_bpf_reinit(struct sock *sk);
2150 int tcp_bpf_sendmsg_redir(struct sock *sk, struct sk_msg *msg, u32 bytes,
2152 int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
2154 int __tcp_bpf_recvmsg(struct sock *sk, struct sk_psock *psock,
2163 static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args) in tcp_call_bpf()
2187 static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2) in tcp_call_bpf_2arg()
2194 static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2, in tcp_call_bpf_3arg()
2203 static inline int tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args) in tcp_call_bpf()
2208 static inline int tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2) in tcp_call_bpf_2arg()
2213 static inline int tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2, in tcp_call_bpf_3arg()
2221 static inline u32 tcp_timeout_init(struct sock *sk) in tcp_timeout_init()
2232 static inline u32 tcp_rwnd_init_bpf(struct sock *sk) in tcp_rwnd_init_bpf()
2243 static inline bool tcp_bpf_ca_needs_ecn(struct sock *sk) in tcp_bpf_ca_needs_ecn()
2248 static inline void tcp_bpf_rtt(struct sock *sk) in tcp_bpf_rtt()
2260 void (*cad)(struct sock *sk, u32 ack_seq));
2276 static inline u64 tcp_transmit_time(const struct sock *sk) in tcp_transmit_time()