diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2010-06-16 09:26:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-19 01:12:15 -0400 |
commit | 8c7bbb925337705dd1459070ac620aeec6a29666 (patch) | |
tree | 688e5310b27bc0a276a578eeacf8b9b272bc0504 /drivers/net/e1000e/e1000.h | |
parent | 3f0c16e84438d657d29446f85fe375794a93f159 (diff) |
e1000e: separate out PHY statistics register updates
The 82577/82578 parts have half-duplex statistics in PHY registers. These
need only be read when in half-duplex and should all be read at once rather
than one at a time to prevent excessive cycles of acquiring/releasing the
PHY semaphore.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/e1000.h')
-rw-r--r-- | drivers/net/e1000e/e1000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h index c0b3db40bd73..79e7c4c18719 100644 --- a/drivers/net/e1000e/e1000.h +++ b/drivers/net/e1000e/e1000.h | |||
@@ -421,6 +421,7 @@ struct e1000_info { | |||
421 | #define FLAG2_HAS_PHY_WAKEUP (1 << 1) | 421 | #define FLAG2_HAS_PHY_WAKEUP (1 << 1) |
422 | #define FLAG2_IS_DISCARDING (1 << 2) | 422 | #define FLAG2_IS_DISCARDING (1 << 2) |
423 | #define FLAG2_DISABLE_ASPM_L1 (1 << 3) | 423 | #define FLAG2_DISABLE_ASPM_L1 (1 << 3) |
424 | #define FLAG2_HAS_PHY_STATS (1 << 4) | ||
424 | 425 | ||
425 | #define E1000_RX_DESC_PS(R, i) \ | 426 | #define E1000_RX_DESC_PS(R, i) \ |
426 | (&(((union e1000_rx_desc_packet_split *)((R).desc))[i])) | 427 | (&(((union e1000_rx_desc_packet_split *)((R).desc))[i])) |