aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/rdma_user_cm.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2020-05-04 16:25:41 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-12 19:52:27 -0300
commit17793833f81ceb319be599ec09498ec0136d9acf (patch)
tree0045a4322114970052d518a5262ab12d3a24317d /include/uapi/rdma/rdma_user_cm.h
parentRDMA/mlx5: Remove duplicated assignment to variable rcqe_sz (diff)
downloadlinux-dev-17793833f81ceb319be599ec09498ec0136d9acf.tar.xz
linux-dev-17793833f81ceb319be599ec09498ec0136d9acf.zip
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>
Diffstat (limited to 'include/uapi/rdma/rdma_user_cm.h')
-rw-r--r--include/uapi/rdma/rdma_user_cm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h
index e42940a215a3..1bb6e75d254b 100644
--- a/include/uapi/rdma/rdma_user_cm.h
+++ b/include/uapi/rdma/rdma_user_cm.h
@@ -164,6 +164,8 @@ struct rdma_ucm_query_route_resp {
__u32 num_paths;
__u8 port_num;
__u8 reserved[3];
+ __u32 ibdev_index;
+ __u32 reserved1;
};
struct rdma_ucm_query_addr_resp {
@@ -175,6 +177,8 @@ struct rdma_ucm_query_addr_resp {
__u16 dst_size;
struct __kernel_sockaddr_storage src_addr;
struct __kernel_sockaddr_storage dst_addr;
+ __u32 ibdev_index;
+ __u32 reserved1;
};
struct rdma_ucm_query_path_resp {