mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
83c2c1fcbd
commit
6e7be47a53
3 changed files with 104 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue