aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tcp.h')
-rw-r--r--include/linux/tcp.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h
index 58a8d7d71354..263e37271afd 100644
--- a/include/linux/tcp.h
+++ b/include/linux/tcp.h
@@ -181,10 +181,16 @@ struct tcp_sock {
181 u32 data_segs_out; /* RFC4898 tcpEStatsPerfDataSegsOut 181 u32 data_segs_out; /* RFC4898 tcpEStatsPerfDataSegsOut
182 * total number of data segments sent. 182 * total number of data segments sent.
183 */ 183 */
184 u64 bytes_sent; /* RFC4898 tcpEStatsPerfHCDataOctetsOut
185 * total number of data bytes sent.
186 */
184 u64 bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked 187 u64 bytes_acked; /* RFC4898 tcpEStatsAppHCThruOctetsAcked
185 * sum(delta(snd_una)), or how many bytes 188 * sum(delta(snd_una)), or how many bytes
186 * were acked. 189 * were acked.
187 */ 190 */
191 u32 dsack_dups; /* RFC4898 tcpEStatsStackDSACKDups
192 * total number of DSACK blocks received
193 */
188 u32 snd_una; /* First byte we want an ack for */ 194 u32 snd_una; /* First byte we want an ack for */
189 u32 snd_sml; /* Last byte of the most recently transmitted small packet */ 195 u32 snd_sml; /* Last byte of the most recently transmitted small packet */
190 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */ 196 u32 rcv_tstamp; /* timestamp of last received ACK (for keepalives) */
@@ -214,8 +220,7 @@ struct tcp_sock {
214#define TCP_RACK_RECOVERY_THRESH 16 220#define TCP_RACK_RECOVERY_THRESH 16
215 u8 reo_wnd_persist:5, /* No. of recovery since last adj */ 221 u8 reo_wnd_persist:5, /* No. of recovery since last adj */
216 dsack_seen:1, /* Whether DSACK seen after last adj */ 222 dsack_seen:1, /* Whether DSACK seen after last adj */
217 advanced:1, /* mstamp advanced since last lost marking */ 223 advanced:1; /* mstamp advanced since last lost marking */
218 reord:1; /* reordering detected */
219 } rack; 224 } rack;
220 u16 advmss; /* Advertised MSS */ 225 u16 advmss; /* Advertised MSS */
221 u8 compressed_ack; 226 u8 compressed_ack;
@@ -261,6 +266,7 @@ struct tcp_sock {
261 u8 ecn_flags; /* ECN status bits. */ 266 u8 ecn_flags; /* ECN status bits. */
262 u8 keepalive_probes; /* num of allowed keep alive probes */ 267 u8 keepalive_probes; /* num of allowed keep alive probes */
263 u32 reordering; /* Packet reordering metric. */ 268 u32 reordering; /* Packet reordering metric. */
269 u32 reord_seen; /* number of data packet reordering events */
264 u32 snd_up; /* Urgent pointer */ 270 u32 snd_up; /* Urgent pointer */
265 271
266/* 272/*
@@ -330,6 +336,9 @@ struct tcp_sock {
330 * the first SYN. */ 336 * the first SYN. */
331 u32 undo_marker; /* snd_una upon a new recovery episode. */ 337 u32 undo_marker; /* snd_una upon a new recovery episode. */
332 int undo_retrans; /* number of undoable retransmissions. */ 338 int undo_retrans; /* number of undoable retransmissions. */
339 u64 bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans
340 * Total data bytes retransmitted
341 */
333 u32 total_retrans; /* Total retransmits for entire connection */ 342 u32 total_retrans; /* Total retransmits for entire connection */
334 343
335 u32 urg_seq; /* Seq of received urgent pointer */ 344 u32 urg_seq; /* Seq of received urgent pointer */