Test dpdk-testpmd performance in loopback mode

Test dpdk-testpmd performance in loopback mode

  1. Create testpmd job

  2. Start the job

  3. If dbells_supp :

    • Attach doorbells filters

  4. Retrieve link speed from running testpmd

  5. Initialize Tx and Rx statistics

  6. Retrieve Tx stats from running testpmd

  7. Check and log measurement results

Igor Romanov Igor.Romanov@oktetlabs.ru

Parameters:

testpmd_command_txpkts

Comma-separated list of segment lengths of transmitted packets, set by testpmd command set txpkts

n_fwd_cores

Number of CPU cores for testpmd on IUT

testpmd_command_loopback_mode

Driver-specific loopback mode, set by testpmd command port config all loopback; the iteration is skipped if IUT does not support it

testpmd_arg_forward_mode

Forwarding mode of testpmd on IUT (testpmd option --forward-mode)

testpmd_arg_tx_first

Whether to start forwarding by sending a burst of packets first (testpmd option --tx-first)

testpmd_arg_stats_period

Period in seconds of testpmd statistics display (testpmd option --stats-period)

testpmd_arg_no_lsc_interrupt

Whether to disable link status change interrupt (testpmd option --no-lsc-interrupt)

testpmd_arg_txd

Number of Tx ring descriptors (testpmd option --txd)

testpmd_arg_burst

Number of packets per burst (testpmd option --burst)

testpmd_arg_rxfreet

Free threshold of Rx rings, 0 means driver default (testpmd option --rxfreet)

testpmd_arg_txfreet

Free threshold of Tx rings, 0 means driver default (testpmd option --txfreet)