diff options
author | Parav Pandit | 2018-04-01 14:08:19 +0200 |
---|---|---|
committer | Jason Gunthorpe | 2018-04-04 05:33:47 +0200 |
commit | 0e1f9b924471c132dcf314476916e3c4bd4956b2 (patch) | |
tree | 85630799440f8e8bdfc667571b09b36a30c4396c /drivers/infiniband/hw/ocrdma/ocrdma_main.c | |
parent | RDMA/core: Update query_gid documentation for HCA drivers (diff) | |
download | kernel-qcow2-linux-0e1f9b924471c132dcf314476916e3c4bd4956b2.tar.gz kernel-qcow2-linux-0e1f9b924471c132dcf314476916e3c4bd4956b2.tar.xz kernel-qcow2-linux-0e1f9b924471c132dcf314476916e3c4bd4956b2.zip |
RDMA/providers: Simplify query_gid callback of RoCE providers
ib_query_gid() fetches the GID from the software cache maintained in
ib_core for RoCE ports.
Therefore, simplify the provider drivers for RoCE to treat query_gid()
callback as never called for RoCE, and only require non-RoCE devices to
implement it.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_main.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c index 4547aa28d4ae..eb8b6a935016 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c @@ -158,7 +158,6 @@ static int ocrdma_register_device(struct ocrdma_dev *dev) dev->ibdev.query_device = ocrdma_query_device; dev->ibdev.query_port = ocrdma_query_port; dev->ibdev.modify_port = ocrdma_modify_port; - dev->ibdev.query_gid = ocrdma_query_gid; dev->ibdev.get_netdev = ocrdma_get_netdev; dev->ibdev.get_link_layer = ocrdma_link_layer; dev->ibdev.alloc_pd = ocrdma_alloc_pd; |