]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: report when the RxNoPad optimization is set on TLS sockets
authorJakub Kicinski <kuba@kernel.org>
Mon, 31 Jul 2023 15:06:28 +0000 (08:06 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 3 Aug 2023 19:59:58 +0000 (12:59 -0700)
Similarly to RO ZC report when RxNoPad is set.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/ss.c

index e9d813596b91ac6475e494deb9412038034a4e32..c71b08f98525ddbf880b23dda31485dee723ac32 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -2983,12 +2983,6 @@ static void tcp_tls_conf(const char *name, struct rtattr *attr)
        }
 }
 
-static void tcp_tls_zc_sendfile(struct rtattr *attr)
-{
-       if (attr)
-               out(" zc_ro_tx");
-}
-
 static void mptcp_subflow_info(struct rtattr *tb[])
 {
        u_int32_t flags = 0;
@@ -3219,7 +3213,10 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r,
                        tcp_tls_cipher(tlsinfo[TLS_INFO_CIPHER]);
                        tcp_tls_conf("rxconf", tlsinfo[TLS_INFO_RXCONF]);
                        tcp_tls_conf("txconf", tlsinfo[TLS_INFO_TXCONF]);
-                       tcp_tls_zc_sendfile(tlsinfo[TLS_INFO_ZC_RO_TX]);
+                       if (!!tlsinfo[TLS_INFO_ZC_RO_TX])
+                               out(" zc_ro_tx");
+                       if (!!tlsinfo[TLS_INFO_RX_NO_PAD])
+                               out(" no_pad_rx");
                }
                if (ulpinfo[INET_ULP_INFO_MPTCP]) {
                        struct rtattr *sfinfo[MPTCP_SUBFLOW_ATTR_MAX + 1] =