]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: Remove repeat statistic of rx_errors
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:09 +0000 (18:18 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:20 +0000 (10:47 -0500)
BugLink: http://bugs.launchpad.net/bugs/1756097
The igu_rx_err_pkt indicates the same error with
mac_rx_fcs_err_pkt_num, so remove it.

Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 7ea5cbdc66097f501398ef4810f0c94f4120647f)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 3b13b41a27045ed54d98dd2a4f460724ad07de14..2cca37cc403c6ee4c9584ff871dec3dc7f48253c 100644 (file)
@@ -645,7 +645,6 @@ static void hclge_update_netstat(struct hclge_hw_stats *hw_stats,
 
        net_stats->rx_errors = hw_stats->mac_stats.mac_rx_oversize_pkt_num;
        net_stats->rx_errors += hw_stats->mac_stats.mac_rx_undersize_pkt_num;
-       net_stats->rx_errors += hw_stats->all_32_bit_stats.igu_rx_err_pkt;
        net_stats->rx_errors += hw_stats->all_32_bit_stats.igu_rx_no_eof_pkt;
        net_stats->rx_errors += hw_stats->all_32_bit_stats.igu_rx_no_sof_pkt;
        net_stats->rx_errors += hw_stats->mac_stats.mac_rx_fcs_err_pkt_num;