Skip to contentSkip to conversation

net/i40e: not all tx error counts in NIC statistics

Bug 1153 [email protected] 1 participant 1 message Dec 16, 2022

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1153

            Bug ID: 1153
           Summary: net/i40e: not all tx error counts in NIC statistics
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

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
```
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.