Skip to content

Support RDMA events monitoring through

Michael Guralnik linux-rdma 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 6 repliesApplied
  2. v27 patches 1 replySuperseded
  3. v17 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Fix lockdep warning in ib_device_get_netdev by dropping optimization part from it
- Extend event info to include device names
- Instead of disregarding unknown events, report them to userspace
- Remove fill_mon_register and replace with fill_nldev_handle to fill netlink messages for register events

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7RDMA/mlx5: Check RoCE LAG status before getting netdevdrivers/infiniband/hw/mlx5/main.c+13 -61 reply
2/7RDMA/mlx5: Obtain upper net device only when neededdrivers/infiniband/hw/mlx5/main.c+1 -11 reply
3/7RDMA/mlx5: Initialize phys_port_cnt earlier in RDMA device creationdrivers/infiniband/hw/mlx5/ib_rep.c drivers/infiniband/hw/mlx5/main.c+3 -10 replies
4/7RDMA/device: Remove optimization in ib_device_get_netdev()drivers/infiniband/core/device.c+0 -91 reply
5/7RDMA/mlx5: Use IB set_netdev and get_netdev functionsdrivers/infiniband/core/device.c drivers/infiniband/hw/mlx5/ib_rep.c drivers/infiniband/hw/mlx5/main.c +5 more+191 -1030 replies
6/7RDMA/nldev: Add support for RDMA monitoringdrivers/infiniband/core/device.c drivers/infiniband/core/netlink.c drivers/infiniband/core/nldev.c +2 more+190 -02 replies
7/7RDMA/nldev: Expose whether RDMA monitoring is supporteddrivers/infiniband/core/nldev.c include/uapi/rdma/rdma_netlink.h+7 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLeon RomanovskyKalesh AP
1/7R-b R-b
2/7R-b R-b
3/7R-b
4/7R-b R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH rdma-next v3 0/7] Support RDMA events monitoring through

This series consists of multiple parts that collectively offer a method to monitor RDMA events from userspace.
Using netlink, users will be able to monitor their IB device events and changes such as device register, device unregister and netdev attachment.

The first 2 patches contain fixes in mlx5 lag code that are required for accurate event reporting in case of a lag bond.

Patch #3 initializes phys_port_cnt early in device probe to allow the IB-to-netdev mapping API to work properly.

Patches #4,#5 modify and export IB-to-netdev mapping API, making it accessible to all vendors who wish to rely on it for associating their IB device with a netdevice.

Patches #6,#7 add the netlink support for reporting IB device events to userspace.

Changes in v3:
- Fix lockdep warning in ib_device_get_netdev by dropping optimization part from it
- Extend event info to include device names
- Instead of disregarding unknown events, report them to userspace
- Remove fill_mon_register and replace with fill_nldev_handle to fill netlink messages for register events

Changes in v2:
- Fix compilation issues with forward declaration of ib_device
- Add missing setting of return code in error flow

Chiara Meiohas (5):
RDMA/mlx5: Initialize phys_port_cnt earlier in RDMA device creation RDMA/device: Remove optimization in ib_device_get_netdev() RDMA/mlx5: Use IB set_netdev and get_netdev functions RDMA/nldev: Add support for RDMA monitoring
RDMA/nldev: Expose whether RDMA monitoring is supported

Mark Bloch (2):
RDMA/mlx5: Check RoCE LAG status before getting netdev RDMA/mlx5: Obtain upper net device only when needed

 drivers/infiniband/core/device.c              |  51 ++++-
 drivers/infiniband/core/netlink.c             |   1 +
 drivers/infiniband/core/nldev.c               | 130 ++++++++++++
 drivers/infiniband/hw/mlx5/ib_rep.c           |  22 +-
 drivers/infiniband/hw/mlx5/main.c             | 197 +++++++++++++-----
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |   3 +-
 .../net/ethernet/mellanox/mlx5/core/lag/lag.c |  76 +++----
 include/linux/mlx5/device.h                   |   1 +
 include/linux/mlx5/driver.h                   |   2 +-
 include/rdma/ib_verbs.h                       |   2 +
 include/rdma/rdma_netlink.h                   |  12 ++
 include/uapi/rdma/rdma_netlink.h              |  16 ++
 12 files changed, 399 insertions(+), 114 deletions(-)
Signature · 1 line
2.17.2