RDMA/restrack: Translate from ID to restrack object
Add new general helper to get restrack entry given by ID and their respective type. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
fd47c2f99f
commit
18c4c66f76
@@ -179,4 +179,7 @@ int rdma_nl_put_driver_u32_hex(struct sk_buff *msg, const char *name,
|
||||
int rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, u64 value);
|
||||
int rdma_nl_put_driver_u64_hex(struct sk_buff *msg, const char *name,
|
||||
u64 value);
|
||||
struct rdma_restrack_entry *rdma_restrack_get_byid(struct ib_device *dev,
|
||||
enum rdma_restrack_type type,
|
||||
u32 id);
|
||||
#endif /* _RDMA_RESTRACK_H_ */
|
||||
|
Reference in New Issue
Block a user