diff options
author | qumingguang <qumingguang@huawei.com> | 2017-11-02 20:45:23 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 21:28:36 +0900 |
commit | c6dc52130536d6d3d750bf1097b3bc897f7ef054 (patch) | |
tree | a355ee74148a6ebaa97fc3a4a882ff76a91edb5e /net/ipv6/sysctl_net_ipv6.c | |
parent | ae064e6123f89f90af7e4ea190cc0c612643ca93 (diff) | |
download | linux-c6dc52130536d6d3d750bf1097b3bc897f7ef054.tar.bz2 |
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>
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
0 files changed, 0 insertions, 0 deletions