diff options
author | Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> | 2007-05-10 08:22:25 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-05-11 21:53:11 (GMT) |
commit | 491976b2bce07f2c44e32a987fa6eb9edf8b0aeb (patch) | |
tree | b1a02510ed57250fe1c3966626a7b5c0e462b087 /drivers/net/s2io.h | |
parent | c53d49453f738555c252304357cd7da6ba1f1ee0 (diff) | |
download | linux-fsl-qoriq-491976b2bce07f2c44e32a987fa6eb9edf8b0aeb.tar.xz |
S2IO: Statistics for link up/down and memory allocated/freed
1. Added statistics for link up/down, last link up/down.
2. Statistics for memory allocated/freed.
3. Changed level of some DBG_PRINTs.
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r-- | drivers/net/s2io.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 24a3a80..54baa0b 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h @@ -98,6 +98,29 @@ struct swStat { /* Other statistics */ unsigned long long mem_alloc_fail_cnt; unsigned long long watchdog_timer_cnt; + unsigned long long mem_allocated; + unsigned long long mem_freed; + unsigned long long link_up_cnt; + unsigned long long link_down_cnt; + unsigned long long link_up_time; + unsigned long long link_down_time; + + /* Transfer Code statistics */ + unsigned long long tx_buf_abort_cnt; + unsigned long long tx_desc_abort_cnt; + unsigned long long tx_parity_err_cnt; + unsigned long long tx_link_loss_cnt; + unsigned long long tx_list_proc_err_cnt; + + unsigned long long rx_parity_err_cnt; + unsigned long long rx_abort_cnt; + unsigned long long rx_parity_abort_cnt; + unsigned long long rx_rda_fail_cnt; + unsigned long long rx_unkn_prot_cnt; + unsigned long long rx_fcs_err_cnt; + unsigned long long rx_buf_size_err_cnt; + unsigned long long rx_rxd_corrupt_cnt; + unsigned long long rx_unkn_err_cnt; }; /* Xpak releated alarm and warnings */ @@ -827,6 +850,7 @@ struct s2io_nic { #define LINK_UP 2 int task_flag; + unsigned long long start_time; #define CARD_DOWN 1 #define CARD_UP 2 atomic_t card_state; |