[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220601122343.2451706-1-maximmi@nvidia.com>
Date: Wed, 1 Jun 2022 15:23:43 +0300
From: Maxim Mikityanskiy <maximmi@...dia.com>
To: David Ahern <dsahern@...il.com>,
Stephen Hemminger <stephen@...workplumber.org>
CC: Tariq Toukan <tariqt@...dia.com>,
Boris Pismenny <borisp@...dia.com>,
Maxim Mikityanskiy <maximmi@...dia.com>,
Jakub Kicinski <kuba@...nel.org>, <netdev@...r.kernel.org>
Subject: [PATCH iproute2-next] ss: Shorter display format for TLS zerocopy sendfile
Commit 21c07b45688f ("ss: Show zerocopy sendfile status of TLS
sockets") started displaying the activation status of zerocopy sendfile
on TLS sockets, exposed via sock_diag. This commit makes the format more
compact: the flag's name is shorter and is printed only when the feature
is active, similar to other flag options.
Signed-off-by: Maxim Mikityanskiy <maximmi@...dia.com>
---
misc/ss.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/misc/ss.c b/misc/ss.c
index c4434a20..2bbb3b4d 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -2988,7 +2988,8 @@ static void tcp_tls_conf(const char *name, struct rtattr *attr)
static void tcp_tls_zc_sendfile(struct rtattr *attr)
{
- out(" zerocopy_sendfile: %s", attr ? "active" : "inactive");
+ if (attr)
+ out(" zc_sendfile");
}
static void mptcp_subflow_info(struct rtattr *tb[])
--
2.25.1
Powered by blists - more mailing lists