diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2014-01-09 13:09:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-12 08:52:58 +0400 |
commit | 5665dc6488902606b2d80ed640bb1e189aabddfe (patch) | |
tree | 7130f6d0c8800d1f99e87a0cfd5ad1a5aa2cb184 /drivers/net/ethernet/atheros/alx/hw.h | |
parent | ac45a23c53b224d3957008643cf508cd7f2fece3 (diff) | |
download | linux-5665dc6488902606b2d80ed640bb1e189aabddfe.tar.xz |
alx: add stats update function
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/alx/hw.h')
-rw-r--r-- | drivers/net/ethernet/atheros/alx/hw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/alx/hw.h b/drivers/net/ethernet/atheros/alx/hw.h index 872b3628a678..854d80704f12 100644 --- a/drivers/net/ethernet/atheros/alx/hw.h +++ b/drivers/net/ethernet/atheros/alx/hw.h @@ -486,6 +486,9 @@ struct alx_hw { /* PHY link patch flag */ bool lnk_patch; + + /* cumulated stats from the hardware (registers are cleared on read) */ + struct alx_hw_stats stats; }; static inline int alx_hw_revision(struct alx_hw *hw) @@ -553,6 +556,7 @@ bool alx_phy_configured(struct alx_hw *hw); void alx_configure_basic(struct alx_hw *hw); void alx_disable_rss(struct alx_hw *hw); bool alx_get_phy_info(struct alx_hw *hw); +void alx_update_hw_stats(struct alx_hw *hw); static inline u32 alx_speed_to_ethadv(int speed, u8 duplex) { |