Home
last modified time | relevance | path

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

123

/openbmc/linux/include/net/
H A Dinet_connection_sock.h148 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk() function
155 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
180 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
185 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
190 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
198 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timer()
223 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_reset_xmit_timer()
275 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
280 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
314 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
[all …]
H A Dtcp.h357 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_dec_quickack_mode()
708 if (inet_csk(sk)->icsk_rto > TCP_RTO_MAX) in tcp_bound_rto()
709 inet_csk(sk)->icsk_rto = TCP_RTO_MAX; in tcp_bound_rto()
750 u32 rto_min = inet_csk(sk)->icsk_rto_min; in tcp_rto_min()
1172 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_needs_ecn()
1179 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_event()
1268 (1 << inet_csk(sk)->icsk_ca_state); in tcp_in_cwnd_reduction()
1372 return max_t(unsigned long, inet_csk(sk)->icsk_rto, TCP_RTO_MIN); in tcp_probe0_base()
1380 inet_csk(sk)->icsk_backoff); in tcp_probe0_when()
1388 if (!tcp_sk(sk)->packets_out && !inet_csk(sk)->icsk_pending) in tcp_check_probe_timer()
[all …]
H A Despintcp.h35 struct inet_connection_sock *icsk = inet_csk(sk); in espintcp_getctx()
/openbmc/linux/net/ipv4/
H A Dtcp_recovery.c13 if (inet_csk(sk)->icsk_ca_state >= TCP_CA_Recovery) in tcp_rack_reo_wnd()
109 timeout, inet_csk(sk)->icsk_rto); in tcp_rack_mark_lost()
158 if (inet_csk(sk)->icsk_ca_state != TCP_CA_Recovery) { in tcp_rack_reo_timeout()
160 if (!inet_csk(sk)->icsk_ca_ops->cong_control) in tcp_rack_reo_timeout()
165 if (inet_csk(sk)->icsk_pending != ICSK_TIME_RETRANS) in tcp_rack_reo_timeout()
219 const u8 state = inet_csk(sk)->icsk_ca_state; in tcp_newreno_mark_lost()
H A Dtcp_timer.c28 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout()
46 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout()
213 if (!inet_csk(sk)->icsk_retransmits) in retransmits_timed_out()
231 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_write_timeout()
296 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_delack_timer_handler()
366 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_probe_timer()
416 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_update_rto_stats()
433 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_fastopen_synack_timer()
469 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_rtx_probe0_timed_out()
515 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_retransmit_timer()
[all …]
H A Dinet_connection_sock.c587 if (!inet_csk(sk)->icsk_bind_hash) in inet_csk_get_port()
589 WARN_ON(inet_csk(sk)->icsk_bind_hash != tb); in inet_csk_get_port()
590 WARN_ON(inet_csk(sk)->icsk_bind2_hash != tb2); in inet_csk_get_port()
614 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_wait_for_connect()
662 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_accept()
759 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_init_xmit_timers()
770 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timers()
782 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timers_sync()
997 reqsk_queue_removed(&inet_csk(sk)->icsk_accept_queue, req); in __inet_csk_reqsk_queue_drop()
1045 reqsk_queue_migrated(&inet_csk(nsk)->icsk_accept_queue, req); in reqsk_timer_handler()
[all …]
H A Dtcp_ulp.c106 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_update_ulp()
114 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_cleanup_ulp()
132 struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_set_ulp()
H A Dtcp_dctcp.h29 if (inet_csk(sk)->icsk_ack.pending & ICSK_ACK_TIMER) { in dctcp_ece_ack_update()
33 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_NOW; in dctcp_ece_ack_update()
H A Dtcp_cong.c39 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_set_ca_state()
221 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_assign_congestion_control()
240 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_init_congestion_control()
255 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_reinit_congestion_control()
274 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_cleanup_congestion_control()
416 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_set_congestion_control()
H A Dinet_hashtables.c173 inet_csk(sk)->icsk_bind_hash = tb; in inet_bind_hash()
175 inet_csk(sk)->icsk_bind2_hash = tb2; in inet_bind_hash()
194 tb = inet_csk(sk)->icsk_bind_hash; in __inet_put_port()
196 inet_csk(sk)->icsk_bind_hash = NULL; in __inet_put_port()
201 if (inet_csk(sk)->icsk_bind2_hash) { in __inet_put_port()
202 struct inet_bind2_bucket *tb2 = inet_csk(sk)->icsk_bind2_hash; in __inet_put_port()
205 inet_csk(sk)->icsk_bind2_hash = NULL; in __inet_put_port()
239 tb = inet_csk(sk)->icsk_bind_hash; in __inet_inherit_port()
240 tb2 = inet_csk(sk)->icsk_bind2_hash; in __inet_inherit_port()
713 struct inet_bind_bucket *tb = inet_csk(sk)->icsk_bind_hash; in inet_reuseport_add_sock()
[all …]
H A Dtcp_output.c67 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_event_new_data_sent()
153 while ((delta -= inet_csk(sk)->icsk_rto) > 0 && cwnd > restart_cwnd) in tcp_cwnd_restart()
164 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_event_data_sent()
268 if (unlikely(inet_csk(sk)->icsk_ack.pending & ICSK_ACK_NOMEM)) { in tcp_select_window()
1130 inet_csk(sk)->icsk_af_ops->mtu_reduced(sk); in tcp_release_cb()
1253 const struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_transmit_skb()
1705 const struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_mtu_to_mss()
1747 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_mss_to_mtu()
1770 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_mtup_init()
1808 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_sync_mss()
[all …]
H A Dtcp_fastopen.c43 inet_csk(sk)->icsk_accept_queue.fastopenq.ctx, 1); in tcp_fastopen_destroy_cipher()
82 q = &inet_csk(sk)->icsk_accept_queue.fastopenq; in tcp_fastopen_reset_cipher()
244 struct request_sock_queue *queue = &inet_csk(sk)->icsk_accept_queue; in tcp_fastopen_create_child()
248 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in tcp_fastopen_create_child()
312 fastopenq = &inet_csk(sk)->icsk_accept_queue.fastopenq; in tcp_fastopen_queue_check()
583 u32 timeouts = inet_csk(sk)->icsk_retransmits; in tcp_fastopen_active_detect_blackhole()
H A Dtcp_input.c229 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_measure_rcv_mss()
314 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_incr_quickack()
326 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_enter_quickack_mode()
339 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_in_quickack_mode()
362 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_NOW; in tcp_ecn_accept_cwr()
436 const struct tcp_congestion_ops *ca_ops = inet_csk(sk)->icsk_ca_ops; in tcp_sndbuf_expand()
501 return 2 * inet_csk(sk)->icsk_ack.rcv_mss; in __tcp_grow_window()
555 inet_csk(sk)->icsk_ack.quick |= 1; in tcp_grow_window()
609 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_window()
643 inet_csk(sk)->icsk_ack.rcv_mss = hint; in tcp_initialize_rcv_mss()
[all …]
H A Dtcp_dctcp.c114 inet_csk(sk)->icsk_ca_ops = &dctcp_reno; in dctcp_init()
186 new_state != inet_csk(sk)->icsk_ca_state) in dctcp_state()
227 if (inet_csk(sk)->icsk_ca_ops != &dctcp_reno) { in dctcp_get_info()
H A Dtcp_minisocks.c282 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_time_wait()
433 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_openreq_child()
496 newicsk = inet_csk(newsk); in tcp_create_openreq_child()
787 if (req->num_timeout < READ_ONCE(inet_csk(sk)->icsk_accept_queue.rskq_defer_accept) && in tcp_check_req()
800 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in tcp_check_req()
810 reqsk_queue_removed(&inet_csk(req->rsk_listener)->icsk_accept_queue, req); in tcp_check_req()
H A Dtcp_diag.c115 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_diag_get_aux()
146 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_diag_get_aux_size()
/openbmc/linux/net/dccp/
H A Doutput.c46 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_transmit_skb()
163 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_sync_mss()
272 inet_csk(sk)->icsk_rto, in dccp_xmit_packet()
390 if (inet_csk(sk)->icsk_af_ops->rebuild_header(sk) != 0) in dccp_retransmit_skb()
394 inet_csk(sk)->icsk_retransmits++; in dccp_retransmit_skb()
521 int err = inet_csk(sk)->icsk_af_ops->rebuild_header(sk); in dccp_send_reset()
546 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_connect()
590 inet_csk(sk)->icsk_ack.ato = TCP_ATO_MIN; in dccp_send_ack()
610 struct inet_connection_sock *icsk = inet_csk(sk);
H A Dminisocks.c39 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_time_wait()
92 struct inet_connection_sock *newicsk = inet_csk(newsk); in dccp_create_openreq_child()
195 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in dccp_check_req()
H A Dtimer.c33 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_write_timeout()
85 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_retransmit_timer()
H A Dipv6.c156 if (inet_csk(sk)->icsk_pmtu_cookie > dst_mtu(dst)) in dccp_v6_err()
448 inet_csk(newsk)->icsk_af_ops = &dccp_ipv6_mapped; in dccp_v6_request_recv_sock()
468 dccp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in dccp_v6_request_recv_sock()
540 inet_csk(newsk)->icsk_ext_hdr_len = 0; in dccp_v6_request_recv_sock()
542 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in dccp_v6_request_recv_sock()
824 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_v6_connect()
1029 inet_csk(sk)->icsk_af_ops = &dccp_ipv6_af_ops; in dccp_v6_init_sock()
H A Dproto.c101 if (inet_csk(sk)->icsk_bind_hash != NULL && in dccp_set_state()
192 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_init_sock()
231 if (inet_csk(sk)->icsk_bind_hash != NULL) in dccp_destroy_sock()
258 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_disconnect()
579 return inet_csk(sk)->icsk_af_ops->setsockopt(sk, level, in dccp_setsockopt()
687 return inet_csk(sk)->icsk_af_ops->getsockopt(sk, level, in dccp_getsockopt()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_dctcp.c160 new_state != BPF_CORE_READ_BITFIELD(inet_csk(sk), icsk_ca_state)) in BPF_PROG()
193 if (inet_csk(sk)->icsk_ack.pending & ICSK_ACK_TIMER) { in dctcp_ece_ack_update()
197 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_NOW; in dctcp_ece_ack_update()
/openbmc/linux/net/mptcp/
H A Dmptcp_diag.c24 return inet_sk_diag_fill(sk, inet_csk(sk), skb, cb, req, NLM_F_MULTI, in sk_diag_dump()
53 err = inet_sk_diag_fill(sk, inet_csk(sk), rep, cb, req, 0, in mptcp_diag_dump_one()
107 if (!ctx || strcmp(inet_csk(sk)->icsk_ulp_ops->name, "mptcp")) in mptcp_diag_dump_listeners()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbpf_tcp_helpers.h91 static __always_inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk() function
98 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
/openbmc/linux/net/core/
H A Drequest_sock.c94 fastopenq = &inet_csk(lsk)->icsk_accept_queue.fastopenq; in reqsk_fastopen_remove()

123