[PATCH 0/2] RDMA/nldev: Reply with the command of the request

From: Nikolaos Gkarlis

Date: Sun Nov 01 2026 - 09:16:22 EST


Two doit handlers reply with another command's message type:
RDMA_NLDEV_CMD_PORT_GET with RDMA_NLDEV_CMD_GET, and RDMA_NLDEV_CMD_STAT_DEL
with RDMA_NLDEV_CMD_STAT_SET. A client that decodes replies based on their
type mis-decodes them. AFAIK iproute2 igores the reply type and rdma-core
does not use these commands. I spotted these when writing an RDMA netlink
client for Go.

I used AI to prepare the patches but I reviewed and tested myself.

Nikolaos Gkarlis (2):
RDMA/nldev: Reply to RDMA_NLDEV_CMD_PORT_GET with its own command
RDMA/nldev: Reply to RDMA_NLDEV_CMD_STAT_DEL with its own command

drivers/infiniband/core/nldev.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)


base-commit: c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539
--
2.55.0