diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2020-02-19 13:19:53 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-19 23:54:25 +0300 |
commit | 779820c2e1e9251ddfdce5dd43b0bba30cd22271 (patch) | |
tree | 00975b84f8b73b2c6150ba56724f12d2bc37b4f5 /include/rdma/ib_cache.h | |
parent | 167b95ec887029c5fe0fb0f601fb209323f498fb (diff) | |
download | linux-779820c2e1e9251ddfdce5dd43b0bba30cd22271.tar.xz |
RDMA/core: Add helper function to retrieve driver gid context from gid attr
Adding a helper function to retrieve the driver gid context from the gid
attr.
Link: https://lore.kernel.org/r/1582107594-5180-2-git-send-email-selvin.xavier@broadcom.com
Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_cache.h')
-rw-r--r-- | include/rdma/ib_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h index 870b5e6c06db..e06d13388ae7 100644 --- a/include/rdma/ib_cache.h +++ b/include/rdma/ib_cache.h @@ -39,6 +39,7 @@ int rdma_query_gid(struct ib_device *device, u8 port_num, int index, union ib_gid *gid); +void *rdma_read_gid_hw_context(const struct ib_gid_attr *attr); const struct ib_gid_attr *rdma_find_gid(struct ib_device *device, const union ib_gid *gid, enum ib_gid_type gid_type, |