staging: et131x: Fix stats->rx_packets accounting
authorMark Einon <mark.einon@gmail.com>
Sun, 3 Jul 2011 17:08:22 +0000 (18:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jul 2011 02:54:58 +0000 (19:54 -0700)
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 <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found