ramips: Add missing andmask to ramips_esw register read for recv_good value.
authorGabor Juhos <juhosg@openwrt.org>
Wed, 5 Sep 2012 20:08:43 +0000 (20:08 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 5 Sep 2012 20:08:43 +0000 (20:08 +0000)
commitefa1e9a95dcbc3659d0aef8ed3b5ee62e63fbc51
tree696754cf6818f5b3cbedcd6fa80491170caf8c89
parent736245fe46f7d068e9f400d4b9715d531c93ba11
ramips: Add missing andmask to ramips_esw register read for recv_good value.

Add missing andmask to ramips_esw register read for recv_good value.

Without the mask, recv_bad leaks into the recv_good packet count.
Didn't notice the bug before since you don't usually get bad
packets, so I only saw it when I was playing with overlength packets
earlier...

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 33322
target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c