]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sky2: Receive Overflows not counted
authorMirko Lindner <mlindner@marvell.com>
Tue, 26 Mar 2013 06:38:35 +0000 (06:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:16 +0000 (09:26 -0700)
commit37bfa0ab2d469f3aa5fccb284ec33e2ead5525b6
treeb166df3739fbbafb07e8d8e9c8bb90547b141f4b
parent2441c1d702fd8986237b8b49bffe8aa44670a346
sky2: Receive Overflows not counted

[ Upstream commit 9cfe8b156c21cf340b3a10ecb3022fbbc1c39185 ]

The sky2 driver doesn't count the Receive Overflows because the MAC
interrupt for this event is not set in the MAC's interrupt mask.
The MAC's interrupt mask is set only for Transmit FIFO Underruns.

Fix: The correct setting should be (GM_IS_TX_FF_UR | GM_IS_RX_FF_OR)
Otherwise the Receive Overflow event will not generate any interrupt.
The  Receive Overflow interrupt is handled correctly

Signed-off-by: Mirko Lindner <mlindner@marvell.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/sky2.h