[PATCH] app/testpmd: fix forwarding stats for Tx dropped
Singh, Aman Deep
aman.deep.singh at intel.com
Tue Feb 7 11:10:35 CET 2023
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: stable at dpdk.org
>
> Reported-by: Joshua Washington <joshwash at google.com>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at amd.com>
Acked-by: Aman Singh <aman.deep.singh at intel.com>
> ---
>
> Cc: david.marchand at redhat.com
>
> Mail list reference:
> https://inbox.dpdk.org/dev/a440ab60-9624-f21e-396a-239bdf2aa1a1@amd.com/
> ---
<snip>
More information about the dev
mailing list