]> www.infradead.org Git - users/hch/misc.git/commit
RDMA/core: Implement RoCE GID port rescan and export delete function
authorChiara Meiohas <cmeiohas@nvidia.com>
Thu, 31 Oct 2024 13:36:51 +0000 (15:36 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 4 Nov 2024 11:57:21 +0000 (06:57 -0500)
commitaf7a35bf6c36a77624d3abe46b3830b7c2a5f20c
tree61dc566bbe07a91c142bea13689b50fc12437e55
parent6d9c7b272966f13ebbf39687620f395d97f4d15d
RDMA/core: Implement RoCE GID port rescan and export delete function

rdma_roce_rescan_port() scans all network devices in
the system and adds the gids if relevant to the RoCE device
port. When not in bonding mode it adds the GIDs of the
netdevice in this port. When in bonding mode it adds the
GIDs of both the port's netdevice and the bond master
netdevice.

Export roce_del_all_netdev_gids(), which  removes all GIDs
associated with a specific netdevice for a given port.

Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Link: https://patch.msgid.link/674d498da4637a1503ff1367e28bd09ff942fd5e.1730381292.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/roce_gid_mgmt.c
include/rdma/ib_verbs.h