summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMark Zhang <markz@mellanox.com>2019-07-02 12:02:46 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-07-05 15:22:55 +0200
commit6e7be47a53459ba3d288c3240ccd948fc699c377 (patch)
treeca67b0e39771c2d36eccf6b2f76a2e77bf36600b /include/rdma
parentRDMA/nldev: Allow get counter mode through RDMA netlink (diff)
downloadlinux-6e7be47a53459ba3d288c3240ccd948fc699c377.tar.xz
linux-6e7be47a53459ba3d288c3240ccd948fc699c377.zip
RDMA/nldev: Allow get default counter statistics through RDMA netlink
This patch adds the ability to return the hwstats of per-port default counters (which can also be queried through sysfs nodes). Signed-off-by: Mark Zhang <markz@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 0c5151a12ae4..50806bef9f20 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2124,6 +2124,7 @@ struct ib_port_data {
struct net_device __rcu *netdev;
struct hlist_node ndev_hash_link;
struct rdma_port_counter port_counter;
+ struct rdma_hw_stats *hw_stats;
};
/* rdma netdev type - specifies protocol type */