[PATCH] app/testpmd: fix forwarding stats for Tx dropped

Ferruh Yigit ferruh.yigit at amd.com
Wed Feb 8 03:07:40 CET 2023


On 2/7/2023 10:10 AM, Singh, Aman Deep wrote:
> 
> 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: Huisong Li <lihuisong at huawei.com>
>
> Acked-by: Aman Singh <aman.deep.singh at intel.com>
> 

Applied to dpdk-next-net/main, thanks.



More information about the stable mailing list