OSDN Git Service

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)
commit17793833f81ceb319be599ec09498ec0136d9acf
tree0045a4322114970052d518a5262ab12d3a24317d
parent52c81f47f0d2680f0b2e7b61c1fa4d8ad35f3020
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