diff options
author | Matan Barak | 2015-10-15 17:38:46 +0200 |
---|---|---|
committer | Doug Ledford | 2015-10-22 05:48:17 +0200 |
commit | d300ec528b799ca87935b3667f5563f397f00f85 (patch) | |
tree | 731294d458a5a6f2717277497892271b3903d2de /drivers/infiniband/core/device.c | |
parent | IB/core: Add netdev and gid attributes paramteres to cache (diff) | |
download | kernel-qcow2-linux-d300ec528b799ca87935b3667f5563f397f00f85.tar.gz kernel-qcow2-linux-d300ec528b799ca87935b3667f5563f397f00f85.tar.xz kernel-qcow2-linux-d300ec528b799ca87935b3667f5563f397f00f85.zip |
IB/core: Expose and rename ib_find_cached_gid_by_port cache API
Sometime consumers might want to search for a GID in a specific port.
For example, when a WC arrives and we want to search the GID
that matches that port - it's better to search only the relevant
port.
Exposing and renaming ib_cache_gid_find_by_port in order to match
the naming convention of the module.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/device.c')
-rw-r--r-- | drivers/infiniband/core/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index f22ce487fd3a..179e8134d57f 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -838,8 +838,8 @@ int ib_find_gid(struct ib_device *device, union ib_gid *gid, for (port = rdma_start_port(device); port <= rdma_end_port(device); ++port) { if (rdma_cap_roce_gid_table(device, port)) { - if (!ib_cache_gid_find_by_port(device, gid, port, - ndev, index)) { + if (!ib_find_cached_gid_by_port(device, gid, port, + ndev, index)) { *port_num = port; return 0; } |