]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
RDMA/cma: Introduce API to read GIDs for multiple transports
authorParav Pandit <parav@mellanox.com>
Thu, 18 Jan 2018 08:11:16 +0000 (10:11 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 19 Jan 2018 20:05:38 +0000 (13:05 -0700)
commit411460ac50b0832eeb631d167a355dfe9a228c89
tree2668cf4439e26ddac8e6eef59ce60245ef959485
parent2ffcf04263832557dc55d5a7339d8f29428b679a
RDMA/cma: Introduce API to read GIDs for multiple transports

This patch introduces an API that allows legacy applications to query
GIDs for a rdma_cm_id which is used during connection establishment.

GIDs are stored and created differently for iWarp, IB and RoCE transports.
Therefore rdma_read_gids() returns GID for all the transports hiding
such internal details to caller.
It is usable for client side and server side connections.

In general continued use of GID based addressing outside of IB is
discouraged, so rdma_read_gids() should not be used by any new ULPs.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c
include/rdma/rdma_cm.h