Lines Matching refs:ack
2995 static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_cong_avoid() argument
2999 icsk->icsk_ca_ops->cong_avoid(sk, ack, acked); in tcp_cong_avoid()
3320 const u32 ack, const u32 ack_seq, in tcp_may_update_window() argument
3323 return after(ack, tp->snd_una) || in tcp_may_update_window()
3329 static void tcp_snd_una_update(struct tcp_sock *tp, u32 ack) in tcp_snd_una_update() argument
3331 u32 delta = ack - tp->snd_una; in tcp_snd_una_update()
3336 tp->snd_una = ack; in tcp_snd_una_update()
3355 static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32 ack, in tcp_ack_update_window() argument
3365 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) { in tcp_ack_update_window()
3388 tcp_snd_una_update(tp, ack); in tcp_ack_update_window()
3476 static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag) in tcp_process_tlp_ack() argument
3480 if (before(ack, tp->tlp_high_seq)) in tcp_process_tlp_ack()
3486 } else if (after(ack, tp->tlp_high_seq)) { in tcp_process_tlp_ack()
3519 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack() local
3534 if (before(ack, prior_snd_una)) { in tcp_ack()
3536 if (before(ack, prior_snd_una - tp->max_window)) { in tcp_ack()
3546 if (after(ack, tp->snd_nxt)) in tcp_ack()
3553 if (after(ack, prior_snd_una)) { in tcp_ack()
3566 if (!(flag & FLAG_SLOWPATH) && after(ack, prior_snd_una)) { in tcp_ack()
3572 tcp_snd_una_update(tp, ack); in tcp_ack()
3586 flag |= tcp_ack_update_window(sk, skb, ack, ack_seq); in tcp_ack()
3624 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3628 tcp_cong_avoid(sk, ack, acked); in tcp_ack()
3654 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3658 SOCK_DEBUG(sk, "Ack %u after %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3672 SOCK_DEBUG(sk, "Ack %u before %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3918 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack() local
3921 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
3924 ack == tp->snd_una && in tcp_disordered_ack()
3927 !tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) && in tcp_disordered_ack()
5388 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_established()
5529 if (th->ack) { in tcp_rcv_synsent_state_process()
5761 if (th->ack) in tcp_rcv_state_process()
5816 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_state_process()