On 1/31/2023 5:26 PM, Ferruh Yigit wrote:
There is an inconsistency at displaying Tx dropped value for per port
forwarding stats and accumulated forwarding stats.
While displaying per port TX-dropped value, it only takes
'ports_stats[pt_id].tx_dropped' into account,
but for accumulated TX-dropped results it takes both
'ports_stats[pt_id].tx_dropped' & 'stats.oerrors' into account.
To fix, make both per port and accumulated stats display 'tx_dropped'
and 'stats.oerrors' (ports_stats[pt_id].tx_dropped + stats.oerrors).
Fixes: 53324971a14e ("app/testpmd: display/clear forwarding stats on demand")
Cc: [email protected]
Reported-by: Joshua Washington <[email protected]>
Signed-off-by: Ferruh Yigit <[email protected]>
Acked-by: Aman Singh <[email protected]>
---
Cc: [email protected]
Mail list reference:
https://inbox.dpdk.org/dev/[email protected]/
---
<snip>