[dpdk-dev] [PATCH v5 0/4] display testpmd forwarding engine stats on the fly

Ferruh Yigit ferruh.yigit at intel.com
Mon Mar 25 15:05:28 CET 2019


On 3/25/2019 8:51 AM, David Marchand wrote:
> Here is a little series that makes it possible to display and clear
> testpmd fwd engines while they run without having to stop them.
> This is mostly handy when running stress tests and you look for packets
> drops without having to stop/start testpmd forwarding.
> 
> Example:
> 
> testpmd> show fwd stats all 
> 
>   ------- Forward Stats for RX Port= 0/Queue= 0 -> TX Port= 1/Queue= 0 -------
>   RX-packets: 261977064      TX-packets: 261977064      TX-dropped: 0             
> 
>   ------- Forward Stats for RX Port= 1/Queue= 0 -> TX Port= 0/Queue= 0 -------
>   RX-packets: 261985142      TX-packets: 261985142      TX-dropped: 0             
> 
>   ---------------------- Forward statistics for port 0  ----------------------
>   RX-packets: 261977096      RX-dropped: 0             RX-total: 261977096
>   TX-packets: 261985155      TX-dropped: 0             TX-total: 261985155
>   ----------------------------------------------------------------------------
> 
>   ---------------------- Forward statistics for port 1  ----------------------
>   RX-packets: 261985188      RX-dropped: 0             RX-total: 261985188
>   TX-packets: 261977128      TX-dropped: 0             TX-total: 261977128
>   ----------------------------------------------------------------------------
> 
>   +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
>   RX-packets: 523962284      RX-dropped: 0             RX-total: 523962284
>   TX-packets: 523962283      TX-dropped: 0             TX-total: 523962283
>   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> testpmd> show fwd stats all 
> 
>   ------- Forward Stats for RX Port= 0/Queue= 0 -> TX Port= 1/Queue= 0 -------
>   RX-packets: 274293770      TX-packets: 274293642      TX-dropped: 128           
> 
>   ------- Forward Stats for RX Port= 1/Queue= 0 -> TX Port= 0/Queue= 0 -------
>   RX-packets: 274301850      TX-packets: 274301850      TX-dropped: 0             
> 
>   ---------------------- Forward statistics for port 0  ----------------------
>   RX-packets: 274293802      RX-dropped: 0             RX-total: 274293802
>   TX-packets: 274301862      TX-dropped: 0             TX-total: 274301862
>   ----------------------------------------------------------------------------
> 
>   ---------------------- Forward statistics for port 1  ----------------------
>   RX-packets: 274301894      RX-dropped: 0             RX-total: 274301894
>   TX-packets: 274293706      TX-dropped: 128           TX-total: 274293834
>   ----------------------------------------------------------------------------
> 
>   +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
>   RX-packets: 548595696      RX-dropped: 0             RX-total: 548595696
>   TX-packets: 548595568      TX-dropped: 128           TX-total: 548595696
>   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 

For series,
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Series applied to dpdk-next-net/master, thanks.



More information about the dev mailing list