diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-05 09:38:38 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-09 12:11:22 -0600 |
commit | 28e39894ed4fecd19956ae672a312f65419bd703 (patch) | |
tree | a60eee1ff761ac6a54b90ff5a5dccbf4b04dae43 /drivers/infiniband/core | |
parent | b1b639708f7431c85df4f70ae0d82c336705d7d4 (diff) |
RDMA/core: Remove ib_find_cached_gid() and ib_find_cached_gid_by_port()
Remove these two functions since all their callers have been removed.
See also commit ea8c2d8f6014 ("RDMA/core: Remove unused ib cache
functions").
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/cache.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index 357a5cb328c7..c5fa67c72f23 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -747,26 +747,6 @@ const struct ib_gid_attr *rdma_find_gid_by_filter( return res; } -int ib_find_cached_gid_by_port(struct ib_device *ib_dev, - const union ib_gid *gid, - enum ib_gid_type gid_type, - u8 port, struct net_device *ndev, - u16 *index) -{ - const struct ib_gid_attr *res; - - res = rdma_find_gid_by_port(ib_dev, gid, gid_type, port, ndev); - if (IS_ERR(res)) - return PTR_ERR(res); - - if (index) - *index = res->index; - rdma_put_gid_attr(res); - return 0; - -} -EXPORT_SYMBOL(ib_find_cached_gid_by_port); - static struct ib_gid_table *alloc_gid_table(int sz) { struct ib_gid_table *table = kzalloc(sizeof(*table), GFP_KERNEL); @@ -1038,24 +1018,6 @@ const struct ib_gid_attr *rdma_find_gid(struct ib_device *device, } EXPORT_SYMBOL(rdma_find_gid); -int ib_find_cached_gid(struct ib_device *device, const union ib_gid *gid, - enum ib_gid_type gid_type, struct net_device *ndev, - u8 *port_num, u16 *index) -{ - const struct ib_gid_attr *res; - - res = rdma_find_gid(device, gid, gid_type, ndev); - if (IS_ERR(res)) - return PTR_ERR(res); - if (port_num) - *port_num = res->port_num; - if (index) - *index = res->index; - rdma_put_gid_attr(res); - return 0; -} -EXPORT_SYMBOL(ib_find_cached_gid); - int ib_get_cached_pkey(struct ib_device *device, u8 port_num, int index, |