Bug 1153 - net/i40e: not all tx error counts in NIC statistics
Summary: net/i40e: not all tx error counts in NIC statistics
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: 22.11
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: beilei.xing
URL:
Depends on:
Blocks:
 
Reported: 2022-12-16 16:44 CET by Max Khizhinsky
Modified: 2023-11-03 09:31 CET (History)
4 users (show)



Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.