Lines Matching refs:TCP_SKB_CB

270 	switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) {  in __tcp_ecn_check_ce()
598 if (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
599 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss) { in tcp_rcv_rtt_measure_ts()
926 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint()
927 TCP_SKB_CB(tp->retransmit_skb_hint)->seq)) in tcp_verify_retransmit_hint()
940 __u8 sacked = TCP_SKB_CB(skb)->sacked; in tcp_sum_lost()
949 if (!(TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_ACKED))) { in tcp_skb_mark_lost()
954 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_skb_mark_lost()
963 if (!(TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_ACKED))) { in tcp_skb_mark_lost_uncond_verify()
965 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_skb_mark_lost_uncond_verify()
1108 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1163 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_match_skb_to_sack()
1164 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1167 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1169 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_match_skb_to_sack()
1172 pkt_len = start_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1176 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1269 before(start_seq, TCP_SKB_CB(tp->lost_skb_hint)->seq)) in tcp_sacktag_one()
1295 u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of newly-SACKed */ in tcp_shifted_skb()
1306 tcp_sacktag_one(sk, state, TCP_SKB_CB(skb)->sacked, in tcp_shifted_skb()
1314 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1315 TCP_SKB_CB(skb)->seq += shifted; in tcp_shifted_skb()
1326 if (!TCP_SKB_CB(prev)->tcp_gso_size) in tcp_shifted_skb()
1327 TCP_SKB_CB(prev)->tcp_gso_size = mss; in tcp_shifted_skb()
1331 TCP_SKB_CB(skb)->tcp_gso_size = 0; in tcp_shifted_skb()
1334 TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS); in tcp_shifted_skb()
1351 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1352 TCP_SKB_CB(prev)->eor = TCP_SKB_CB(skb)->eor; in tcp_shifted_skb()
1353 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
1354 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1360 if (unlikely(TCP_SKB_CB(prev)->tx.delivered_mstamp)) in tcp_shifted_skb()
1361 TCP_SKB_CB(prev)->tx.delivered_mstamp = 0; in tcp_shifted_skb()
1401 (TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_RETRANS)) == TCPCB_SACKED_RETRANS) in tcp_shift_skb_data()
1406 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1414 if ((TCP_SKB_CB(prev)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) in tcp_shift_skb_data()
1420 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_shift_skb_data()
1421 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1434 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1443 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_shift_skb_data()
1459 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1486 if (!after(TCP_SKB_CB(skb)->seq + len, tp->snd_una)) in tcp_shift_skb_data()
1502 ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) || in tcp_shift_skb_data()
1538 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1542 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1575 TCP_SKB_CB(skb)->sacked = in tcp_sacktag_walk()
1578 TCP_SKB_CB(skb)->sacked, in tcp_sacktag_walk()
1579 TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1580 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1585 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) in tcp_sacktag_walk()
1588 if (!before(TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1606 if (before(seq, TCP_SKB_CB(skb)->seq)) { in tcp_sacktag_bsearch()
1610 if (!before(seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_sacktag_bsearch()
1623 if (skb && after(TCP_SKB_CB(skb)->seq, skip_to_seq)) in tcp_sacktag_skip()
1659 TCP_SKB_CB(ack_skb)->sacked); in tcp_sacktag_write_queue()
1687 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1713 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
1954 is_reneg = head && (TCP_SKB_CB(head)->sacked & TCPCB_SACKED_ACKED); in tcp_timeout_mark_lost()
1967 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_ACKED; in tcp_timeout_mark_lost()
2192 if (mark_head && after(TCP_SKB_CB(skb)->seq, tp->snd_una)) in tcp_mark_head_lost()
2206 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
2211 (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) in tcp_mark_head_lost()
2216 (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) || in tcp_mark_head_lost()
2265 return (TCP_SKB_CB(skb)->sacked & TCPCB_RETRANS) && in tcp_skb_spurious_retrans()
2303 if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) in tcp_any_retrans_done()
2344 TCP_SKB_CB(skb)->sacked &= ~TCPCB_LOST; in tcp_undo_cwnd_reduction()
2597 !(TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) { in tcp_simple_retransmit()
2598 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS) { in tcp_simple_retransmit()
2599 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_simple_retransmit()
3021 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3024 if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq)) in tcp_tso_acked()
3030 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3042 if (likely(!TCP_SKB_CB(skb)->txstamp_ack)) in tcp_ack_tstamp()
3080 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_clean_rtx_queue()
3111 last_in_flight = TCP_SKB_CB(skb)->tx.in_flight; in tcp_clean_rtx_queue()
3164 if (skb && (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) in tcp_clean_rtx_queue()
3269 if (!after(TCP_SKB_CB(head)->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3432 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3579 u32 ack_seq = TCP_SKB_CB(skb)->seq; in tcp_ack()
3580 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack()
3631 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); in tcp_ack()
3648 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
3655 if (TCP_SKB_CB(skb)->sacked) in tcp_ack()
3732 if (TCP_SKB_CB(skb)->sacked) { in tcp_ack()
3857 TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; in tcp_parse_options()
4004 u32 seq = TCP_SKB_CB(skb)->seq; in tcp_disordered_ack()
4005 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack()
4008 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4206 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4207 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack()
4212 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack()
4214 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4216 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4353 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4367 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4368 TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq; in tcp_try_coalesce()
4369 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4371 if (TCP_SKB_CB(from)->has_rxtstamp) { in tcp_try_coalesce()
4372 TCP_SKB_CB(to)->has_rxtstamp = true; in tcp_try_coalesce()
4416 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_ofo_queue()
4419 if (before(TCP_SKB_CB(skb)->seq, dsack_high)) { in tcp_ofo_queue()
4421 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4422 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4423 tcp_dsack_extend(sk, TCP_SKB_CB(skb)->seq, dsack); in tcp_ofo_queue()
4428 if (unlikely(!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))) { in tcp_ofo_queue()
4434 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, in tcp_ofo_queue()
4435 TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4439 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4440 fin = TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN; in tcp_ofo_queue()
4497 seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4498 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4528 if (!before(seq, TCP_SKB_CB(tp->ooo_last_skb)->end_seq)) { in tcp_data_queue_ofo()
4539 if (before(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4543 if (before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4544 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4553 if (after(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4555 tcp_dsack_set(sk, seq, TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4563 TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4564 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4584 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
4586 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4587 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4592 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4593 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4622 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
4665 TCP_SKB_CB(skb)->seq = tcp_sk(sk)->rcv_nxt; in tcp_send_rcvq()
4666 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
4667 TCP_SKB_CB(skb)->ack_seq = tcp_sk(sk)->snd_una - 1; in tcp_send_rcvq()
4699 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) { in tcp_data_queue()
4714 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) { in tcp_data_queue()
4732 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
4757 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
4760 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
4771 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt + tcp_receive_window(tp))) in tcp_data_queue()
4774 if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_data_queue()
4777 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, in tcp_data_queue()
4778 TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
4780 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, tp->rcv_nxt); in tcp_data_queue()
4830 if (before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb1)->seq)) in tcp_rbtree_insert()
4863 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
4875 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
4877 before(TCP_SKB_CB(skb)->seq, start))) { in tcp_collapse()
4883 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(n)->seq) { in tcp_collapse()
4889 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
4892 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
4909 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
4918 int offset = start - TCP_SKB_CB(skb)->seq; in tcp_collapse()
4919 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
4926 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
4930 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
4934 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
4964 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
4965 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
4975 after(TCP_SKB_CB(skb)->seq, end) || in tcp_collapse_ofo_queue()
4976 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
4991 if (unlikely(before(TCP_SKB_CB(skb)->seq, start))) in tcp_collapse_ofo_queue()
4992 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
4993 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
4994 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
5287 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5338 return unlikely(TCP_SKB_CB(skb)->seq == (tp->rcv_nxt - 1) && in tcp_reset_check()
5368 if (!tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_validate_incoming()
5399 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt || in tcp_validate_incoming()
5414 if (TCP_SKB_CB(skb)->seq == max_sack) in tcp_validate_incoming()
5516 TCP_SKB_CB(skb)->seq == tp->rcv_nxt && in tcp_rcv_established()
5517 !after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_established()
5599 if (TCP_SKB_CB(skb)->ack_seq != tp->snd_una) { in tcp_rcv_established()
5778 if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) || in tcp_rcv_synsent_state_process()
5779 after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) in tcp_rcv_synsent_state_process()
5822 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_synsent_state_process()
5828 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5829 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5931 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5933 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5939 tp->snd_wl1 = TCP_SKB_CB(skb)->seq; in tcp_rcv_synsent_state_process()
6107 tp->snd_una = TCP_SKB_CB(skb)->ack_seq; in tcp_rcv_state_process()
6109 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_state_process()
6156 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6157 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6208 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_rcv_state_process()
6218 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
6219 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6286 ect = !INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield); in tcp_ecn_create_request()
6304 tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; in tcp_openreq_init()
6305 tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_openreq_init()
6400 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn; in tcp_conn_request()