IB/core: Introduce GID attribute get, put and hold APIs
authorParav Pandit <parav@mellanox.com>
Tue, 5 Jun 2018 05:40:17 +0000 (08:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 17:09:05 +0000 (11:09 -0600)
commitbf399c2cadfa66d399d01d5a92a7bb0a112f1568
tree4bec872b23a13d79c1b65083bd236fbe1f7fce3e
parentf4df9a7c34d8f9e84af73ce187bcdf6fea65c4cb
IB/core: Introduce GID attribute get, put and hold APIs

This patch introduces three APIs, rdma_get_gid_attr(),
rdma_put_gid_attr(), and rdma_hold_gid_attr() which expose the reference
counting for GID table entries to the entire stack. The kref counting is
based on the struct ib_gid_attr pointer

Later patches will convert more cache query function to return struct
ib_gid_attrs.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c
include/rdma/ib_cache.h