aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sysfs.c
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2018-06-05 08:40:17 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-06-18 11:09:05 -0600
commitbf399c2cadfa66d399d01d5a92a7bb0a112f1568 (patch)
tree4bec872b23a13d79c1b65083bd236fbe1f7fce3e /drivers/infiniband/core/sysfs.c
parentRDMA: Use GID from the ib_gid_attr during the add_gid() callback (diff)
downloadlinux-dev-bf399c2cadfa66d399d01d5a92a7bb0a112f1568.tar.xz
linux-dev-bf399c2cadfa66d399d01d5a92a7bb0a112f1568.zip
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>
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
0 files changed, 0 insertions, 0 deletions