Lines Matching refs:ack

39  *					next packet on ack of previous packet.
48 * Andi Kleen: Make sure we never ack data there is not
90 /* rfc5961 challenge ack rate limiting */
126 /* Adapt the MSS value used to make delayed ack decision to the
618 * behavior of the tp->ato delayed ack timeout interval. When a
619 * connection starts up, we want to ack as quickly as possible. The
2049 * max(RTT/4, 2msec) unless ack has ECE mark, no RTT samples
2953 static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 acked)
2957 icsk->icsk_ca_ops->cong_avoid(sk, ack, acked);
3052 * is before the ack sequence we can discard it as it's confirmed to have
3270 * The function assumes that snd_una<=ack<=snd_next.
3273 const u32 ack, const u32 ack_seq,
3276 return after(ack, tp->snd_una) ||
3286 static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32 ack,
3296 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) {
3316 tp->snd_una = ack;
3363 static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag)
3366 bool is_tlp_dupack = (ack == tp->tlp_high_seq) &&
3371 * ack is after tlp_high_seq.
3378 if (after(ack, tp->tlp_high_seq)) {
3407 u32 ack = TCP_SKB_CB(skb)->ack_seq;
3418 /* If the ack is older than previous acks
3421 if (before(ack, prior_snd_una)) {
3423 if (before(ack, prior_snd_una - tp->max_window)) {
3430 /* If the ack includes data we haven't sent yet, discard
3433 if (after(ack, tp->snd_nxt))
3440 if (after(ack, prior_snd_una)) {
3453 if (!(flag & FLAG_SLOWPATH) && after(ack, prior_snd_una)) {
3459 tp->snd_una = ack;
3473 flag |= tcp_ack_update_window(sk, skb, ack, ack_seq);
3507 tcp_cong_avoid(sk, ack, acked);
3515 tcp_process_tlp_ack(sk, ack, flag);
3533 /* If this ack opens up a zero window, clear backoff. It was
3541 tcp_process_tlp_ack(sk, ack, flag);
3545 SOCK_DEBUG(sk, "Ack %u after %u:%u\n", ack, tp->snd_una, tp->snd_nxt);
3559 SOCK_DEBUG(sk, "Ack %u before %u:%u\n", ack, tp->snd_una, tp->snd_nxt);
3787 u32 ack = TCP_SKB_CB(skb)->ack_seq;
3790 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) &&
3793 ack == tp->snd_una &&
3796 !tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) &&
3901 * happens, we must ack the received FIN and
4470 /* A retransmit, 2nd most common case. Force an immediate ack. */
4802 * Check if sending an ack is needed.
4818 /* Then ack it now */
4821 /* Else, send delayed ack. */
5034 * RFC 5691 4.2 : Send a challenge ack
5065 * or pure receivers (this means either the sequence number or the ack
5235 if (!th->ack && !th->rst && !th->syn)
5367 if (th->ack) {
5599 if (th->ack)
5654 if (!th->ack && !th->rst && !th->syn)
5708 * when new data has just been ack'ed.