net: hns3: Remove repeat statistic of rx_errors
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>
This commit is contained in:
parent
200a88c69d
commit
7ea5cbdc66
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user