Re: [PATCH net] tg3: don't clear stats while tg3_close

2017-05-03 Thread David Miller
From: YueHaibing Date: Wed, 3 May 2017 15:51:32 +0800 > 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

[PATCH net] tg3: don't clear stats while tg3_close

2017-05-03 Thread YueHaibing
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: