]> bbs.cooldavid.org Git - net-next-2.6.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)
commit7b5e078cf04ea5b8b7ccffaf9a3607097f5c2359
tree77b0aff56780511d9e874655957e25d5624107c3
parent1f4b16128439b225c2986f06d015c848c290d7d9
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