Message ID | ecf501dce539b4cc77e450d510c0414eec4bba7f.1701344289.git.geliang.tang@linux.dev (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | David Ahern |
Headers | show |
Series | [iproute2-next] ss: mptcp: print out subflows_total counter | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/include/uapi/linux/mptcp.h b/include/uapi/linux/mptcp.h index 99b55575..c2e6f3be 100644 --- a/include/uapi/linux/mptcp.h +++ b/include/uapi/linux/mptcp.h @@ -55,6 +55,7 @@ struct mptcp_info { __u64 mptcpi_bytes_sent; __u64 mptcpi_bytes_received; __u64 mptcpi_bytes_acked; + __u8 mptcpi_subflows_total; }; /* MPTCP Reset reason codes, rfc8684 */ diff --git a/misc/ss.c b/misc/ss.c index 7e67dbe4..67363ec0 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -3239,6 +3239,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,