Files
linux/drivers
qumingguang c6dc521305 net: hns3: hns3:fix a bug about statistic counter in reset process
All member of Struct hdev->hw_stats is initialized to 0 as hdev is
allocated by devm_kzalloc. But in reset process, hdev will not be
allocated again, so need clear hdev->hw_stats in reset process, otherwise
the statistic will be wrong after reset. This patch set all of the
statistic counters to zero after reset.

Signed-off-by: qumingguang <qumingguang@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-02 21:28:36 +09:00
..
2017-10-27 08:23:21 -06:00
2017-10-07 13:17:07 +02:00
2017-08-29 13:46:35 +02:00
2017-08-22 11:04:51 -07:00
2017-08-30 14:03:42 -06:00
2017-08-24 09:57:28 +02:00