Lines Matching +full:last +full:- +full:used
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
31 return th->doff * 4; in __tcp_hdrlen()
46 return inner_tcp_hdr(skb)->doff * 4; in inner_tcp_hdrlen()
50 * skb_tcp_all_headers - Returns size of all headers for a TCP packet
53 * Used in TX path, for a packet known to be a TCP one.
65 * skb_inner_tcp_all_headers - Returns size of all headers for an encap TCP packet
68 * Used in TX path, for a packet known to be a TCP one.
70 * if (skb_is_gso(skb) && skb->encapsulation) {
81 return (tcp_hdr(skb)->doff - 5) * 4; in tcp_optlen()
107 /*These are used to set the sack_ok field in struct tcp_options_received */
117 u16 saw_tstamp : 1, /* Saw TIMESTAMP on last packet */
119 dsack : 1, /* D-SACK is scheduled */
134 rx_opt->tstamp_ok = rx_opt->sack_ok = 0; in tcp_clear_options()
135 rx_opt->wscale_ok = rx_opt->snd_wscale = 0; in tcp_clear_options()
137 rx_opt->smc_ok = 0; in tcp_clear_options()
165 u32 last_oow_ack_time; /* last SYNACK */
168 * after data-in-SYN.
188 return tcp_rsk(req)->used_tcp_ao; in tcp_rsk_used_ao()
203 /* TX read-mostly hotpath cache lines */
215 /* TXRX read-mostly hotpath cache lines */
233 /* RX read-mostly hotpath cache lines */
236 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
254 /* TX read-write hotpath cache lines */
265 u32 snd_sml; /* Last byte of the most recently transmitted small packet */
269 u32 pushed_seq; /* Last pushed seq, required to talk to windows */
270 u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
274 struct list_head tsorted_sent_queue; /* time-sorted sent but un-SACKed skbs */
283 /* TXRX read-write hotpath cache lines */
290 u64 tcp_clock_cache; /* cache last tcp_clock_ns() (see tcp_mstamp_refresh()) */
304 * Options received (usually on last packet, some only on SYN packets).
311 /* RX read-write hotpath cache lines */
324 u32 rcv_wup; /* rcv_nxt on last window update sent */
325 u32 max_packets_out; /* max packets_out in last window */
366 u32 last_delivered; /* tp->delivered at last reo_wnd adj */
369 u8 reo_wnd_persist:5, /* No. of recovery since last adj */
370 dsack_seen:1, /* Whether DSACK seen after last adj */
371 advanced:1; /* mstamp advanced since last lost marking */
381 frto : 1;/* F-RTO (RFC5682) activated in CA_Loss */
387 syn_fastopen_ch:1, /* Active TFO re-enabling probe */
388 syn_data_acked:1;/* data in SYN is acked by SYN-ACK */
394 u32 mdev_max_us; /* maximal mdev for the last rtt period */
408 u32 last_oow_ack_time; /* timestamp of last out-of-window ACK */
416 struct tcp_sack_block duplicate_sack[1]; /* D-SACK block */
426 u32 retrans_stamp; /* Timestamp of the last retransmit,
427 * also used in SYN-SENT to remember stamp of
435 u32 rto_stamp; /* Start time (ms) of last CA_Loss recovery */
437 * SYN/SYN-ACK and recurring timeouts.
458 * it is to avoid the bpf_tcp_cc->init()
462 #define BPF_SOCK_OPS_TEST_FLAG(TP, ARG) (TP->bpf_sock_ops_cb_flags & ARG)
467 u16 timeout_rehash; /* Timeout-triggered rehash attempts */
469 u32 rcv_ooopack; /* Received out-of-order packets, for tcpinfo */
471 /* TCP-specific MTU probe information. */
476 u32 plb_rehash; /* PLB-triggered rehash attempts */
489 /* TCP AF-Specific parts; only used by TCP-AO/MD5 Signature support so far */
504 * socket. Used to retransmit SYNACKs etc.
535 * Used in context of (lockless) tcp listeners.
547 /* The time we sent the last out-of-window ACK: */
567 return sk->sk_state == TCP_SYN_RECV && in tcp_passive_fastopen()
568 rcu_access_pointer(tcp_sk(sk)->fastopen_rsk) != NULL; in tcp_passive_fastopen()
573 struct request_sock_queue *queue = &inet_csk(sk)->icsk_accept_queue; in fastopen_queue_tune()
574 int somaxconn = READ_ONCE(sock_net(sk)->core.sysctl_somaxconn); in fastopen_queue_tune()
576 WRITE_ONCE(queue->fastopenq.max_qlen, min_t(unsigned int, backlog, somaxconn)); in fastopen_queue_tune()
582 tp->saved_syn = req->saved_syn; in tcp_move_syn()
583 req->saved_syn = NULL; in tcp_move_syn()
588 kfree(tp->saved_syn); in tcp_saved_syn_free()
589 tp->saved_syn = NULL; in tcp_saved_syn_free()
594 return saved_syn->mac_hdrlen + saved_syn->network_hdrlen + in tcp_saved_syn_len()
595 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
607 u16 user_mss = READ_ONCE(tp->rx_opt.user_mss); in tcp_mss_clamp()