Bug 1153

Summary: net/i40e: not all tx error counts in NIC statistics
Product: DPDK Reporter: Max Khizhinsky (khizmax)
Component: ethdevAssignee: beilei.xing
Status: UNCONFIRMED ---    
Severity: normal CC: beilei.xing, david.marchand, kaiwenx.deng, rferrandop
Priority: Normal    
Version: 22.11   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Max Khizhinsky 2022-12-16 16:44:54 CET
in i40_ethdev.c, function i40e_read_stats_registers:

```
stats->oerrors  = ns->eth.tx_errors +
		  pf->main_vsi->eth_stats.tx_errors;
```

This code does not take into account `ns->tx_dropped_link_down` counter.
Correct oerrors should be:

```
stats->oerrors  = ns->eth.tx_errors +
		  pf->main_vsi->eth_stats.tx_errors +
                  ns->tx_dropped_link_down
```
Comment 1 Max Khizhinsky 2022-12-16 16:46:12 CET
DPDK versions: 19.11, 20.11, 21.11, 22.11
Comment 2 Raul Ferrando 2022-12-28 21:42:54 CET
Hi, I want to take a look into this. Is still available?
Comment 3 dengkaiwen 2023-11-03 09:31:44 CET
please offer the reproduce steps with standard DPDK API like testpmd, l3fwd and other examples.