Lines Matching refs:TCP_SKB_CB

328 		if (TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq)  in tcp_ecn_accept_cwr()
342 switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) { in __tcp_ecn_check_ce()
683 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
684 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss) { in tcp_rcv_rtt_measure_ts()
1072 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint()
1073 TCP_SKB_CB(tp->retransmit_skb_hint)->seq))) in tcp_verify_retransmit_hint()
1087 __u8 sacked = TCP_SKB_CB(skb)->sacked; in tcp_mark_skb_lost()
1097 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_mark_skb_lost()
1105 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_mark_skb_lost()
1258 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1304 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_match_skb_to_sack()
1305 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1308 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1310 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_match_skb_to_sack()
1313 pkt_len = start_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1317 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1411 before(start_seq, TCP_SKB_CB(tp->lost_skb_hint)->seq)) in tcp_sacktag_one()
1437 u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of newly-SACKed */ in tcp_shifted_skb()
1448 tcp_sacktag_one(sk, state, TCP_SKB_CB(skb)->sacked, in tcp_shifted_skb()
1456 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1457 TCP_SKB_CB(skb)->seq += shifted; in tcp_shifted_skb()
1468 if (!TCP_SKB_CB(prev)->tcp_gso_size) in tcp_shifted_skb()
1469 TCP_SKB_CB(prev)->tcp_gso_size = mss; in tcp_shifted_skb()
1473 TCP_SKB_CB(skb)->tcp_gso_size = 0; in tcp_shifted_skb()
1476 TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS); in tcp_shifted_skb()
1493 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1494 TCP_SKB_CB(prev)->eor = TCP_SKB_CB(skb)->eor; in tcp_shifted_skb()
1495 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
1496 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1502 if (unlikely(TCP_SKB_CB(prev)->tx.delivered_mstamp)) in tcp_shifted_skb()
1503 TCP_SKB_CB(prev)->tx.delivered_mstamp = 0; in tcp_shifted_skb()
1558 (TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_RETRANS)) == TCPCB_SACKED_RETRANS) in tcp_shift_skb_data()
1563 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1571 if ((TCP_SKB_CB(prev)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) in tcp_shift_skb_data()
1577 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_shift_skb_data()
1578 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1591 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1600 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_shift_skb_data()
1616 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1643 if (!after(TCP_SKB_CB(skb)->seq + len, tp->snd_una)) in tcp_shift_skb_data()
1659 ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) || in tcp_shift_skb_data()
1696 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1700 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1733 TCP_SKB_CB(skb)->sacked = in tcp_sacktag_walk()
1736 TCP_SKB_CB(skb)->sacked, in tcp_sacktag_walk()
1737 TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1738 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1743 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_sacktag_walk()
1746 if (!before(TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1762 if (before(seq, TCP_SKB_CB(skb)->seq)) { in tcp_sacktag_bsearch()
1766 if (!before(seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_sacktag_bsearch()
1778 if (skb && after(TCP_SKB_CB(skb)->seq, skip_to_seq)) in tcp_sacktag_skip()
1814 TCP_SKB_CB(ack_skb)->sacked); in tcp_sacktag_write_queue()
1838 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1864 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
2113 is_reneg = head && (TCP_SKB_CB(head)->sacked & TCPCB_SACKED_ACKED); in tcp_timeout_mark_lost()
2126 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_ACKED; in tcp_timeout_mark_lost()
2353 if (mark_head && after(TCP_SKB_CB(skb)->seq, tp->snd_una)) in tcp_mark_head_lost()
2367 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
2370 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_mark_head_lost()
2376 if (!(TCP_SKB_CB(skb)->sacked & TCPCB_LOST)) in tcp_mark_head_lost()
2412 return (TCP_SKB_CB(skb)->sacked & TCPCB_RETRANS) && in tcp_skb_spurious_retrans()
2450 if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) in tcp_any_retrans_done()
2491 TCP_SKB_CB(skb)->sacked &= ~TCPCB_LOST; in tcp_undo_cwnd_reduction()
3201 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3204 if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq)) in tcp_tso_acked()
3210 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3222 if (likely(!TCP_SKB_CB(skb)->txstamp_ack)) in tcp_ack_tstamp()
3259 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_clean_rtx_queue()
3345 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_clean_rtx_queue()
3453 if (!after(TCP_SKB_CB(head)->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3619 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3768 u32 ack_seq = TCP_SKB_CB(skb)->seq; in tcp_ack()
3769 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack()
3821 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); in tcp_ack()
3839 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
3846 if (TCP_SKB_CB(skb)->sacked) in tcp_ack()
3940 if (TCP_SKB_CB(skb)->sacked) { in tcp_ack()
4114 TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; in tcp_parse_options()
4267 u32 seq = TCP_SKB_CB(skb)->seq; in tcp_disordered_ack()
4268 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack()
4271 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4477 if (TCP_SKB_CB(skb)->seq == tcp_sk(sk)->duplicate_sack[0].start_seq && in tcp_rcv_spurious_retrans()
4486 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4487 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack()
4492 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack()
4495 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4497 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4664 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4681 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4682 TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq; in tcp_try_coalesce()
4683 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4685 if (TCP_SKB_CB(from)->has_rxtstamp) { in tcp_try_coalesce()
4686 TCP_SKB_CB(to)->has_rxtstamp = true; in tcp_try_coalesce()
4732 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_ofo_queue()
4735 if (before(TCP_SKB_CB(skb)->seq, dsack_high)) { in tcp_ofo_queue()
4737 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4738 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4739 tcp_dsack_extend(sk, TCP_SKB_CB(skb)->seq, dsack); in tcp_ofo_queue()
4744 if (unlikely(!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))) { in tcp_ofo_queue()
4751 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4752 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_ofo_queue()
4811 seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4812 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4844 if (!before(seq, TCP_SKB_CB(tp->ooo_last_skb)->end_seq)) { in tcp_data_queue_ofo()
4855 if (before(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4859 if (before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4860 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4870 if (after(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4872 tcp_dsack_set(sk, seq, TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4880 TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4881 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4902 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
4904 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4905 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4910 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4911 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4943 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
4986 TCP_SKB_CB(skb)->seq = tcp_sk(sk)->rcv_nxt; in tcp_send_rcvq()
4987 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
4988 TCP_SKB_CB(skb)->ack_seq = tcp_sk(sk)->snd_una - 1; in tcp_send_rcvq()
5024 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_data_queue()
5038 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) { in tcp_data_queue()
5059 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
5084 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
5089 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
5100 if (!before(TCP_SKB_CB(skb)->seq, in tcp_data_queue()
5106 if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_data_queue()
5108 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, tp->rcv_nxt); in tcp_data_queue()
5159 if (before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb1)->seq)) in tcp_rbtree_insert()
5192 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5204 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
5206 before(TCP_SKB_CB(skb)->seq, start))) { in tcp_collapse()
5212 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(n)->seq) { in tcp_collapse()
5218 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
5221 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5238 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
5248 int offset = start - TCP_SKB_CB(skb)->seq; in tcp_collapse()
5249 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
5256 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
5260 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5265 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5295 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5296 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5306 after(TCP_SKB_CB(skb)->seq, end) || in tcp_collapse_ofo_queue()
5307 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
5322 if (unlikely(before(TCP_SKB_CB(skb)->seq, start))) in tcp_collapse_ofo_queue()
5323 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5324 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
5325 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5359 if (after(TCP_SKB_CB(in_skb)->seq, TCP_SKB_CB(skb)->seq)) in tcp_prune_ofo_queue()
5647 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5698 return unlikely(TCP_SKB_CB(skb)->seq == (tp->rcv_nxt - 1) && in tcp_reset_check()
5729 if (!tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_validate_incoming()
5761 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt || in tcp_validate_incoming()
5777 if (TCP_SKB_CB(skb)->seq == max_sack) in tcp_validate_incoming()
5885 TCP_SKB_CB(skb)->seq == tp->rcv_nxt && in tcp_rcv_established()
5886 !after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_established()
5970 if (TCP_SKB_CB(skb)->ack_seq != tp->snd_una) { in tcp_rcv_established()
5977 tcp_update_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_established()
6203 if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) || in tcp_rcv_synsent_state_process()
6204 after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_synsent_state_process()
6256 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_synsent_state_process()
6263 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6264 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6363 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6365 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6371 tp->snd_wl1 = TCP_SKB_CB(skb)->seq; in tcp_rcv_synsent_state_process()
6573 tp->snd_una = TCP_SKB_CB(skb)->ack_seq; in tcp_rcv_state_process()
6575 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_state_process()
6615 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6616 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6667 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_rcv_state_process()
6683 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6684 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6760 ect = !INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield); in tcp_ecn_create_request()
6777 tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; in tcp_openreq_init()
6778 tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_openreq_init()
6927 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn; in tcp_conn_request()
7025 tcp_rsk(req)->syn_tos = TCP_SKB_CB(skb)->ip_dsfield; in tcp_conn_request()