Message ID | 20231016084113.288439-1-simei.su@intel.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Qi Zhang |
Headers | |
Series | net/idpf: fix incorrect status calculation | |
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/loongarch-compilation | success | Compilation OK |
ci/loongarch-unit-testing | success | Unit Testing PASS |
ci/Intel-compilation | success | Compilation OK |
ci/intel-Testing | success | Testing PASS |
ci/github-robot: build | success | github build: passed |
ci/intel-Functional | success | Functional PASS |
ci/iol-intel-Performance | success | Performance Testing PASS |
ci/iol-mellanox-Performance | success | Performance Testing PASS |
ci/iol-sample-apps-testing | warning | Testing issues |
ci/iol-unit-amd64-testing | fail | Testing issues |
ci/iol-unit-arm64-testing | success | Testing PASS |
ci/iol-compile-amd64-testing | success | Testing PASS |
ci/iol-compile-arm64-testing | success | Testing PASS |
ci/iol-intel-Functional | success | Functional Testing PASS |
ci/iol-broadcom-Performance | success | Performance Testing PASS |
ci/iol-broadcom-Functional | success | Functional Testing PASS |
Commit Message
diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 3af7cf0..d716e57 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/net/idpf/idpf_ethdev.c @@ -281,9 +281,11 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) idpf_vport_stats_update(&vport->eth_stats_offset, pstats); stats->ipackets = pstats->rx_unicast + pstats->rx_multicast + - pstats->rx_broadcast - pstats->rx_discards; + pstats->rx_broadcast + pstats->rx_discards + + pstats->rx_errors + pstats->rx_unknown_protocol; stats->opackets = pstats->tx_broadcast + pstats->tx_multicast + - pstats->tx_unicast; + pstats->tx_unicast + pstats->tx_discards + + pstats->tx_errors; stats->ierrors = pstats->rx_errors; stats->imissed = pstats->rx_discards; stats->oerrors = pstats->tx_errors + pstats->tx_discards;