Lines Matching refs:ack

2955 static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)  in tcp_cong_avoid()  argument
2959 icsk->icsk_ca_ops->cong_avoid(sk, ack, acked); in tcp_cong_avoid()
3276 const u32 ack, const u32 ack_seq, in tcp_may_update_window() argument
3279 return after(ack, tp->snd_una) || in tcp_may_update_window()
3285 static void tcp_snd_una_update(struct tcp_sock *tp, u32 ack) in tcp_snd_una_update() argument
3287 u32 delta = ack - tp->snd_una; in tcp_snd_una_update()
3292 tp->snd_una = ack; in tcp_snd_una_update()
3311 static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32 ack, in tcp_ack_update_window() argument
3321 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) { in tcp_ack_update_window()
3341 tcp_snd_una_update(tp, ack); in tcp_ack_update_window()
3429 static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag) in tcp_process_tlp_ack() argument
3433 if (before(ack, tp->tlp_high_seq)) in tcp_process_tlp_ack()
3439 } else if (after(ack, tp->tlp_high_seq)) { in tcp_process_tlp_ack()
3471 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack() local
3485 if (before(ack, prior_snd_una)) { in tcp_ack()
3487 if (before(ack, prior_snd_una - tp->max_window)) { in tcp_ack()
3497 if (after(ack, tp->snd_nxt)) in tcp_ack()
3504 if (after(ack, prior_snd_una)) { in tcp_ack()
3517 if (!(flag & FLAG_SLOWPATH) && after(ack, prior_snd_una)) { in tcp_ack()
3523 tcp_snd_una_update(tp, ack); in tcp_ack()
3537 flag |= tcp_ack_update_window(sk, skb, ack, ack_seq); in tcp_ack()
3571 tcp_cong_avoid(sk, ack, acked); in tcp_ack()
3579 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3605 tcp_process_tlp_ack(sk, ack, flag); in tcp_ack()
3609 SOCK_DEBUG(sk, "Ack %u after %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3623 SOCK_DEBUG(sk, "Ack %u before %u:%u\n", ack, tp->snd_una, tp->snd_nxt); in tcp_ack()
3869 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack() local
3872 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
3875 ack == tp->snd_una && in tcp_disordered_ack()
3878 !tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) && in tcp_disordered_ack()
5340 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_established()
5481 if (th->ack) { in tcp_rcv_synsent_state_process()
5714 if (th->ack) in tcp_rcv_state_process()
5769 if (!th->ack && !th->rst && !th->syn) in tcp_rcv_state_process()