diff options
author | Parav Pandit <parav@mellanox.com> | 2018-01-18 10:11:17 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-19 13:05:38 -0700 |
commit | 7a2f64ee4a953c64474a46b10b3b89d55a92c55e (patch) | |
tree | ba93a977cacc86be04ef7c7de0e676905f7c2c79 /include/rdma | |
parent | 411460ac50b0832eeb631d167a355dfe9a228c89 (diff) | |
download | linux-7a2f64ee4a953c64474a46b10b3b89d55a92c55e.tar.bz2 |
RDMA/ucma: Use rdma cm API to query GID
Make use of rdma_read_gids() API to read SGID and DGID which returns
correct GIDs for RoCE and other transports.
rdma_addr_get_dgid() for RoCE for client side connections returns MAC
address, instead of DGID.
rdma_addr_get_sgid() for RoCE doesn't return correct SGID for IPv6 and
when more than one IP address is assigned to the netdevice.
Therefore use transport agnostic rdma_read_gids() API provided by rdma_cm
module.
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>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions