Lines Matching +full:ulp +full:- +full:0
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
56 /** inet_connection_sock - INET connection oriented sock
66 * @icsk_ulp_ops Pluggable ULP control hook
67 * @icsk_ulp_data ULP private data
75 * @icsk_probes_out: unanswered 0 window probes
79 * @icsk_probes_tstamp: Probe timestamp (cleared by non-zero window ack)
154 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
177 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
182 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
187 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
198 icsk->icsk_pending = 0; in inet_csk_clear_xmit_timer()
200 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
203 icsk->icsk_ack.pending = 0; in inet_csk_clear_xmit_timer()
204 icsk->icsk_ack.retry = 0; in inet_csk_clear_xmit_timer()
206 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
223 pr_debug("reset_xmit_timer: sk=%p %d when=0x%lx, caller=%p\n", in inet_csk_reset_xmit_timer()
230 icsk->icsk_pending = what; in inet_csk_reset_xmit_timer()
231 icsk->icsk_timeout = jiffies + when; in inet_csk_reset_xmit_timer()
232 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
234 icsk->icsk_ack.pending |= ICSK_ACK_TIMER; in inet_csk_reset_xmit_timer()
235 icsk->icsk_ack.timeout = jiffies + when; in inet_csk_reset_xmit_timer()
236 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in inet_csk_reset_xmit_timer()
246 u64 when = (u64)icsk->icsk_rto << icsk->icsk_backoff; in inet_csk_rto_backoff()
272 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
277 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
282 return inet_csk_reqsk_queue_len(sk) >= sk->sk_max_ack_backlog; in inet_csk_reqsk_queue_is_full()
292 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_prepare_for_destroy_sock()
303 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
304 (EPOLLIN | EPOLLRDNORM) : 0; in inet_csk_listen_poll()
322 inet_csk(sk)->icsk_ack.pingpong = TCP_PINGPONG_THRESH; in inet_csk_enter_pingpong_mode()
327 inet_csk(sk)->icsk_ack.pingpong = 0; in inet_csk_exit_pingpong_mode()
332 return inet_csk(sk)->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
339 if (icsk->icsk_ack.pingpong < U8_MAX) in inet_csk_inc_pingpong_cnt()
340 icsk->icsk_ack.pingpong++; in inet_csk_inc_pingpong_cnt()
345 return inet_sk(sk)->is_icsk && !!inet_csk(sk)->icsk_ulp_ops; in inet_csk_has_ulp()