summaryrefslogtreecommitdiff
path: root/include/uapi/linux/rds.h
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2019-06-03 07:28:01 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-06 03:07:06 +0300
commitfe3475af3bdf38fac78787ec2fe9eedaf2518188 (patch)
tree18e24b6e1102c9b28096416b2f0bdcb7e04c92a2 /include/uapi/linux/rds.h
parentdceebd4c927427669fa285b7d972a8156e2ef233 (diff)
downloadlinux-fe3475af3bdf38fac78787ec2fe9eedaf2518188.tar.xz
net: rds: add per rds connection cache statistics
The variable cache_allocs is to indicate how many frags (KiB) are in one rds connection frag cache. The command "rds-info -Iv" will output the rds connection cache statistics as below: " RDS IB Connections: LocalAddr RemoteAddr Tos SL LocalDev RemoteDev 1.1.1.14 1.1.1.14 58 255 fe80::2:c903:a:7a31 fe80::2:c903:a:7a31 send_wr=256, recv_wr=1024, send_sge=8, rdma_mr_max=4096, rdma_mr_size=257, cache_allocs=12 " This means that there are about 12KiB frag in this rds connection frag cache. Since rds.h in rds-tools is not related with the kernel rds.h, the change in kernel rds.h does not affect rds-tools. rds-info in rds-tools 2.0.5 and 2.0.6 is tested with this commit. It works well. Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/rds.h')
-rw-r--r--include/uapi/linux/rds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h
index 5d0f76c780e5..fd6b5f66e2c5 100644
--- a/include/uapi/linux/rds.h
+++ b/include/uapi/linux/rds.h
@@ -250,6 +250,7 @@ struct rds_info_rdma_connection {
__u32 rdma_mr_max;
__u32 rdma_mr_size;
__u8 tos;
+ __u32 cache_allocs;
};
struct rds6_info_rdma_connection {
@@ -264,6 +265,7 @@ struct rds6_info_rdma_connection {
__u32 rdma_mr_max;
__u32 rdma_mr_size;
__u8 tos;
+ __u32 cache_allocs;
};
/* RDS message Receive Path Latency points */