diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-25 11:11:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-26 18:59:36 -0500 |
commit | 55edc6e6ff728681ebc10d418222740705376664 (patch) | |
tree | 66136e674adde15b9668f13d4e0486482b7f1851 /drivers/net/sfc/net_driver.h | |
parent | 1dfc5ceacd00365a9089e98643f4b26253d5a6aa (diff) |
sfc: Split MAC stats DMA initiation and completion
From: Steve Hodgson <shodgson@solarflare.com>
Currently we initiate MAC stats DMA and busy-wait for completion when
stats are requested. We can improve on this with a periodic timer to
initiate and poll for stats, and opportunistically poll when stats are
requested.
Since efx_nic::stats_disable_count and efx_stats_{disable,enable}()
are Falcon-specific, rename them and move them accordingly.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index d0755ab056fe..262aeabdcab7 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -717,7 +717,6 @@ union efx_multicast_hash { | |||
717 | * &struct net_device_stats. | 717 | * &struct net_device_stats. |
718 | * @stats_buffer: DMA buffer for statistics | 718 | * @stats_buffer: DMA buffer for statistics |
719 | * @stats_lock: Statistics update lock. Serialises statistics fetches | 719 | * @stats_lock: Statistics update lock. Serialises statistics fetches |
720 | * @stats_disable_count: Nest count for disabling statistics fetches | ||
721 | * @mac_op: MAC interface | 720 | * @mac_op: MAC interface |
722 | * @mac_address: Permanent MAC address | 721 | * @mac_address: Permanent MAC address |
723 | * @phy_type: PHY type | 722 | * @phy_type: PHY type |
@@ -799,7 +798,6 @@ struct efx_nic { | |||
799 | struct efx_mac_stats mac_stats; | 798 | struct efx_mac_stats mac_stats; |
800 | struct efx_buffer stats_buffer; | 799 | struct efx_buffer stats_buffer; |
801 | spinlock_t stats_lock; | 800 | spinlock_t stats_lock; |
802 | unsigned int stats_disable_count; | ||
803 | 801 | ||
804 | struct efx_mac_operations *mac_op; | 802 | struct efx_mac_operations *mac_op; |
805 | unsigned char mac_address[ETH_ALEN]; | 803 | unsigned char mac_address[ETH_ALEN]; |