Lines Matching defs:tcp_sock
146 struct tcp_sock { struct
148 struct inet_connection_sock inet_conn;
149 u16 tcp_header_len; /* Bytes of tcp header to send */
150 u16 gso_segs; /* Max number of segs per GSO packet */
156 __be32 pred_flags;
163 u64 bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived
167 u32 segs_in; /* RFC4898 tcpEStatsPerfSegsIn
170 u32 data_segs_in; /* RFC4898 tcpEStatsPerfDataSegsIn
173 u32 rcv_nxt; /* What we want to receive next */
174 u32 copied_seq; /* Head of yet unread data */
175 u32 rcv_wup; /* rcv_nxt on last window update sent */
176 u32 snd_nxt; /* Next sequence we send */
177 u32 segs_out; /* RFC4898 tcpEStatsPerfSegsOut
180 u32 data_segs_out; /* RFC4898 tcpEStatsPerfDataSegsOut
183 u64 bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut
186 u64 bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked
190 u32 dsack_dups; /* RFC4898 tcpEStatsStackDSACKDups
193 u32 snd_una; /* First byte we want an ack for */
194 u32 snd_sml; /* Last byte of the most recently transmitted small packet */
195 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
196 u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
197 u32 last_oow_ack_time; /* timestamp of last out-of-window ACK */
198 u32 compressed_ack_rcv_nxt;
200 u32 tsoffset; /* timestamp offset */
202 struct list_head tsq_node; /* anchor in tsq_tasklet.head list */
203 struct list_head tsorted_sent_queue; /* time-sorted sent but un-SACKed skbs */
205 u32 snd_wl1; /* Sequence for window update */
206 u32 snd_wnd; /* The window we expect to receive */
207 u32 max_window; /* Maximal window ever seen from peer */
208 u32 mss_cache; /* Cached effective mss, not including SACKS */
210 u32 window_clamp; /* Maximal window to advertise */
211 u32 rcv_ssthresh; /* Current window clamp */
214 struct tcp_rack {
224 } rack;
225 u16 advmss; /* Advertised MSS */
226 u8 compressed_ack;
227 u8 dup_ack_counter:2,
228 tlp_retrans:1, /* TLP is a retransmission */
229 unused:5;
230 u32 chrono_start; /* Start time in jiffies of a TCP chrono */
231 u32 chrono_stat[3]; /* Time in jiffies for chrono_stat stats */
232 u8 chrono_type:2, /* current chronograph type */
233 rate_app_limited:1, /* rate_{delivered,interval_us} limited? */
234 fastopen_connect:1, /* FASTOPEN_CONNECT sockopt */
235 fastopen_no_cookie:1, /* Allow send/recv SYN+data without a cookie */
236 is_sack_reneg:1, /* in recovery from loss with SACK reneg? */
237 fastopen_client_fail:2; /* reason why fastopen failed */
238 u8 nonagle : 4,/* Disable Nagle algorithm? */
239 thin_lto : 1,/* Use linear timeouts for thin streams */
240 recvmsg_inq : 1,/* Indicate # of bytes in queue upon recvmsg */
241 repair : 1,
242 frto : 1;/* F-RTO (RFC5682) activated in CA_Loss */
243 u8 repair_queue;
244 u8 save_syn:2, /* Save headers of SYN packet */
245 syn_data:1, /* SYN includes data */
246 syn_fastopen:1, /* SYN includes Fast Open option */
247 syn_fastopen_exp:1,/* SYN includes Fast Open exp. option */
248 syn_fastopen_ch:1, /* Active TFO re-enabling probe */
249 syn_data_acked:1,/* data in SYN is acked by SYN-ACK */
250 is_cwnd_limited:1;/* forward progress limited by snd_cwnd? */
251 u32 tlp_high_seq; /* snd_nxt at the time of TLP */
253 u32 tcp_tx_delay; /* delay (in usec) added to TX packets */
254 u64 tcp_wstamp_ns; /* departure time for next sent data packet */
255 u64 tcp_clock_cache; /* cache last tcp_clock_ns() (see tcp_mstamp_refresh()) */
258 u64 tcp_mstamp; /* most recent packet received/sent */
259 u32 srtt_us; /* smoothed round trip time << 3 in usecs */
260 u32 mdev_us; /* medium deviation */
261 u32 mdev_max_us; /* maximal mdev for the last rtt period */
262 u32 rttvar_us; /* smoothed mdev_max */
263 u32 rtt_seq; /* sequence number to update rttvar */
264 struct minmax rtt_min;
266 u32 packets_out; /* Packets which are "in flight" */
267 u32 retrans_out; /* Retransmitted packets out */
268 u32 max_packets_out; /* max packets_out in last window */
273 u32 cwnd_usage_seq; /* right edge of cwnd usage tracking flight */
275 u32 max_packets_seq; /* right edge of max_packets_out flight */
278 u16 urg_data; /* Saved octet of OOB data and control flags */
279 u8 ecn_flags; /* ECN status bits. */
280 u8 keepalive_probes; /* num of allowed keep alive probes */
281 u32 reordering; /* Packet reordering metric. */
282 u32 reord_seen; /* number of data packet reordering events */
283 u32 snd_up; /* Urgent pointer */
288 struct tcp_options_received rx_opt;
293 u32 snd_ssthresh; /* Slow start size threshold */
294 u32 snd_cwnd; /* Sending congestion window */
295 u32 snd_cwnd_cnt; /* Linear increase counter */
296 u32 snd_cwnd_clamp; /* Do not allow snd_cwnd to grow above this */
297 u32 snd_cwnd_used;
298 u32 snd_cwnd_stamp;
299 u32 prior_cwnd; /* cwnd right before starting loss recovery */
300 u32 prr_delivered; /* Number of newly delivered packets to
302 u32 prr_out; /* Total number of pkts sent during Recovery. */
303 u32 delivered; /* Total data packets delivered incl. rexmits */
304 u32 delivered_ce; /* Like the above but only ECE marked packets */
305 u32 lost; /* Total data packets lost incl. rexmits */
306 u32 app_limited; /* limited until "delivered" reaches this val */
307 u64 first_tx_mstamp; /* start of window send phase */
308 u64 delivered_mstamp; /* time we reached "delivered" */
309 u32 rate_delivered; /* saved rate sample: packets delivered */
310 u32 rate_interval_us; /* saved rate sample: time elapsed */
312 u32 rcv_wnd; /* Current receiver window */
313 u32 write_seq; /* Tail(+1) of data held in tcp send buffer */
314 u32 notsent_lowat; /* TCP_NOTSENT_LOWAT */
315 u32 pushed_seq; /* Last pushed seq, required to talk to windows */
316 u32 lost_out; /* Lost packets */
317 u32 sacked_out; /* SACK'd packets */
319 struct hrtimer pacing_timer;
320 struct hrtimer compressed_ack_timer;
323 struct sk_buff* lost_skb_hint;
324 struct sk_buff *retransmit_skb_hint;
327 struct rb_root out_of_order_queue;
328 struct sk_buff *ooo_last_skb; /* cache rb_last(out_of_order_queue) */
331 struct tcp_sack_block duplicate_sack[1]; /* D-SACK block */
332 struct tcp_sack_block selective_acks[4]; /* The SACKS themselves*/
334 struct tcp_sack_block recv_sack_cache[4];
336 struct sk_buff *highest_sack; /* skb just after the highest
342 int lost_cnt_hint;
344 u32 prior_ssthresh; /* ssthresh saved at recovery start */
345 u32 high_seq; /* snd_nxt at onset of congestion */
347 u32 retrans_stamp; /* Timestamp of the last retransmit,
350 u32 undo_marker; /* snd_una upon a new recovery episode. */
351 int undo_retrans; /* number of undoable retransmissions. */
352 u64 bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans
355 u32 total_retrans; /* Total retransmits for entire connection */
357 u32 urg_seq; /* Seq of received urgent pointer */
358 unsigned int keepalive_time; /* time before keep alive takes place */
359 unsigned int keepalive_intvl; /* time interval between keep alive probes */
361 int linger2;
366 u8 bpf_sock_ops_cb_flags; /* Control calling BPF programs
374 u16 timeout_rehash; /* Timeout-triggered rehash attempts */
376 u32 rcv_ooopack; /* Received out-of-order packets, for tcpinfo */
379 u32 rcv_rtt_last_tsecr;
380 struct {
384 } rcv_rtt_est;
410 const struct tcp_sock_af_ops *af_specific; argument
413 struct tcp_md5sig_info __rcu *md5sig_info;
417 struct tcp_fastopen_request *fastopen_req;
421 struct request_sock __rcu *fastopen_rsk;
422 struct saved_syn *saved_syn;