]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: Fix different hardware statistics versions.
authorMike Ditto <mditto@google.com>
Mon, 26 Jul 2010 04:54:28 +0000 (21:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jul 2010 04:54:28 +0000 (21:54 -0700)
commitef2e48efc25d11a633bc4674c4cfa37d1b23c21e
tree77b0aff56780511d9e874655957e25d5624107c3
parent4f838008cc32a8dfc511f5945b56b86a242aa318
forcedeth: Fix different hardware statistics versions.

The macros for the values of the bit field describing the four
different versions of statistics supported by different hardware
variants were being misused.  Where the code was trying to test if the
hardware implements V3, it was actually testing whether it implements
any of V1, V2, or V3, causing the driver to report statistics that
don't really exist in the hardware, with bogus values.

Signed-off-by: Mike Ditto <mditto@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c