File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ enum {
266
266
TCP_NLA_BYTES_RETRANS , /* Data bytes retransmitted */
267
267
TCP_NLA_DSACK_DUPS , /* DSACK blocks received */
268
268
TCP_NLA_REORD_SEEN , /* reordering events seen */
269
+ TCP_NLA_SRTT , /* smoothed RTT in usecs */
269
270
};
270
271
271
272
/* for TCP_MD5SIG socket option */
Original file line number Diff line number Diff line change @@ -3242,6 +3242,7 @@ static size_t tcp_opt_stats_get_size(void)
3242
3242
nla_total_size_64bit (sizeof (u64 )) + /* TCP_NLA_BYTES_RETRANS */
3243
3243
nla_total_size (sizeof (u32 )) + /* TCP_NLA_DSACK_DUPS */
3244
3244
nla_total_size (sizeof (u32 )) + /* TCP_NLA_REORD_SEEN */
3245
+ nla_total_size (sizeof (u32 )) + /* TCP_NLA_SRTT */
3245
3246
0 ;
3246
3247
}
3247
3248
@@ -3295,6 +3296,7 @@ struct sk_buff *tcp_get_timestamping_opt_stats(const struct sock *sk)
3295
3296
TCP_NLA_PAD );
3296
3297
nla_put_u32 (stats , TCP_NLA_DSACK_DUPS , tp -> dsack_dups );
3297
3298
nla_put_u32 (stats , TCP_NLA_REORD_SEEN , tp -> reord_seen );
3299
+ nla_put_u32 (stats , TCP_NLA_SRTT , tp -> srtt_us >> 3 );
3298
3300
3299
3301
return stats ;
3300
3302
}
You can’t perform that action at this time.
0 commit comments