Lines Matching refs:TCP_SKB_CB
267 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_PSH) in tcp_measure_rcv_mss()
350 if (TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) in tcp_ecn_accept_cwr()
364 switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) { in __tcp_ecn_check_ce()
705 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
706 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss) { in tcp_rcv_rtt_measure_ts()
1089 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint()
1090 TCP_SKB_CB(tp->retransmit_skb_hint)->seq))) in tcp_verify_retransmit_hint()
1104 __u8 sacked = TCP_SKB_CB(skb)->sacked; in tcp_mark_skb_lost()
1114 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_mark_skb_lost()
1122 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_mark_skb_lost()
1275 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1321 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_match_skb_to_sack()
1322 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1325 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1327 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_match_skb_to_sack()
1330 pkt_len = start_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1334 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1428 before(start_seq, TCP_SKB_CB(tp->lost_skb_hint)->seq)) in tcp_sacktag_one()
1454 u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of newly-SACKed */ in tcp_shifted_skb()
1465 tcp_sacktag_one(sk, state, TCP_SKB_CB(skb)->sacked, in tcp_shifted_skb()
1473 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1474 TCP_SKB_CB(skb)->seq += shifted; in tcp_shifted_skb()
1485 if (!TCP_SKB_CB(prev)->tcp_gso_size) in tcp_shifted_skb()
1486 TCP_SKB_CB(prev)->tcp_gso_size = mss; in tcp_shifted_skb()
1490 TCP_SKB_CB(skb)->tcp_gso_size = 0; in tcp_shifted_skb()
1493 TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS); in tcp_shifted_skb()
1510 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1511 TCP_SKB_CB(prev)->eor = TCP_SKB_CB(skb)->eor; in tcp_shifted_skb()
1512 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
1513 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1519 if (unlikely(TCP_SKB_CB(prev)->tx.delivered_mstamp)) in tcp_shifted_skb()
1520 TCP_SKB_CB(prev)->tx.delivered_mstamp = 0; in tcp_shifted_skb()
1575 (TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_RETRANS)) == TCPCB_SACKED_RETRANS) in tcp_shift_skb_data()
1580 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1588 if ((TCP_SKB_CB(prev)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) in tcp_shift_skb_data()
1594 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_shift_skb_data()
1595 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1608 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1617 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_shift_skb_data()
1633 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1660 if (!after(TCP_SKB_CB(skb)->seq + len, tp->snd_una)) in tcp_shift_skb_data()
1676 ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) || in tcp_shift_skb_data()
1713 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1717 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1750 TCP_SKB_CB(skb)->sacked = in tcp_sacktag_walk()
1753 TCP_SKB_CB(skb)->sacked, in tcp_sacktag_walk()
1754 TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1755 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1760 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_sacktag_walk()
1763 if (!before(TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1779 if (before(seq, TCP_SKB_CB(skb)->seq)) { in tcp_sacktag_bsearch()
1783 if (!before(seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_sacktag_bsearch()
1795 if (skb && after(TCP_SKB_CB(skb)->seq, skip_to_seq)) in tcp_sacktag_skip()
1831 TCP_SKB_CB(ack_skb)->sacked); in tcp_sacktag_write_queue()
1855 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1881 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
2130 is_reneg = head && (TCP_SKB_CB(head)->sacked & TCPCB_SACKED_ACKED); in tcp_timeout_mark_lost()
2143 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_ACKED; in tcp_timeout_mark_lost()
2371 if (mark_head && after(TCP_SKB_CB(skb)->seq, tp->snd_una)) in tcp_mark_head_lost()
2385 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
2388 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_mark_head_lost()
2394 if (!(TCP_SKB_CB(skb)->sacked & TCPCB_LOST)) in tcp_mark_head_lost()
2430 return (TCP_SKB_CB(skb)->sacked & TCPCB_RETRANS) && in tcp_skb_spurious_retrans()
2468 if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) in tcp_any_retrans_done()
2509 TCP_SKB_CB(skb)->sacked &= ~TCPCB_LOST; in tcp_undo_cwnd_reduction()
3219 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3222 if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq)) in tcp_tso_acked()
3228 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3240 if (likely(!TCP_SKB_CB(skb)->txstamp_ack)) in tcp_ack_tstamp()
3277 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_clean_rtx_queue()
3363 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_clean_rtx_queue()
3471 if (!after(TCP_SKB_CB(head)->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3643 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3792 u32 ack_seq = TCP_SKB_CB(skb)->seq; in tcp_ack()
3793 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack()
3845 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); in tcp_ack()
3863 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
3870 if (TCP_SKB_CB(skb)->sacked) in tcp_ack()
3964 if (TCP_SKB_CB(skb)->sacked) { in tcp_ack()
4138 TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; in tcp_parse_options()
4290 u32 seq = TCP_SKB_CB(skb)->seq; in tcp_disordered_ack()
4291 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack()
4294 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4506 if (TCP_SKB_CB(skb)->seq == tcp_sk(sk)->duplicate_sack[0].start_seq && in tcp_rcv_spurious_retrans()
4515 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4516 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack()
4521 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack()
4524 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4526 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4693 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4710 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4711 TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq; in tcp_try_coalesce()
4712 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4714 if (TCP_SKB_CB(from)->has_rxtstamp) { in tcp_try_coalesce()
4715 TCP_SKB_CB(to)->has_rxtstamp = true; in tcp_try_coalesce()
4761 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_ofo_queue()
4764 if (before(TCP_SKB_CB(skb)->seq, dsack_high)) { in tcp_ofo_queue()
4766 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4767 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4768 tcp_dsack_extend(sk, TCP_SKB_CB(skb)->seq, dsack); in tcp_ofo_queue()
4773 if (unlikely(!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))) { in tcp_ofo_queue()
4780 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4781 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_ofo_queue()
4840 seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4841 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4873 if (!before(seq, TCP_SKB_CB(tp->ooo_last_skb)->end_seq)) { in tcp_data_queue_ofo()
4884 if (before(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4888 if (before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4889 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4899 if (after(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4901 tcp_dsack_set(sk, seq, TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4909 TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4910 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4931 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
4933 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4934 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4939 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4940 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4972 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
5015 TCP_SKB_CB(skb)->seq = tcp_sk(sk)->rcv_nxt; in tcp_send_rcvq()
5016 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
5017 TCP_SKB_CB(skb)->ack_seq = tcp_sk(sk)->snd_una - 1; in tcp_send_rcvq()
5053 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_data_queue()
5067 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) { in tcp_data_queue()
5094 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
5119 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
5124 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
5135 if (!before(TCP_SKB_CB(skb)->seq, in tcp_data_queue()
5141 if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_data_queue()
5143 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, tp->rcv_nxt); in tcp_data_queue()
5194 if (before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb1)->seq)) in tcp_rbtree_insert()
5227 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5239 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
5241 before(TCP_SKB_CB(skb)->seq, start))) { in tcp_collapse()
5247 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(n)->seq) { in tcp_collapse()
5253 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
5256 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5273 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
5283 int offset = start - TCP_SKB_CB(skb)->seq; in tcp_collapse()
5284 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
5291 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
5295 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5300 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5330 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5331 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5341 after(TCP_SKB_CB(skb)->seq, end) || in tcp_collapse_ofo_queue()
5342 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
5357 if (unlikely(before(TCP_SKB_CB(skb)->seq, start))) in tcp_collapse_ofo_queue()
5358 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5359 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
5360 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5394 if (after(TCP_SKB_CB(in_skb)->seq, TCP_SKB_CB(skb)->seq)) in tcp_prune_ofo_queue()
5682 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5733 return unlikely(TCP_SKB_CB(skb)->seq == (tp->rcv_nxt - 1) && in tcp_reset_check()
5766 reason = tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_validate_incoming()
5798 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt || in tcp_validate_incoming()
5814 if (TCP_SKB_CB(skb)->seq == max_sack) in tcp_validate_incoming()
5922 TCP_SKB_CB(skb)->seq == tp->rcv_nxt && in tcp_rcv_established()
5923 !after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_established()
6007 if (TCP_SKB_CB(skb)->ack_seq != tp->snd_una) { in tcp_rcv_established()
6014 tcp_update_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_established()
6240 if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) || in tcp_rcv_synsent_state_process()
6241 after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_synsent_state_process()
6293 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_synsent_state_process()
6300 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6301 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6400 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6402 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6408 tp->snd_wl1 = TCP_SKB_CB(skb)->seq; in tcp_rcv_synsent_state_process()
6610 tp->snd_una = TCP_SKB_CB(skb)->ack_seq; in tcp_rcv_state_process()
6612 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_state_process()
6652 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6653 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6704 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_rcv_state_process()
6720 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6721 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6797 ect = !INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield); in tcp_ecn_create_request()
6814 tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; in tcp_openreq_init()
6815 tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_openreq_init()
6964 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn; in tcp_conn_request()
7062 tcp_rsk(req)->syn_tos = TCP_SKB_CB(skb)->ip_dsfield; in tcp_conn_request()