diff options
| author | Matan Barak <[email protected]> | 2015-10-15 15:38:46 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2015-10-22 03:48:17 +0000 |
| commit | d300ec528b799ca87935b3667f5563f397f00f85 (patch) | |
| tree | 731294d458a5a6f2717277497892271b3903d2de /drivers/infiniband/core/cache.c | |
| parent | IB/core: Add netdev and gid attributes paramteres to cache (diff) | |
| download | kernel-d300ec528b799ca87935b3667f5563f397f00f85.tar.gz kernel-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 <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
| -rw-r--r-- | drivers/infiniband/core/cache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index 5c054072ef20..639a7266bfaf 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -409,10 +409,10 @@ static int ib_cache_gid_find(struct ib_device *ib_dev, mask, port, index); } -int ib_cache_gid_find_by_port(struct ib_device *ib_dev, - const union ib_gid *gid, - u8 port, struct net_device *ndev, - u16 *index) +int ib_find_cached_gid_by_port(struct ib_device *ib_dev, + const union ib_gid *gid, + u8 port, struct net_device *ndev, + u16 *index) { int local_index; struct ib_gid_table **ports_table = ib_dev->cache.gid_cache; @@ -438,6 +438,7 @@ int ib_cache_gid_find_by_port(struct ib_device *ib_dev, return -ENOENT; } +EXPORT_SYMBOL(ib_find_cached_gid_by_port); static struct ib_gid_table *alloc_gid_table(int sz) { |
