Lines Matching refs:end_seq
349 if (TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) in tcp_ecn_accept_cwr()
722 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
1031 u32 end_seq, struct tcp_sacktag_state *state) in tcp_dsack_seen() argument
1035 if (!before(start_seq, end_seq)) in tcp_dsack_seen()
1038 seq_len = end_seq - start_seq; in tcp_dsack_seen()
1044 else if (tp->tlp_high_seq && tp->tlp_high_seq == end_seq) in tcp_dsack_seen()
1254 u32 start_seq, u32 end_seq) in tcp_is_sackblock_valid() argument
1257 if (after(end_seq, tp->snd_nxt) || !before(start_seq, end_seq)) in tcp_is_sackblock_valid()
1274 if (after(end_seq, tp->snd_una)) in tcp_is_sackblock_valid()
1281 if (!after(end_seq, tp->undo_marker)) in tcp_is_sackblock_valid()
1287 return !before(start_seq, end_seq - tp->max_window); in tcp_is_sackblock_valid()
1296 u32 end_seq_0 = get_unaligned_be32(&sp[0].end_seq); in tcp_check_dsack()
1302 u32 end_seq_1 = get_unaligned_be32(&sp[1].end_seq); in tcp_check_dsack()
1338 u32 start_seq, u32 end_seq) in tcp_match_skb_to_sack() argument
1346 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1349 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1358 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1388 u32 start_seq, u32 end_seq, in tcp_sacktag_one() argument
1397 after(end_seq, tp->undo_marker)) in tcp_sacktag_one()
1405 if (!after(end_seq, tp->snd_una)) in tcp_sacktag_one()
1409 tcp_rack_advance(tp, sacked, end_seq, xmit_time); in tcp_sacktag_one()
1431 if (!after(end_seq, tp->high_seq)) in tcp_sacktag_one()
1479 u32 end_seq = start_seq + shifted; /* end of newly-SACKed */ in tcp_shifted_skb() local
1490 start_seq, end_seq, dup_sack, pcount, in tcp_shifted_skb()
1497 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1537 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1587 u32 start_seq, u32 end_seq, in tcp_shift_skb_data() argument
1604 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1619 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1632 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1657 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1726 u32 start_seq, u32 end_seq, in tcp_sacktag_walk() argument
1737 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1741 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1744 next_dup->end_seq); in tcp_sacktag_walk()
1755 start_seq, end_seq, dup_sack); in tcp_sacktag_walk()
1766 end_seq); in tcp_sacktag_walk()
1779 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1807 if (!before(seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_sacktag_bsearch()
1837 next_dup->start_seq, next_dup->end_seq, in tcp_maybe_skipping_dsack()
1891 sp[used_sacks].end_seq = get_unaligned_be32(&sp_wire[i].end_seq); in tcp_sacktag_write_queue()
1895 sp[used_sacks].end_seq)) { in tcp_sacktag_write_queue()
1906 !after(sp[used_sacks].end_seq, tp->snd_una)) in tcp_sacktag_write_queue()
1918 if (!after(sp[used_sacks].end_seq, prior_snd_una)) { in tcp_sacktag_write_queue()
1951 !cache->end_seq) in tcp_sacktag_write_queue()
1957 u32 end_seq = sp[i].end_seq; in tcp_sacktag_write_queue() local
1966 !before(start_seq, cache->end_seq)) in tcp_sacktag_write_queue()
1971 after(end_seq, cache->start_seq)) { in tcp_sacktag_write_queue()
1984 if (!after(end_seq, cache->end_seq)) in tcp_sacktag_write_queue()
1989 cache->end_seq); in tcp_sacktag_write_queue()
1992 if (tcp_highest_sack_seq(tp) == cache->end_seq) { in tcp_sacktag_write_queue()
2001 skb = tcp_sacktag_skip(skb, sk, cache->end_seq); in tcp_sacktag_write_queue()
2016 start_seq, end_seq, dup_sack); in tcp_sacktag_write_queue()
2025 tp->recv_sack_cache[i].end_seq = 0; in tcp_sacktag_write_queue()
2422 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
3303 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3312 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3367 if (after(scb->end_seq, tp->snd_una)) { in tcp_clean_rtx_queue()
3392 if (!after(scb->end_seq, tp->high_seq)) in tcp_clean_rtx_queue()
3401 tcp_rack_advance(tp, sacked, scb->end_seq, in tcp_clean_rtx_queue()
3555 if (!after(TCP_SKB_CB(head)->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3763 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3987 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
4461 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4497 u32 seq, u32 end_seq) in tcp_sequence() argument
4499 if (before(end_seq, tp->rcv_wup)) in tcp_sequence()
4635 u32 end_seq) in tcp_sack_extend() argument
4637 if (!after(seq, sp->end_seq) && !after(sp->start_seq, end_seq)) { in tcp_sack_extend()
4640 if (after(end_seq, sp->end_seq)) in tcp_sack_extend()
4641 sp->end_seq = end_seq; in tcp_sack_extend()
4647 static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq) in tcp_dsack_set() argument
4663 tp->duplicate_sack[0].end_seq = end_seq; in tcp_dsack_set()
4667 static void tcp_dsack_extend(struct sock *sk, u32 seq, u32 end_seq) in tcp_dsack_extend() argument
4672 tcp_dsack_set(sk, seq, end_seq); in tcp_dsack_extend()
4674 tcp_sack_extend(tp->duplicate_sack, seq, end_seq); in tcp_dsack_extend()
4704 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4710 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack() local
4713 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4714 end_seq = tp->rcv_nxt; in tcp_send_dupack()
4715 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4735 if (tcp_sack_extend(sp, swalk->start_seq, swalk->end_seq)) { in tcp_sack_maybe_coalesce()
4778 static void tcp_sack_new_ofo_skb(struct sock *sk, u32 seq, u32 end_seq) in tcp_sack_new_ofo_skb() argument
4789 if (tcp_sack_extend(sp, seq, end_seq)) { in tcp_sack_new_ofo_skb()
4821 sp->end_seq = end_seq; in tcp_sack_new_ofo_skb()
4845 WARN_ON(before(tp->rcv_nxt, sp->end_seq)); in tcp_sack_remove()
4882 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4894 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4950 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4951 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4957 if (unlikely(!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))) { in tcp_ofo_queue()
4964 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
5006 u32 seq, end_seq; in tcp_data_queue_ofo() local
5026 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
5034 tp->selective_acks[0].end_seq = end_seq; in tcp_data_queue_ofo()
5058 if (!before(seq, TCP_SKB_CB(tp->ooo_last_skb)->end_seq)) { in tcp_data_queue_ofo()
5073 if (before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
5074 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
5081 tcp_dsack_set(sk, seq, end_seq); in tcp_data_queue_ofo()
5086 tcp_dsack_set(sk, seq, TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
5095 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
5116 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
5118 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
5120 end_seq); in tcp_data_queue_ofo()
5125 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
5135 tcp_sack_new_ofo_skb(sk, seq, end_seq); in tcp_data_queue_ofo()
5157 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
5201 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
5238 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_data_queue()
5314 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
5319 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
5425 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5446 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(n)->seq) { in tcp_collapse()
5453 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
5472 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
5483 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
5490 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
5494 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5527 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5538 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
5555 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
5556 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5886 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5970 reason = tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_validate_incoming()
6008 int max_sack = sp[0].end_seq; in tcp_validate_incoming()
6013 max_sack = after(sp[this_sack].end_seq, in tcp_validate_incoming()
6015 sp[this_sack].end_seq : max_sack; in tcp_validate_incoming()
6041 TCP_SKB_CB(skb)->seq + 1 == TCP_SKB_CB(skb)->end_seq && in tcp_validate_incoming()
6895 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6896 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6963 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6964 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()