summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/eata_pio.h
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2009-04-29 13:58:18 +0200
committerDavid S. Miller <davem@davemloft.net>2009-04-30 02:24:19 +0200
commit93af7aca44f0e82e67bda10a0fb73d383edcc8bd (patch)
treee5d336ee7b7eac1b2e0091e948085de284ae344c /drivers/scsi/eata_pio.h
parentmv643xx_eth: OOM handling fixes (diff)
downloadlinux-93af7aca44f0e82e67bda10a0fb73d383edcc8bd.tar.xz
linux-93af7aca44f0e82e67bda10a0fb73d383edcc8bd.zip
mv643xx_eth: 64bit mib counter read fix
On several mv643xx_eth hardware versions, the two 64bit mib counters for 'good octets received' and 'good octets sent' are actually 32bit counters, and reading from the upper half of the register has the same effect as reading from the lower half of the register: an atomic read-and-clear of the entire 32bit counter value. This can under heavy traffic occasionally lead to small numbers being added to the upper half of the 64bit mib counter even though no 32bit wrap has occured. Since we poll the mib counters at least every 30 seconds anyway, we might as well just skip the reads of the upper halves of the hardware counters without breaking the stats, which this patch does. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Cc: stable@kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/eata_pio.h')
0 files changed, 0 insertions, 0 deletions