RDMA/smc: Replace ib_query_gid with rdma_get_gid_attr
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 17 Aug 2018 22:45:51 +0000 (16:45 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 17 Aug 2018 22:45:51 +0000 (16:45 -0600)
commitb4c296f9c96420b8e7e92466ea5960f10ee20aae
tree6a4daf90b495839111519fc7d69ad570c385e617
parent0a3173a5f09bc58a3638ecfd0a80bdbae55e123c
RDMA/smc: Replace ib_query_gid with rdma_get_gid_attr

All RDMA ULPs should be using rdma_get_gid_attr instead of
ib_query_gid. Convert SMC to use the new API.

In the process correct some confusion with gid_type - if attr->ndev is
!NULL then gid_type can never be IB_GID_TYPE_IB by
definition. IB_GID_TYPE_ROCE shares the same enum value and is probably
what was intended here.

Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_cache.h
net/smc/smc_ib.c