diff options
author | Parav Pandit <parav@mellanox.com> | 2017-11-14 13:52:12 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2017-12-18 23:37:10 +0100 |
commit | dbb12562f7c2377c210ed6b2e79eda5bfe23c30c (patch) | |
tree | c87633b9fb04c6426a8d4ac9e7e0e4bc064396f5 /include/rdma/ib_verbs.h | |
parent | RDMA/core: Avoid copying ifindex twice (diff) | |
download | linux-dbb12562f7c2377c210ed6b2e79eda5bfe23c30c.tar.xz linux-dbb12562f7c2377c210ed6b2e79eda5bfe23c30c.zip |
IB/{core, ipoib}: Simplify ib_find_gid to search only for IB link layer
Currently there are no users of ib_find_gid for RoCE transport. It is
only used by IPoIB.
Therefore its simplified to ignore RoCE ports and GID type check which
was previously done for every port.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r-- | include/rdma/ib_verbs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index fd84cda5ed7c..cfd837049a32 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2836,8 +2836,7 @@ int ib_modify_port(struct ib_device *device, struct ib_port_modify *port_modify); int ib_find_gid(struct ib_device *device, union ib_gid *gid, - enum ib_gid_type gid_type, struct net_device *ndev, - u8 *port_num, u16 *index); + struct net_device *ndev, u8 *port_num, u16 *index); int ib_find_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index); |