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()
675 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
676 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss) { in tcp_rcv_rtt_measure_ts()
1056 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint()
1057 TCP_SKB_CB(tp->retransmit_skb_hint)->seq))) in tcp_verify_retransmit_hint()
1071 __u8 sacked = TCP_SKB_CB(skb)->sacked; in tcp_mark_skb_lost()
1081 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_mark_skb_lost()
1089 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_mark_skb_lost()
1242 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1288 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_match_skb_to_sack()
1289 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1292 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1294 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_match_skb_to_sack()
1297 pkt_len = start_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1301 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1395 before(start_seq, TCP_SKB_CB(tp->lost_skb_hint)->seq)) in tcp_sacktag_one()
1421 u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of newly-SACKed */ in tcp_shifted_skb()
1432 tcp_sacktag_one(sk, state, TCP_SKB_CB(skb)->sacked, in tcp_shifted_skb()
1440 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1441 TCP_SKB_CB(skb)->seq += shifted; in tcp_shifted_skb()
1452 if (!TCP_SKB_CB(prev)->tcp_gso_size) in tcp_shifted_skb()
1453 TCP_SKB_CB(prev)->tcp_gso_size = mss; in tcp_shifted_skb()
1457 TCP_SKB_CB(skb)->tcp_gso_size = 0; in tcp_shifted_skb()
1460 TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS); in tcp_shifted_skb()
1477 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1478 TCP_SKB_CB(prev)->eor = TCP_SKB_CB(skb)->eor; in tcp_shifted_skb()
1479 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
1480 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1486 if (unlikely(TCP_SKB_CB(prev)->tx.delivered_mstamp)) in tcp_shifted_skb()
1487 TCP_SKB_CB(prev)->tx.delivered_mstamp = 0; in tcp_shifted_skb()
1542 (TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_RETRANS)) == TCPCB_SACKED_RETRANS) in tcp_shift_skb_data()
1547 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1555 if ((TCP_SKB_CB(prev)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) in tcp_shift_skb_data()
1561 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_shift_skb_data()
1562 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1575 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1584 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_shift_skb_data()
1600 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1627 if (!after(TCP_SKB_CB(skb)->seq + len, tp->snd_una)) in tcp_shift_skb_data()
1643 ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) || in tcp_shift_skb_data()
1680 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1684 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1717 TCP_SKB_CB(skb)->sacked = in tcp_sacktag_walk()
1720 TCP_SKB_CB(skb)->sacked, in tcp_sacktag_walk()
1721 TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1722 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1727 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_sacktag_walk()
1730 if (!before(TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1746 if (before(seq, TCP_SKB_CB(skb)->seq)) { in tcp_sacktag_bsearch()
1750 if (!before(seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_sacktag_bsearch()
1762 if (skb && after(TCP_SKB_CB(skb)->seq, skip_to_seq)) in tcp_sacktag_skip()
1798 TCP_SKB_CB(ack_skb)->sacked); in tcp_sacktag_write_queue()
1822 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1848 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
2097 is_reneg = head && (TCP_SKB_CB(head)->sacked & TCPCB_SACKED_ACKED); in tcp_timeout_mark_lost()
2110 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_ACKED; in tcp_timeout_mark_lost()
2337 if (mark_head && after(TCP_SKB_CB(skb)->seq, tp->snd_una)) in tcp_mark_head_lost()
2351 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
2354 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_mark_head_lost()
2360 if (!(TCP_SKB_CB(skb)->sacked & TCPCB_LOST)) in tcp_mark_head_lost()
2396 return (TCP_SKB_CB(skb)->sacked & TCPCB_RETRANS) && in tcp_skb_spurious_retrans()
2434 if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) in tcp_any_retrans_done()
2475 TCP_SKB_CB(skb)->sacked &= ~TCPCB_LOST; in tcp_undo_cwnd_reduction()
3171 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3174 if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq)) in tcp_tso_acked()
3180 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3192 if (likely(!TCP_SKB_CB(skb)->txstamp_ack)) in tcp_ack_tstamp()
3230 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_clean_rtx_queue()
3259 last_in_flight = TCP_SKB_CB(skb)->tx.in_flight; in tcp_clean_rtx_queue()
3317 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_clean_rtx_queue()
3424 if (!after(TCP_SKB_CB(head)->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3590 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3737 u32 ack_seq = TCP_SKB_CB(skb)->seq; in tcp_ack()
3738 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack()
3790 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); in tcp_ack()
3808 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
3815 if (TCP_SKB_CB(skb)->sacked) in tcp_ack()
3909 if (TCP_SKB_CB(skb)->sacked) { in tcp_ack()
4082 TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; in tcp_parse_options()
4235 u32 seq = TCP_SKB_CB(skb)->seq; in tcp_disordered_ack()
4236 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack()
4239 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4440 if (TCP_SKB_CB(skb)->seq == tcp_sk(sk)->duplicate_sack[0].start_seq && in tcp_rcv_spurious_retrans()
4449 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4450 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack()
4455 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack()
4458 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4460 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4627 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4644 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4645 TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq; in tcp_try_coalesce()
4646 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4648 if (TCP_SKB_CB(from)->has_rxtstamp) { in tcp_try_coalesce()
4649 TCP_SKB_CB(to)->has_rxtstamp = true; in tcp_try_coalesce()
4695 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_ofo_queue()
4698 if (before(TCP_SKB_CB(skb)->seq, dsack_high)) { in tcp_ofo_queue()
4700 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4701 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4702 tcp_dsack_extend(sk, TCP_SKB_CB(skb)->seq, dsack); in tcp_ofo_queue()
4707 if (unlikely(!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))) { in tcp_ofo_queue()
4714 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4715 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_ofo_queue()
4774 seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4775 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4807 if (!before(seq, TCP_SKB_CB(tp->ooo_last_skb)->end_seq)) { in tcp_data_queue_ofo()
4818 if (before(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4822 if (before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4823 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4832 if (after(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4834 tcp_dsack_set(sk, seq, TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4842 TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4843 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4863 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
4865 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4866 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4871 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4872 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4904 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
4947 TCP_SKB_CB(skb)->seq = tcp_sk(sk)->rcv_nxt; in tcp_send_rcvq()
4948 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
4949 TCP_SKB_CB(skb)->ack_seq = tcp_sk(sk)->snd_una - 1; in tcp_send_rcvq()
4986 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_data_queue()
4999 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) { in tcp_data_queue()
5018 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
5043 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
5047 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
5058 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt + tcp_receive_window(tp))) in tcp_data_queue()
5061 if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_data_queue()
5063 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, tp->rcv_nxt); in tcp_data_queue()
5113 if (before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb1)->seq)) in tcp_rbtree_insert()
5146 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5158 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
5160 before(TCP_SKB_CB(skb)->seq, start))) { in tcp_collapse()
5166 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(n)->seq) { in tcp_collapse()
5172 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
5175 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5192 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
5202 int offset = start - TCP_SKB_CB(skb)->seq; in tcp_collapse()
5203 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
5210 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
5214 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
5219 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
5249 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5250 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5260 after(TCP_SKB_CB(skb)->seq, end) || in tcp_collapse_ofo_queue()
5261 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
5276 if (unlikely(before(TCP_SKB_CB(skb)->seq, start))) in tcp_collapse_ofo_queue()
5277 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
5278 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
5279 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5581 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5632 return unlikely(TCP_SKB_CB(skb)->seq == (tp->rcv_nxt - 1) && in tcp_reset_check()
5662 if (!tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_validate_incoming()
5693 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt || in tcp_validate_incoming()
5708 if (TCP_SKB_CB(skb)->seq == max_sack) in tcp_validate_incoming()
5812 TCP_SKB_CB(skb)->seq == tp->rcv_nxt && in tcp_rcv_established()
5813 !after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_established()
5895 if (TCP_SKB_CB(skb)->ack_seq != tp->snd_una) { in tcp_rcv_established()
5902 tcp_update_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_established()
6123 if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) || in tcp_rcv_synsent_state_process()
6124 after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_synsent_state_process()
6173 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_synsent_state_process()
6180 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6181 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6283 WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1); in tcp_rcv_synsent_state_process()
6285 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
6291 tp->snd_wl1 = TCP_SKB_CB(skb)->seq; in tcp_rcv_synsent_state_process()
6482 tp->snd_una = TCP_SKB_CB(skb)->ack_seq; in tcp_rcv_state_process()
6484 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_state_process()
6524 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6525 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6576 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_rcv_state_process()
6589 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6590 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6662 ect = !INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield); in tcp_ecn_create_request()
6679 tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; in tcp_openreq_init()
6680 tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_openreq_init()
6819 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn; in tcp_conn_request()
6922 tcp_rsk(req)->syn_tos = TCP_SKB_CB(skb)->ip_dsfield; in tcp_conn_request()