Home
last modified time | relevance | path

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

12

/linux-6.1.9/net/dccp/
Dtimer.c33 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_write_timeout() local
37 if (icsk->icsk_retransmits != 0) in dccp_write_timeout()
39 retry_until = icsk->icsk_syn_retries ? in dccp_write_timeout()
42 if (icsk->icsk_retransmits >= sysctl_dccp_retries1) { in dccp_write_timeout()
72 if (icsk->icsk_retransmits >= retry_until) { in dccp_write_timeout()
85 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_retransmit_timer() local
98 if (icsk->icsk_retransmits == 0) in dccp_retransmit_timer()
106 if (--icsk->icsk_retransmits == 0) in dccp_retransmit_timer()
107 icsk->icsk_retransmits = 1; in dccp_retransmit_timer()
109 min(icsk->icsk_rto, in dccp_retransmit_timer()
[all …]
Doutput.c46 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_transmit_skb() local
73 if (icsk->icsk_retransmits == 0) in dccp_transmit_skb()
131 icsk->icsk_af_ops->send_check(sk, skb); in dccp_transmit_skb()
138 err = icsk->icsk_af_ops->queue_xmit(sk, skb, &inet->cork.fl); in dccp_transmit_skb()
163 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_sync_mss() local
169 cur_mps -= (icsk->icsk_af_ops->net_header_len + icsk->icsk_ext_hdr_len + in dccp_sync_mss()
189 icsk->icsk_pmtu_cookie = pmtu; in dccp_sync_mss()
546 struct inet_connection_sock *icsk = inet_csk(sk); in dccp_connect() local
573 icsk->icsk_retransmits = 0; in dccp_connect()
575 icsk->icsk_rto, DCCP_RTO_MAX); in dccp_connect()
[all …]
Ddiag.c19 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_get_info() local
24 info->tcpi_retransmits = icsk->icsk_retransmits; in dccp_get_info()
25 info->tcpi_probes = icsk->icsk_probes_out; in dccp_get_info()
26 info->tcpi_backoff = icsk->icsk_backoff; in dccp_get_info()
27 info->tcpi_pmtu = icsk->icsk_pmtu_cookie; in dccp_get_info()
Dminisocks.c39 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_time_wait() local
40 const int rto = (icsk->icsk_rto << 2) - (icsk->icsk_rto >> 1); in dccp_time_wait()
Dinput.c401 const struct inet_connection_sock *icsk = inet_csk(sk); in dccp_rcv_request_sent_state_process() local
443 dccp_sync_mss(sk, icsk->icsk_pmtu_cookie); in dccp_rcv_request_sent_state_process()
472 icsk->icsk_af_ops->rebuild_header(sk); in dccp_rcv_request_sent_state_process()
480 icsk->icsk_accept_queue.rskq_defer_accept) { in dccp_rcv_request_sent_state_process()
/linux-6.1.9/net/ipv4/
Dtcp_timer.c28 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout() local
33 if (!icsk->icsk_user_timeout) in tcp_clamp_rto_to_user_timeout()
34 return icsk->icsk_rto; in tcp_clamp_rto_to_user_timeout()
36 remaining = icsk->icsk_user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout()
40 return min_t(u32, icsk->icsk_rto, msecs_to_jiffies(remaining)); in tcp_clamp_rto_to_user_timeout()
45 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout() local
49 if (!icsk->icsk_user_timeout || !icsk->icsk_probes_tstamp) in tcp_clamp_probe0_to_user_timeout()
52 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout()
55 remaining = msecs_to_jiffies(icsk->icsk_user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout()
160 static void tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) in tcp_mtu_probing() argument
[all …]
Dtcp_cong.c39 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_set_ca_state() local
43 if (icsk->icsk_ca_ops->set_state) in tcp_set_ca_state()
44 icsk->icsk_ca_ops->set_state(sk, ca_state); in tcp_set_ca_state()
45 icsk->icsk_ca_state = ca_state; in tcp_set_ca_state()
170 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_assign_congestion_control() local
177 icsk->icsk_ca_ops = ca; in tcp_assign_congestion_control()
180 memset(icsk->icsk_ca_priv, 0, sizeof(icsk->icsk_ca_priv)); in tcp_assign_congestion_control()
189 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_init_congestion_control() local
192 if (icsk->icsk_ca_ops->init) in tcp_init_congestion_control()
193 icsk->icsk_ca_ops->init(sk); in tcp_init_congestion_control()
[all …]
Dtcp_ulp.c106 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_update_ulp() local
108 if (icsk->icsk_ulp_ops->update) in tcp_update_ulp()
109 icsk->icsk_ulp_ops->update(sk, proto, write_space); in tcp_update_ulp()
114 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_cleanup_ulp() local
120 if (!icsk->icsk_ulp_ops) in tcp_cleanup_ulp()
123 if (icsk->icsk_ulp_ops->release) in tcp_cleanup_ulp()
124 icsk->icsk_ulp_ops->release(sk); in tcp_cleanup_ulp()
125 module_put(icsk->icsk_ulp_ops->owner); in tcp_cleanup_ulp()
127 icsk->icsk_ulp_ops = NULL; in tcp_cleanup_ulp()
132 struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_set_ulp() local
[all …]
Dtcp_output.c67 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_event_new_data_sent() local
80 if (!prior_packets || icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) in tcp_event_new_data_sent()
164 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_event_data_sent() local
175 if ((u32)(now - icsk->icsk_ack.lrcvtime) < icsk->icsk_ack.ato) in tcp_event_data_sent()
1240 const struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_transmit_skb() local
1371 INDIRECT_CALL_INET(icsk->icsk_af_ops->send_check, in __tcp_transmit_skb()
1402 err = INDIRECT_CALL_INET(icsk->icsk_af_ops->queue_xmit, in __tcp_transmit_skb()
1695 const struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_mtu_to_mss() local
1701 mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr); in __tcp_mtu_to_mss()
1704 if (icsk->icsk_af_ops->net_frag_header_len) { in __tcp_mtu_to_mss()
[all …]
Dinet_connection_sock.c590 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_wait_for_connect() local
612 if (reqsk_queue_empty(&icsk->icsk_accept_queue)) in inet_csk_wait_for_connect()
617 if (!reqsk_queue_empty(&icsk->icsk_accept_queue)) in inet_csk_wait_for_connect()
638 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_accept() local
639 struct request_sock_queue *queue = &icsk->icsk_accept_queue; in inet_csk_accept()
728 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_init_xmit_timers() local
730 timer_setup(&icsk->icsk_retransmit_timer, retransmit_handler, 0); in inet_csk_init_xmit_timers()
731 timer_setup(&icsk->icsk_delack_timer, delack_handler, 0); in inet_csk_init_xmit_timers()
733 icsk->icsk_pending = icsk->icsk_ack.pending = 0; in inet_csk_init_xmit_timers()
739 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timers() local
[all …]
Dtcp_input.c120 void clean_acked_data_enable(struct inet_connection_sock *icsk, in clean_acked_data_enable() argument
123 icsk->icsk_clean_acked = cad; in clean_acked_data_enable()
128 void clean_acked_data_disable(struct inet_connection_sock *icsk) in clean_acked_data_disable() argument
131 icsk->icsk_clean_acked = NULL; in clean_acked_data_disable()
229 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_measure_rcv_mss() local
230 const unsigned int lss = icsk->icsk_ack.last_seg_size; in tcp_measure_rcv_mss()
233 icsk->icsk_ack.last_seg_size = 0; in tcp_measure_rcv_mss()
239 if (len >= icsk->icsk_ack.rcv_mss) { in tcp_measure_rcv_mss()
240 icsk->icsk_ack.rcv_mss = min_t(unsigned int, len, in tcp_measure_rcv_mss()
243 if (unlikely(len > icsk->icsk_ack.rcv_mss + in tcp_measure_rcv_mss()
[all …]
Dtcp.c414 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_init_sock() local
423 icsk->icsk_rto = TCP_TIMEOUT_INIT; in tcp_init_sock()
424 icsk->icsk_rto_min = TCP_RTO_MIN; in tcp_init_sock()
425 icsk->icsk_delack_max = TCP_DELACK_MAX; in tcp_init_sock()
456 icsk->icsk_sync_mss = tcp_sync_mss; in tcp_init_sock()
1577 const struct inet_connection_sock *icsk = inet_csk(sk); in __tcp_cleanup_rbuf() local
1580 tp->rcv_nxt - tp->rcv_wup > icsk->icsk_ack.rcv_mss || in __tcp_cleanup_rbuf()
1588 ((icsk->icsk_ack.pending & ICSK_ACK_PUSHED2) || in __tcp_cleanup_rbuf()
1589 ((icsk->icsk_ack.pending & ICSK_ACK_PUSHED) && in __tcp_cleanup_rbuf()
3084 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_disconnect() local
[all …]
Dinet_timewait_sock.c121 const struct inet_connection_sock *icsk = inet_csk(sk); in inet_twsk_hashdance() local
137 tw->tw_tb = icsk->icsk_bind_hash; in inet_twsk_hashdance()
138 WARN_ON(!icsk->icsk_bind_hash); in inet_twsk_hashdance()
141 tw->tw_tb2 = icsk->icsk_bind2_hash; in inet_twsk_hashdance()
142 WARN_ON(!icsk->icsk_bind2_hash); in inet_twsk_hashdance()
Dtcp_htcp.c84 const struct inet_connection_sock *icsk = inet_csk(sk); in measure_rtt() local
92 if (icsk->icsk_ca_state == TCP_CA_Open) { in measure_rtt()
104 const struct inet_connection_sock *icsk = inet_csk(sk); in measure_achieved_throughput() local
109 if (icsk->icsk_ca_state == TCP_CA_Open) in measure_achieved_throughput()
119 if (!((1 << icsk->icsk_ca_state) & (TCPF_CA_Open | TCPF_CA_Disorder))) { in measure_achieved_throughput()
Dtcp_diag.c115 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_diag_get_aux() local
135 ulp_ops = icsk->icsk_ulp_ops; in tcp_diag_get_aux()
146 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_diag_get_aux_size() local
170 ulp_ops = icsk->icsk_ulp_ops; in tcp_diag_get_aux_size()
Dtcp_minisocks.c248 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_time_wait() local
257 const int rto = (icsk->icsk_rto << 2) - (icsk->icsk_rto >> 1); in tcp_time_wait()
422 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_openreq_child() local
432 icsk->icsk_ca_dst_locked = tcp_ca_dst_locked(dst); in tcp_ca_openreq_child()
433 icsk->icsk_ca_ops = ca; in tcp_ca_openreq_child()
441 (!icsk->icsk_ca_setsockopt || in tcp_ca_openreq_child()
442 !bpf_try_module_get(icsk->icsk_ca_ops, icsk->icsk_ca_ops->owner))) in tcp_ca_openreq_child()
Dinet_diag.c234 int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, in inet_sk_diag_fill() argument
296 if (!icsk) { in inet_sk_diag_fill()
301 if (icsk->icsk_pending == ICSK_TIME_RETRANS || in inet_sk_diag_fill()
302 icsk->icsk_pending == ICSK_TIME_REO_TIMEOUT || in inet_sk_diag_fill()
303 icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) { in inet_sk_diag_fill()
305 r->idiag_retrans = icsk->icsk_retransmits; in inet_sk_diag_fill()
307 jiffies_delta_to_msecs(icsk->icsk_timeout - jiffies); in inet_sk_diag_fill()
308 } else if (icsk->icsk_pending == ICSK_TIME_PROBE0) { in inet_sk_diag_fill()
310 r->idiag_retrans = icsk->icsk_probes_out; in inet_sk_diag_fill()
312 jiffies_delta_to_msecs(icsk->icsk_timeout - jiffies); in inet_sk_diag_fill()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_tcp4.c64 inet_csk_in_pingpong_mode(const struct inet_connection_sock *icsk) in inet_csk_in_pingpong_mode() argument
66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
77 const struct inet_connection_sock *icsk; in dump_tcp_sock() local
88 icsk = &tp->inet_conn; in dump_tcp_sock()
89 inet = &icsk->icsk_inet; in dump_tcp_sock()
91 fastopenq = &icsk->icsk_accept_queue.fastopenq; in dump_tcp_sock()
98 if (icsk->icsk_pending == ICSK_TIME_RETRANS || in dump_tcp_sock()
99 icsk->icsk_pending == ICSK_TIME_REO_TIMEOUT || in dump_tcp_sock()
100 icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) { in dump_tcp_sock()
102 timer_expires = icsk->icsk_timeout; in dump_tcp_sock()
[all …]
Dbpf_iter_tcp6.c64 inet_csk_in_pingpong_mode(const struct inet_connection_sock *icsk) in inet_csk_in_pingpong_mode() argument
66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
77 const struct inet_connection_sock *icsk; in dump_tcp6_sock() local
88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
89 inet = &icsk->icsk_inet; in dump_tcp6_sock()
91 fastopenq = &icsk->icsk_accept_queue.fastopenq; in dump_tcp6_sock()
98 if (icsk->icsk_pending == ICSK_TIME_RETRANS || in dump_tcp6_sock()
99 icsk->icsk_pending == ICSK_TIME_REO_TIMEOUT || in dump_tcp6_sock()
100 icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) { in dump_tcp6_sock()
102 timer_expires = icsk->icsk_timeout; in dump_tcp6_sock()
[all …]
/linux-6.1.9/include/net/
Dinet_connection_sock.h196 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timer() local
199 icsk->icsk_pending = 0; in inet_csk_clear_xmit_timer()
201 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
204 icsk->icsk_ack.pending = 0; in inet_csk_clear_xmit_timer()
205 icsk->icsk_ack.retry = 0; in inet_csk_clear_xmit_timer()
207 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
221 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_reset_xmit_timer() local
231 icsk->icsk_pending = what; in inet_csk_reset_xmit_timer()
232 icsk->icsk_timeout = jiffies + when; in inet_csk_reset_xmit_timer()
233 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
[all …]
Despintcp.h35 struct inet_connection_sock *icsk = inet_csk(sk); in espintcp_getctx() local
38 return (__force void *)icsk->icsk_ulp_data; in espintcp_getctx()
Dtcp.h362 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_dec_quickack_mode() local
364 if (icsk->icsk_ack.quick) { in tcp_dec_quickack_mode()
365 if (pkts >= icsk->icsk_ack.quick) { in tcp_dec_quickack_mode()
366 icsk->icsk_ack.quick = 0; in tcp_dec_quickack_mode()
368 icsk->icsk_ack.ato = TCP_ATO_MIN; in tcp_dec_quickack_mode()
370 icsk->icsk_ack.quick -= pkts; in tcp_dec_quickack_mode()
1153 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_needs_ecn() local
1155 return icsk->icsk_ca_ops->flags & TCP_CONG_NEEDS_ECN; in tcp_ca_needs_ecn()
1160 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_event() local
1162 if (icsk->icsk_ca_ops->cwnd_event) in tcp_ca_event()
[all …]
/linux-6.1.9/net/mptcp/
Dtoken_test.c34 struct inet_connection_sock *icsk; in build_icsk() local
36 icsk = kunit_kzalloc(test, sizeof(struct inet_connection_sock), in build_icsk()
38 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, icsk); in build_icsk()
39 return icsk; in build_icsk()
65 struct inet_connection_sock *icsk = build_icsk(test); in mptcp_token_test_msk_basic() local
71 rcu_assign_pointer(icsk->icsk_ulp_data, ctx); in mptcp_token_test_msk_basic()
76 mptcp_token_new_connect((struct sock *)icsk)); in mptcp_token_test_msk_basic()
/linux-6.1.9/net/ipv6/
Dtcp_ipv6.c149 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_v6_connect() local
231 u32 exthdrlen = icsk->icsk_ext_hdr_len; in tcp_v6_connect()
242 WRITE_ONCE(icsk->icsk_af_ops, &ipv6_mapped); in tcp_v6_connect()
253 icsk->icsk_ext_hdr_len = exthdrlen; in tcp_v6_connect()
255 WRITE_ONCE(icsk->icsk_af_ops, &ipv6_specific); in tcp_v6_connect()
309 icsk->icsk_ext_hdr_len = 0; in tcp_v6_connect()
311 icsk->icsk_ext_hdr_len = opt->opt_flen + in tcp_v6_connect()
1944 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_v6_init_sock() local
1948 icsk->icsk_af_ops = &ipv6_specific; in tcp_v6_init_sock()
2005 const struct inet_connection_sock *icsk = inet_csk(sp); in get_tcp6_sock() local
[all …]
/linux-6.1.9/net/tls/
Dtls_toe.c48 struct inet_connection_sock *icsk = inet_csk(sk); in tls_toe_sk_destruct() local
53 rcu_assign_pointer(icsk->icsk_ulp_data, NULL); in tls_toe_sk_destruct()

12