diff mbox series

[v2,2/8] SUNRPC display xprt's main value in sysfs's xprt_info

Message ID 20210624032853.4776-3-olga.kornievskaia@gmail.com (mailing list archive)
State New, archived
Headers show
Series allow for offlining/removing xprt via sysfs | expand

Commit Message

Olga Kornievskaia June 24, 2021, 3:28 a.m. UTC
From: Olga Kornievskaia <kolga@netapp.com>

Display in sysfs in the information about the xprt if this is a
main transport or not.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
---
 net/sunrpc/sysfs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/net/sunrpc/sysfs.c b/net/sunrpc/sysfs.c
index 45c0cf18360d..6ef5469fe998 100644
--- a/net/sunrpc/sysfs.c
+++ b/net/sunrpc/sysfs.c
@@ -103,10 +103,10 @@  static ssize_t rpc_sysfs_xprt_info_show(struct kobject *kobj,
 	ret = sprintf(buf, "last_used=%lu\ncur_cong=%lu\ncong_win=%lu\n"
 		       "max_num_slots=%u\nmin_num_slots=%u\nnum_reqs=%u\n"
 		       "binding_q_len=%u\nsending_q_len=%u\npending_q_len=%u\n"
-		       "backlog_q_len=%u\n", xprt->last_used, xprt->cong,
-		       xprt->cwnd, xprt->max_reqs, xprt->min_reqs,
+		       "backlog_q_len=%u\nmain_xprt=%d\n", xprt->last_used,
+		       xprt->cong, xprt->cwnd, xprt->max_reqs, xprt->min_reqs,
 		       xprt->num_reqs, xprt->binding.qlen, xprt->sending.qlen,
-		       xprt->pending.qlen, xprt->backlog.qlen);
+		       xprt->pending.qlen, xprt->backlog.qlen, xprt->main);
 	xprt_put(xprt);
 	return ret + 1;
 }