]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Support IB sub device with type "SMI"
authorMark Zhang <markzhang@nvidia.com>
Sun, 16 Jun 2024 16:08:36 +0000 (19:08 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 1 Jul 2024 12:38:04 +0000 (15:38 +0300)
commitbca51197620a257e2954be99b16f05115c3b2630
tree55987041e74a909279f5d391e58a9a1e0ec88dd0
parent2a5db20fa532198639671713c6213f96ff285b85
RDMA/core: Support IB sub device with type "SMI"

This patch adds 2 APIs, as well as driver operations to support adding
and deleting an IB sub device, which provides part of functionalities
of it's parent.

A sub device has a type; for a sub device with type "SMI", it provides
the smi capability through umad for its parent, meaning uverb is not
supported.

A sub device cannot live without a parent. So when a parent is
released, all it's sub devices are released as well.

Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/44253f7508b21eb2caefea3980c2bc072869116c.1718553901.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/device.c
drivers/infiniband/core/uverbs_main.c
include/rdma/ib_verbs.h
include/uapi/rdma/rdma_netlink.h