OSDN Git Service

RDMA/core: Simplify rdma_addr_get_sgid() to not support RoCE
authorParav Pandit <parav@mellanox.com>
Thu, 18 Jan 2018 08:11:19 +0000 (10:11 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 19 Jan 2018 20:05:38 +0000 (13:05 -0700)
commit15cbc5197693e138b16138b46050499e1cdebd1a
tree1d4c6a8767cfa2b05ecd59c8c37a611944fd9588
parenta2e812ea26043b115b310f3aa0cefb9be0fc83d1
RDMA/core: Simplify rdma_addr_get_sgid() to not support RoCE

Now that all callers who care about RoCE addresses have been
converted to use rdma_read_gids() simplify rdma_addr_get_sgid()
to only support real GID addresses.

Callers should only use it for OPA and IB transports.

The now deleted implementation for RoCE has several bugs related to IPv6
support and incorrect/inconsistent 'GID' addresses compared to the CM
paths.

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>
include/rdma/ib_addr.h