aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/qed
diff options
context:
space:
mode:
authorManish Chopra <Manish.Chopra@qlogic.com>2015-10-26 05:02:33 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-27 22:34:54 -0400
commit9df2ed0415b13218f84262c2372323ef028310fc (patch)
tree897b187e6f8a81e73cf8bb9e6568910860a88497 /include/linux/qed
parenta2ec6172d29cf3aed92e9db40e83e36329db1dd5 (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')
-rw-r--r--include/linux/qed/qed_eth_if.h3
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 {
154 int (*eth_cqe_completion)(struct qed_dev *cdev, 154 int (*eth_cqe_completion)(struct qed_dev *cdev,
155 u8 rss_id, 155 u8 rss_id,
156 struct eth_slow_path_rx_cqe *cqe); 156 struct eth_slow_path_rx_cqe *cqe);
157
158 void (*get_vport_stats)(struct qed_dev *cdev,
159 struct qed_eth_stats *stats);
157}; 160};
158 161
159const struct qed_eth_ops *qed_get_eth_ops(u32 version); 162const struct qed_eth_ops *qed_get_eth_ops(u32 version);