Lines Matching refs:ack
2953 static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_cong_avoid() argument
2957 icsk->icsk_ca_ops->cong_avoid(sk, ack, acked); in tcp_cong_avoid()
3273 const u32 ack, const u32 ack_seq, in tcp_may_update_window() argument
3276 return after(ack, tp->snd_una) || in tcp_may_update_window()
3286 static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32 ack, in tcp_ack_update_window() argument
3296 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) { in tcp_ack_update_window()
3316 tp->snd_una = ack; in tcp_ack_update_window()
3369 static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag) in tcp_process_tlp_ack() argument
3372 bool is_tlp_dupack = (ack == tp->tlp_high_seq) && in tcp_process_tlp_ack()
3384 if (after(ack, tp->tlp_high_seq)) { in tcp_process_tlp_ack()
3413 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack() local
3427 if (before(ack, prior_snd_una)) { in tcp_ack()
3429 if (before(ack, prior_snd_una - tp->max_window)) { in tcp_ack()
3439 if (after(ack, tp->snd_nxt)) in tcp_ack()
3446 if (after(ack, prior_snd_una)) { in tcp_ack()
3459 if (!(flag & FLAG_SLOWPATH) && after(ack, prior_snd_una)) { in tcp_ack()
3465 tp->snd_una = ack; in tcp_ack()
3479 flag |= tcp_ack_update_window(sk, skb, ack, ack_seq); in tcp_ack()
3513 tcp_cong_avoid(sk, ack, acked); in tcp_ack()
3521 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3547 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3551 SOCK_DEBUG(sk, "Ack %u after %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3565 SOCK_DEBUG(sk, "Ack %u before %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3793 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack() local
3796 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
3799 ack == tp->snd_una && in tcp_disordered_ack()
3802 !tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) && in tcp_disordered_ack()
5257 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_established()
5390 if (th->ack) { in tcp_rcv_synsent_state_process()
5622 if (th->ack) in tcp_rcv_state_process()
5677 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_state_process()