]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ucma: Return stable IB device index as identifier
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 4 May 2020 13:25:41 +0000 (16:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 12 May 2020 22:52:27 +0000 (19:52 -0300)
commit2648c4c055237a306edfcf229894efc47f3708f7
tree0045a4322114970052d518a5262ab12d3a24317d
parente013e231c553961d02d93d250864065f221690fd
RDMA/ucma: Return stable IB device index as identifier

The librdmacm uses node_guid as identifier to correlate between IB devices
and CMA devices. However FW resets cause to such "connection" to be lost
and require from the user to restart its application.

Extend UCMA to return IB device index, which is stable identifier.

Link: https://lore.kernel.org/r/20200504132541.355710-1-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/ucma.c
include/uapi/rdma/rdma_user_cm.h