Lines Matching refs:TCP_SKB_CB

225 	switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) {  in __tcp_ecn_check_ce()
543 (TCP_SKB_CB(skb)->end_seq - in tcp_rcv_rtt_measure_ts()
544 TCP_SKB_CB(skb)->seq >= inet_csk(sk)->icsk_ack.rcv_mss)) in tcp_rcv_rtt_measure_ts()
870 before(TCP_SKB_CB(skb)->seq, in tcp_verify_retransmit_hint()
871 TCP_SKB_CB(tp->retransmit_skb_hint)->seq)) in tcp_verify_retransmit_hint()
875 after(TCP_SKB_CB(skb)->end_seq, tp->retransmit_high)) in tcp_verify_retransmit_hint()
876 tp->retransmit_high = TCP_SKB_CB(skb)->end_seq; in tcp_verify_retransmit_hint()
881 if (!(TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_ACKED))) { in tcp_skb_mark_lost()
885 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_skb_mark_lost()
894 if (!(TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_ACKED))) { in tcp_skb_mark_lost_uncond_verify()
896 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_skb_mark_lost_uncond_verify()
1055 u32 ack_seq = TCP_SKB_CB(skb)->ack_seq; in tcp_mark_lost_retrans()
1061 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_mark_lost_retrans()
1064 if (!(TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS)) in tcp_mark_lost_retrans()
1079 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_mark_lost_retrans()
1104 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1153 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_match_skb_to_sack()
1154 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_match_skb_to_sack()
1157 after(TCP_SKB_CB(skb)->end_seq, start_seq)) { in tcp_match_skb_to_sack()
1159 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_match_skb_to_sack()
1162 pkt_len = start_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1166 pkt_len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_match_skb_to_sack()
1260 before(start_seq, TCP_SKB_CB(tp->lost_skb_hint)->seq)) in tcp_sacktag_one()
1289 u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of newly-SACKed */ in tcp_shifted_skb()
1300 tcp_sacktag_one(sk, state, TCP_SKB_CB(skb)->sacked, in tcp_shifted_skb()
1307 TCP_SKB_CB(prev)->end_seq += shifted; in tcp_shifted_skb()
1308 TCP_SKB_CB(skb)->seq += shifted; in tcp_shifted_skb()
1331 TCP_SKB_CB(prev)->sacked |= (TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS); in tcp_shifted_skb()
1348 TCP_SKB_CB(prev)->tcp_flags |= TCP_SKB_CB(skb)->tcp_flags; in tcp_shifted_skb()
1349 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_shifted_skb()
1350 TCP_SKB_CB(prev)->end_seq++; in tcp_shifted_skb()
1397 (TCP_SKB_CB(skb)->sacked & (TCPCB_LOST|TCPCB_SACKED_RETRANS)) == TCPCB_SACKED_RETRANS) in tcp_shift_skb_data()
1402 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)) in tcp_shift_skb_data()
1410 if ((TCP_SKB_CB(prev)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) in tcp_shift_skb_data()
1413 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq) && in tcp_shift_skb_data()
1414 !before(end_seq, TCP_SKB_CB(skb)->end_seq); in tcp_shift_skb_data()
1427 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq)) in tcp_shift_skb_data()
1436 in_sack = !after(start_seq, TCP_SKB_CB(skb)->seq); in tcp_shift_skb_data()
1452 len = end_seq - TCP_SKB_CB(skb)->seq; in tcp_shift_skb_data()
1479 if (!after(TCP_SKB_CB(skb)->seq + len, tp->snd_una)) in tcp_shift_skb_data()
1496 ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) || in tcp_shift_skb_data()
1535 if (!before(TCP_SKB_CB(skb)->seq, end_seq)) in tcp_sacktag_walk()
1539 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) { in tcp_sacktag_walk()
1572 TCP_SKB_CB(skb)->sacked = in tcp_sacktag_walk()
1575 TCP_SKB_CB(skb)->sacked, in tcp_sacktag_walk()
1576 TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1577 TCP_SKB_CB(skb)->end_seq, in tcp_sacktag_walk()
1582 if (!before(TCP_SKB_CB(skb)->seq, in tcp_sacktag_walk()
1603 if (after(TCP_SKB_CB(skb)->end_seq, skip_to_seq)) in tcp_sacktag_skip()
1641 TCP_SKB_CB(ack_skb)->sacked); in tcp_sacktag_write_queue()
1672 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1698 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
1951 is_reneg = skb && (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED); in tcp_enter_loss()
1963 TCP_SKB_CB(skb)->sacked &= (~TCPCB_TAGBITS)|TCPCB_SACKED_ACKED; in tcp_enter_loss()
1964 if (!(TCP_SKB_CB(skb)->sacked&TCPCB_SACKED_ACKED) || is_reneg) { in tcp_enter_loss()
1965 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_ACKED; in tcp_enter_loss()
1966 TCP_SKB_CB(skb)->sacked |= TCPCB_LOST; in tcp_enter_loss()
1968 tp->retransmit_high = TCP_SKB_CB(skb)->end_seq; in tcp_enter_loss()
2244 if (after(TCP_SKB_CB(skb)->end_seq, loss_high)) in tcp_mark_head_lost()
2249 (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) in tcp_mark_head_lost()
2254 (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED) || in tcp_mark_head_lost()
2341 if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) in tcp_any_retrans_done()
2387 TCP_SKB_CB(skb)->sacked &= ~TCPCB_LOST; in tcp_undo_cwnd_reduction()
2635 !(TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) { in tcp_simple_retransmit()
2636 if (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_RETRANS) { in tcp_simple_retransmit()
2637 TCP_SKB_CB(skb)->sacked &= ~TCPCB_SACKED_RETRANS; in tcp_simple_retransmit()
3023 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una)); in tcp_tso_acked()
3026 if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq)) in tcp_tso_acked()
3032 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)); in tcp_tso_acked()
3076 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_clean_rtx_queue()
3150 if (skb && (TCP_SKB_CB(skb)->sacked & TCPCB_SACKED_ACKED)) in tcp_clean_rtx_queue()
3234 if (!after(TCP_SKB_CB(tcp_send_head(sk))->end_seq, tcp_wnd_end(tp))) { in tcp_ack_probe()
3357 if ((TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq) && in tcp_oow_rate_limited()
3470 u32 ack_seq = TCP_SKB_CB(skb)->seq; in tcp_ack()
3471 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_ack()
3515 tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq); in tcp_ack()
3532 if (ack_seq != TCP_SKB_CB(skb)->end_seq) in tcp_ack()
3539 if (TCP_SKB_CB(skb)->sacked) in tcp_ack()
3616 if (TCP_SKB_CB(skb)->sacked) { in tcp_ack()
3722 TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; in tcp_parse_options()
3868 u32 seq = TCP_SKB_CB(skb)->seq; in tcp_disordered_ack()
3869 u32 ack = TCP_SKB_CB(skb)->ack_seq; in tcp_disordered_ack()
3872 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack()
4070 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_send_dupack()
4071 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack()
4076 u32 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_send_dupack()
4078 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack()
4080 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq); in tcp_send_dupack()
4214 if (TCP_SKB_CB(from)->seq != TCP_SKB_CB(to)->end_seq) in tcp_try_coalesce()
4223 TCP_SKB_CB(to)->end_seq = TCP_SKB_CB(from)->end_seq; in tcp_try_coalesce()
4224 TCP_SKB_CB(to)->ack_seq = TCP_SKB_CB(from)->ack_seq; in tcp_try_coalesce()
4225 TCP_SKB_CB(to)->tcp_flags |= TCP_SKB_CB(from)->tcp_flags; in tcp_try_coalesce()
4240 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_ofo_queue()
4243 if (before(TCP_SKB_CB(skb)->seq, dsack_high)) { in tcp_ofo_queue()
4245 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high)) in tcp_ofo_queue()
4246 dsack_high = TCP_SKB_CB(skb)->end_seq; in tcp_ofo_queue()
4247 tcp_dsack_extend(sk, TCP_SKB_CB(skb)->seq, dsack); in tcp_ofo_queue()
4251 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_ofo_queue()
4257 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, in tcp_ofo_queue()
4258 TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4262 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_ofo_queue()
4265 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_ofo_queue()
4315 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue_ofo()
4322 tp->selective_acks[0].start_seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4324 TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4330 seq = TCP_SKB_CB(skb)->seq; in tcp_data_queue_ofo()
4331 end_seq = TCP_SKB_CB(skb)->end_seq; in tcp_data_queue_ofo()
4333 if (seq == TCP_SKB_CB(skb1)->end_seq) { in tcp_data_queue_ofo()
4355 if (!after(TCP_SKB_CB(skb1)->seq, seq)) in tcp_data_queue_ofo()
4365 if (skb1 && before(seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4366 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4374 if (after(seq, TCP_SKB_CB(skb1)->seq)) { in tcp_data_queue_ofo()
4377 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4397 if (!after(end_seq, TCP_SKB_CB(skb1)->seq)) in tcp_data_queue_ofo()
4399 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) { in tcp_data_queue_ofo()
4400 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4405 tcp_dsack_extend(sk, TCP_SKB_CB(skb1)->seq, in tcp_data_queue_ofo()
4406 TCP_SKB_CB(skb1)->end_seq); in tcp_data_queue_ofo()
4430 tcp_rcv_nxt_update(tcp_sk(sk), TCP_SKB_CB(skb)->end_seq); in tcp_queue_rcv()
4471 TCP_SKB_CB(skb)->seq = tcp_sk(sk)->rcv_nxt; in tcp_send_rcvq()
4472 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq + size; in tcp_send_rcvq()
4473 TCP_SKB_CB(skb)->ack_seq = tcp_sk(sk)->snd_una - 1; in tcp_send_rcvq()
4494 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq) in tcp_data_queue()
4508 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) { in tcp_data_queue()
4539 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
4542 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) in tcp_data_queue()
4567 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) { in tcp_data_queue()
4570 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
4581 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt + tcp_receive_window(tp))) in tcp_data_queue()
4586 if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_data_queue()
4589 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, in tcp_data_queue()
4590 TCP_SKB_CB(skb)->end_seq); in tcp_data_queue()
4592 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, tp->rcv_nxt); in tcp_data_queue()
4645 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
4657 if (!(TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN)) && in tcp_collapse()
4659 before(TCP_SKB_CB(skb)->seq, start))) { in tcp_collapse()
4667 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(next)->seq) { in tcp_collapse()
4674 start = TCP_SKB_CB(skb)->end_seq; in tcp_collapse()
4677 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
4689 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; in tcp_collapse()
4695 int offset = start - TCP_SKB_CB(skb)->seq; in tcp_collapse()
4696 int size = TCP_SKB_CB(skb)->end_seq - start; in tcp_collapse()
4703 TCP_SKB_CB(nskb)->end_seq += size; in tcp_collapse()
4707 if (!before(start, TCP_SKB_CB(skb)->end_seq)) { in tcp_collapse()
4711 (TCP_SKB_CB(skb)->tcp_flags & (TCPHDR_SYN | TCPHDR_FIN))) in tcp_collapse()
4731 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
4732 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
4745 after(TCP_SKB_CB(skb)->seq, end) || in tcp_collapse_ofo_queue()
4746 before(TCP_SKB_CB(skb)->end_seq, start)) { in tcp_collapse_ofo_queue()
4753 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
4754 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
4756 if (before(TCP_SKB_CB(skb)->seq, start)) in tcp_collapse_ofo_queue()
4757 start = TCP_SKB_CB(skb)->seq; in tcp_collapse_ofo_queue()
4758 if (after(TCP_SKB_CB(skb)->end_seq, end)) in tcp_collapse_ofo_queue()
4759 end = TCP_SKB_CB(skb)->end_seq; in tcp_collapse_ofo_queue()
4997 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_check_urg()
5103 if (!tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)) { in tcp_validate_incoming()
5129 if (TCP_SKB_CB(skb)->seq == tp->rcv_nxt) in tcp_validate_incoming()
5214 TCP_SKB_CB(skb)->seq == tp->rcv_nxt && in tcp_rcv_established()
5215 !after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) { in tcp_rcv_established()
5287 tcp_rcv_nxt_update(tp, TCP_SKB_CB(skb)->end_seq); in tcp_rcv_established()
5319 if (TCP_SKB_CB(skb)->ack_seq != tp->snd_una) { in tcp_rcv_established()
5490 if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) || in tcp_rcv_synsent_state_process()
5491 after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) in tcp_rcv_synsent_state_process()
5533 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_synsent_state_process()
5539 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5540 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5640 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5642 tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1; in tcp_rcv_synsent_state_process()
5648 tp->snd_wl1 = TCP_SKB_CB(skb)->seq; in tcp_rcv_synsent_state_process()
5812 tp->snd_una = TCP_SKB_CB(skb)->ack_seq; in tcp_rcv_state_process()
5814 tcp_init_wl(tp, TCP_SKB_CB(skb)->seq); in tcp_rcv_state_process()
5881 (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
5882 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt))) { in tcp_rcv_state_process()
5930 if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) in tcp_rcv_state_process()
5939 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq && in tcp_rcv_state_process()
5940 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) { in tcp_rcv_state_process()
6006 ect = !INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield); in tcp_ecn_create_request()
6021 tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; in tcp_openreq_init()
6022 tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_openreq_init()
6095 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn; in tcp_conn_request()