diff options
author | Mark Zhang <markz@mellanox.com> | 2019-07-02 13:02:40 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-05 10:22:55 -0300 |
commit | c4ffee7c9bdba7b189df3251e375c4c7e93a91ac (patch) | |
tree | ed75e314d5e0132be0ac53ff0b718ec79af2df0c /include/rdma/rdma_counter.h | |
parent | b47ae6f803b727952dfb37afd83e51c465147b85 (diff) | |
download | linux-rpi-c4ffee7c9bdba7b189df3251e375c4c7e93a91ac.tar.gz linux-rpi-c4ffee7c9bdba7b189df3251e375c4c7e93a91ac.tar.bz2 linux-rpi-c4ffee7c9bdba7b189df3251e375c4c7e93a91ac.zip |
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>
Diffstat (limited to 'include/rdma/rdma_counter.h')
-rw-r--r-- | include/rdma/rdma_counter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/rdma_counter.h b/include/rdma/rdma_counter.h index 9f93a2403c9c..f2a5c8efc404 100644 --- a/include/rdma/rdma_counter.h +++ b/include/rdma/rdma_counter.h @@ -37,6 +37,7 @@ struct rdma_counter { struct kref kref; struct rdma_counter_mode mode; struct mutex lock; + struct rdma_hw_stats *stats; u8 port; }; @@ -47,4 +48,6 @@ int rdma_counter_set_auto_mode(struct ib_device *dev, u8 port, int rdma_counter_bind_qp_auto(struct ib_qp *qp, u8 port); int rdma_counter_unbind_qp(struct ib_qp *qp, bool force); +int rdma_counter_query_stats(struct rdma_counter *counter); + #endif /* _RDMA_COUNTER_H_ */ |