tcp: add pacing_rate information into tcp_info
authorEric Dumazet <edumazet@google.com>
Thu, 13 Feb 2014 22:27:40 +0000 (14:27 -0800)
committerDanny Wood <danwood76@gmail.com>
Thu, 15 Jul 2021 09:45:34 +0000 (10:45 +0100)
commit3103487194fdff94a3598615b3fd4fd315dd6ea4
treeaed654b69b1972987465d405b032b14cdf527186
parent03d304168b6f520717488d226278b9cb38ed2515
tcp: add pacing_rate information into tcp_info

Add two new fields to struct tcp_info, to report sk_pacing_rate
and sk_max_pacing_rate to monitoring applications, as ss from iproute2.

User exported fields are 64bit, even if kernel is currently using 32bit
fields.

lpaa5:~# ss -i
..
 skmem:(r0,rb357120,t0,tb2097152,f1584,w1980880,o0,bl0) ts sack cubic
wscale:6,6 rto:400 rtt:0.875/0.75 mss:1448 cwnd:1 ssthresh:12 send
13.2Mbps pacing_rate 3336.2Mbps unacked:15 retrans:1/5448 lost:15
rcv_space:29200

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: Ib4f3ace4059fa799fe1af94713c31efacd593aac
include/uapi/linux/tcp.h
net/ipv4/tcp.c