diff options
author | Chiara Meiohas <cmeiohas@nvidia.com> | 2024-09-09 19:30:25 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-09-13 07:29:34 +0200 |
commit | 12fb1153c53bf9b53e299c9775b84fa7838640f7 (patch) | |
tree | 1402d5440db4e8ee891576b80eef73b237c0d359 /include/uapi | |
parent | RDMA/nldev: Add support for RDMA monitoring (diff) | |
download | linux-12fb1153c53bf9b53e299c9775b84fa7838640f7.tar.xz linux-12fb1153c53bf9b53e299c9775b84fa7838640f7.zip |
RDMA/nldev: Expose whether RDMA monitoring is supported
Extend the "rdma sys" command to display whether RDMA
monitoring is supported.
RDMA monitoring is not supported in mlx4 because it does
not use the ib_device_set_netdev() API, which sends the
RDMA events.
Example output for kernel where monitoring is supported:
$ rdma sys show
netns shared privileged-qkey off monitor on copy-on-fork on
Example output for kernel where monitoring is not supported:
$ rdma sys show
netns shared privileged-qkey off monitor off copy-on-fork on
Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/20240909173025.30422-8-michaelgur@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/rdma/rdma_netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h index 5f9636d26050..39be09c0ffbb 100644 --- a/include/uapi/rdma/rdma_netlink.h +++ b/include/uapi/rdma/rdma_netlink.h @@ -579,6 +579,7 @@ enum rdma_nldev_attr { RDMA_NLDEV_ATTR_EVENT_TYPE, /* u8 */ + RDMA_NLDEV_SYS_ATTR_MONITOR_MODE, /* u8 */ /* * Always the end */ |