[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241112095802.2355220-1-cmeioahs@nvidia.com>
Date: Tue, 12 Nov 2024 11:57:57 +0200
From: Chiara Meiohas <cmeioahs@...dia.com>
To: <dsahern@...il.com>, <leonro@...dia.com>
CC: <linux-rdma@...r.kernel.org>, <netdev@...r.kernel.org>, <jgg@...dia.com>,
<stephen@...workplumber.org>, Chiara Meiohas <cmeiohas@...dia.com>
Subject: [PATCH v3 iproute2-next 0/5] Add RDMA monitor support
From: Chiara Meiohas <cmeiohas@...dia.com>
This series adds support to a new command to monitor IB events
and expands the rdma-sys command to indicate whether this new
functionality is supported.
We've also included a fix for a typo in rdma-link man page.
Command usage and examples are in the commits and man pages.
These patches are complimentary to the kernel patches:
https://lore.kernel.org/linux-rdma/20240821051017.7730-1-michaelgur@nvidia.com/
https://lore.kernel.org/linux-rdma/093c978ef2766fd3ab4ff8798eeb68f2f11582f6.1730367038.git.leon@kernel.org/
--
v1->v2
- Print hex value if an unknown event is received
- Add IB device and net device names in the output
- Add IB device and net device rename events
v2->v3
- Return an error if monitoring is not supported by the kernel
- Modify initialization of the event_types_str array for better clarity and
remove static allocation
- Replace "extern int json;" with "#include "utils.h"
- Wrap line at 80 characters
Chiara Meiohas (5):
rdma: Add support for rdma monitor
rdma: Expose whether RDMA monitoring is supported
rdma: Fix typo in rdma-link man page
rdma: update uapi headers
rdma: Add IB device and net device rename events
include/mnl_utils.h | 1 +
lib/mnl_utils.c | 5 +
man/man8/rdma-link.8 | 2 +-
man/man8/rdma-monitor.8 | 51 +++++++
man/man8/rdma-system.8 | 9 +-
man/man8/rdma.8 | 7 +-
rdma/Makefile | 3 +-
rdma/include/uapi/rdma/rdma_netlink.h | 2 +
rdma/monitor.c | 209 ++++++++++++++++++++++++++
rdma/rdma.c | 3 +-
rdma/rdma.h | 1 +
rdma/sys.c | 6 +
rdma/utils.c | 2 +
13 files changed, 293 insertions(+), 8 deletions(-)
create mode 100644 man/man8/rdma-monitor.8
create mode 100644 rdma/monitor.c
--
2.44.0
Powered by blists - more mailing lists