]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix a statistics issue about l3l4 checksum error
authorYufeng Mo <moyufeng@huawei.com>
Fri, 28 Jun 2019 11:50:15 +0000 (19:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 16:39:49 +0000 (09:39 -0700)
commitcfa2bfa1ac3ecbec5a37599e2f840dc77393e6e2
tree403ebb07f5f16e6648a542f89c6572e379c1808c
parent4ccba80f5095bc2130d0e3043cbf89a99d402052
net: hns3: fix a statistics issue about l3l4 checksum error

The frame column is based on rx_crc_errors and rx_frame_errors. So
l3l4 checksum error should not be counted by rx_crc_errors. Instead,
l3l4 checksum error should be counted in ifconfig error column.

Fixes: 2c3288c288b3 ("net: hns3: refactor the statistics updating for netdev")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c