]> git.baikalelectronics.ru Git - 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)
commit38f5f2391ab539291ea86f316312ec0eeeefaf82
tree2668cf4439e26ddac8e6eef59ce60245ef959485
parentc0dd34b463b80e8fdc8540d3a4821de6a4320f9c
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