diff options
author | Geliang Tang <geliang.tang@linux.dev> | 2023-11-30 19:40:36 +0800 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-12-06 17:08:59 +0000 |
commit | b6df01d17752d746cdca6383db21d34279f0d1f4 (patch) | |
tree | 872c30e0f555283e7e1ca605cb34f29d2b579151 | |
parent | 7775a2306baf4738cd2a8e9d3b753c07cc8e1183 (diff) | |
download | iproute2-b6df01d17752d746cdca6383db21d34279f0d1f4.tar.gz |
ss: mptcp: print out subflows_total counter
A new counter mptcpi_subflows_total has been added in mptcpi_flags
to count the total amount of subflows from mptcp_info including the
initial one into kernel in this commit:
6ebf6f90ab4a ("mptcp: add mptcpi_subflows_total counter")
This patch prints out this counter into mptcp_stats output.
Acked-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@linux.dev>
Signed-off-by: David Ahern <dsahern@kernel.org>
-rw-r--r-- | misc/ss.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3252,6 +3252,8 @@ static void mptcp_stats_print(struct mptcp_info *s) out(" bytes_received:%llu", s->mptcpi_bytes_received); if (s->mptcpi_bytes_acked) out(" bytes_acked:%llu", s->mptcpi_bytes_acked); + if (s->mptcpi_subflows_total) + out(" subflows_total:%u", s->mptcpi_subflows_total); } static void mptcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r, |