summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2009-04-16 23:33:00 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-05-02 10:24:40 -0700
commit67b9b52d81ad636ae454e474ed52eb145d8284b5 (patch)
tree2c3be867596e0c87778db42a70a69e1394e798f6 /usr
parentca66c0da0992f6bc96c80d10b446b57849669663 (diff)
r8169: Don't update statistics counters when interface is down
Upstream as 355423d0849f4506bc71ab2738d38cb74429aaef (post 2.6.28). Some Realtek chips (RTL8169sb/8110sb in my case) are unable to retrieve ethtool statistics when the interface is down. The process stays in endless loop in rtl8169_get_ethtool_stats. This is because these chips need to have receiver enabled (CmdRxEnb bit in ChipCmd register) that is cleared when the interface is going down. It's better to update statistics only when the interface is up and otherwise return copy of statistics grabbed when the interface was up (in rtl8169_close). It is interesting that PCI-E NICs (like 8168b/8111b...) are not affected. Signed-off-by: Ivan Vecera <ivecera@redhat.com> Acked-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions