[dpdk-dev] [PATCH v2] app/testpmd: fix burst stat reporting

Iremonger, Bernard bernard.iremonger at intel.com
Wed May 16 13:09:58 CEST 2018


> -----Original Message-----
> From: Daniel Shelepov [mailto:dashel at microsoft.com]
> Sent: Monday, May 14, 2018 10:12 PM
> To: Lu, Wenzhuo <wenzhuo.lu at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>; Iremonger, Bernard
> <bernard.iremonger at intel.com>
> Cc: dev at dpdk.org; Daniel Shelepov <dashel at microsoft.com>
> Subject: [PATCH v2] app/testpmd: fix burst stat reporting
> 
> When RTE_TEST_PMD_RECORD_BURST_STATS is enabled, testpmd collects
> burst statistics and includes them in the port stats report.  The summary
> should include top 2 most frequent burst sizes, but there is a bug in finding
> the top-2.  During the scan of burst size counts, the
> top-2 can change only if top-1 also changes.
> 
> Added logic to update the top-2 if current burst size is larger than existing
> top-2, but smaller than existing top-1.
> 
> Fixes: af75078fece3 ("first public release")
> 
> Signed-off-by: Daniel Shelepov <dashel at microsoft.com>

Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>



More information about the dev mailing list