RDMA/nldev: Allow counter manual mode configration through RDMA netlink
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:44 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:55 +0000 (10:22 -0300)
commitb389327df90530d47931d0f5616b5cd6abb96c96
treecbfc3204639306a6a2db3636665d80649f283105
parent1bd8e0a9d0fd1be03d2833a0c15ac676bdf275d8
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>
drivers/infiniband/core/nldev.c
include/rdma/rdma_counter.h
include/uapi/rdma/rdma_netlink.h