]> git.baikalelectronics.ru Git - kernel.git/commit
net/rds: Use rdma_read_gids to read connection GIDs
authorParav Pandit <parav@mellanox.com>
Thu, 18 Jan 2018 08:11:18 +0000 (10:11 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 19 Jan 2018 20:05:38 +0000 (13:05 -0700)
commit8602e48f22f76858e66bbf9c1b808015a99866fd
treec11b19fb500e727a6d9ee776de18e4c17cd97e43
parent39b73148cec126b5cb0b9b66d712e19d78f8b308
net/rds: Use rdma_read_gids to read connection GIDs

Use the newly introduced rdma_read_gids() to read the SGID and DGID for
the connection which returns GID correctly for RoCE transport as well.

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>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
net/rds/ib.c