RDMA/nldev: Allow counter manual mode configration through RDMA netlink
Provide an option to allow users to manually bind a qp with a counter through RDMA netlink. Limit it to users with ADMIN capability only. Signed-off-by: Mark Zhang <markz@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> 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
1bd8e0a9d0
commit
b389327df9
@@ -58,5 +58,8 @@ int rdma_counter_bind_qpn_alloc(struct ib_device *dev, u8 port,
|
||||
u32 qp_num, u32 *counter_id);
|
||||
int rdma_counter_unbind_qpn(struct ib_device *dev, u8 port,
|
||||
u32 qp_num, u32 counter_id);
|
||||
int rdma_counter_get_mode(struct ib_device *dev, u8 port,
|
||||
enum rdma_nl_counter_mode *mode,
|
||||
enum rdma_nl_counter_mask *mask);
|
||||
|
||||
#endif /* _RDMA_COUNTER_H_ */
|
||||
|
Reference in New Issue
Block a user