diff options
author | Manish Chopra <Manish.Chopra@qlogic.com> | 2015-10-26 11:02:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-27 19:34:54 -0700 |
commit | 9df2ed0415b13218f84262c2372323ef028310fc (patch) | |
tree | 897b187e6f8a81e73cf8bb9e6568910860a88497 /include/linux/qed/qed_eth_if.h | |
parent | a2ec6172d29cf3aed92e9db40e83e36329db1dd5 (diff) |
qed: Add statistics support
Device statistics can be gathered on-demand. This adds the qed support for
reading the statistics [both function and port] from the device, and adds
to the public API a method for requesting the current statistics.
Signed-off-by: Manish Chopra <Manish.Chopra@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed/qed_eth_if.h')
-rw-r--r-- | include/linux/qed/qed_eth_if.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/qed/qed_eth_if.h b/include/linux/qed/qed_eth_if.h index ab1041424013..81ab178e31c1 100644 --- a/include/linux/qed/qed_eth_if.h +++ b/include/linux/qed/qed_eth_if.h @@ -154,6 +154,9 @@ struct qed_eth_ops { int (*eth_cqe_completion)(struct qed_dev *cdev, u8 rss_id, struct eth_slow_path_rx_cqe *cqe); + + void (*get_vport_stats)(struct qed_dev *cdev, + struct qed_eth_stats *stats); }; const struct qed_eth_ops *qed_get_eth_ops(u32 version); |