diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2017-05-03 15:51:32 +0800 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-08-26 02:14:45 +0100 |
| commit | a8da8ec40179617e595fca5eb4fb65d91a3aeb20 (patch) | |
| tree | affc61a9e213447b4716ddc1502778a9f2d4f0ce /kernel/timer.c | |
| parent | 641ddffc6fd2489f0f3aaba3fba8c5f012364d68 (diff) | |
tg3: don't clear stats while tg3_close
commit 37a7fdf2892be124545ddaf99b85de576121476c upstream.
Now tg3 NIC's stats will be cleared after ifdown/ifup. bond_get_stats traverse
its salves to get statistics,cumulative the increment.If a tg3 NIC is added to
bonding as a slave,ifdown/ifup will cause bonding's stats become tremendous value
(ex.1638.3 PiB) because of negative increment.
Fixes: 92feeabf3f67 ("tg3: Save stats across chip resets")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/timer.c')
0 files changed, 0 insertions, 0 deletions
