summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qed/qed.h
diff options
context:
space:
mode:
authorManish Chopra <Manish.Chopra@qlogic.com>2015-10-26 12:02:33 +0300
committerDavid S. Miller <davem@davemloft.net>2015-10-28 05:34:54 +0300
commit9df2ed0415b13218f84262c2372323ef028310fc (patch)
tree897b187e6f8a81e73cf8bb9e6568910860a88497 /drivers/net/ethernet/qlogic/qed/qed.h
parenta2ec6172d29cf3aed92e9db40e83e36329db1dd5 (diff)
downloadlinux-9df2ed0415b13218f84262c2372323ef028310fc.tar.xz
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 'drivers/net/ethernet/qlogic/qed/qed.h')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed.h b/drivers/net/ethernet/qlogic/qed/qed.h
index ca6cc8a7fc64..ac17d8669b1a 100644
--- a/drivers/net/ethernet/qlogic/qed/qed.h
+++ b/drivers/net/ethernet/qlogic/qed/qed.h
@@ -212,7 +212,20 @@ struct qed_qm_info {
u32 pf_rl;
};
+struct storm_stats {
+ u32 address;
+ u32 len;
+};
+
+struct qed_storm_stats {
+ struct storm_stats mstats;
+ struct storm_stats pstats;
+ struct storm_stats tstats;
+ struct storm_stats ustats;
+};
+
struct qed_fw_data {
+ struct fw_ver_info *fw_ver_info;
const u8 *modes_tree_buf;
union init_op *init_ops;
const u32 *arr_data;
@@ -296,6 +309,7 @@ struct qed_hwfn {
/* QM init */
struct qed_qm_info qm_info;
+ struct qed_storm_stats storm_stats;
/* Buffer for unzipping firmware data */
void *unzip_buf;