From: Mark Einon Date: Sun, 3 Jul 2011 17:08:22 +0000 (+0100) Subject: staging: et131x: Fix stats->rx_packets accounting X-Git-Tag: v3.1-rc1~232^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7aa8a028dcaeb6ad4e4161399dd26713e95efd2;p=pandora-kernel.git staging: et131x: Fix stats->rx_packets accounting The net_device_stats->rx_packets counter is not getting updated. This is due to checking a fMP_ADAPTER_LINK_DETECTION flag prior to updating which is never set. Solved by using netif_carrier_ok() to test for a link, and removing the fMP_ADAPTER_LINK_DETECTION flag, which looks to be a broken mechanism. Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed