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)
commitd4ae3a4ae2b7641cc61ae6c8a019cc63601e852f
tree696754cf6818f5b3cbedcd6fa80491170caf8c89
parent68eeafd44eb7274d53881160eacab4a2e662f64e
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33322 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c