commit | a7aa8a028dcaeb6ad4e4161399dd26713e95efd2 | [log] [tgz] |
---|---|---|
author | Mark Einon <mark.einon@gmail.com> | Sun Jul 03 18:08:22 2011 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue Jul 05 19:54:58 2011 -0700 |
tree | ad0aa9e9cb90080f7dc80617adac5297e8aa56bc | |
parent | 2b4baab313fefc4eaef7a034f5ff8c8c08a48daf [diff] |
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 <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>