]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sky2: Receive Overflows not counted
authorMirko Lindner <mlindner@marvell.com>
Tue, 26 Mar 2013 06:38:35 +0000 (06:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2013 18:53:19 +0000 (14:53 -0400)
commit9cfe8b156c21cf340b3a10ecb3022fbbc1c39185
treec35b98a3b725b2717ed90b9990338b30756c7715
parentd2aa8eec7f83f1b18f492e1e9aa634a001c2f58c
sky2: Receive Overflows not counted

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>
drivers/net/ethernet/marvell/sky2.h