OSDN Git Service

RDMA/netlink: Implement counter dumpit calback
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:40 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:55 +0000 (10:22 -0300)
commitc4ffee7c9bdba7b189df3251e375c4c7e93a91ac
treeed75e314d5e0132be0ac53ff0b718ec79af2df0c
parentb47ae6f803b727952dfb37afd83e51c465147b85
RDMA/netlink: Implement counter dumpit calback

This patch adds the ability to return all available counters together with
their properties and hwstats.

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/counters.c
drivers/infiniband/core/device.c
drivers/infiniband/core/nldev.c
include/rdma/ib_verbs.h
include/rdma/rdma_counter.h
include/uapi/rdma/rdma_netlink.h