numam-dpdk/app
Cunming Liang 002ade70e9 app/test: measure cycles per packet in Rx/Tx
The unit test can be used to measure cycles per packet in different rx/tx routines.
The NIC works in loopback mode. So it doesn't require test equipment to measure throughput.
As result, the unit test shows the average cycles per packet consuming.
When doing the test, make sure the link is UP.

Usage Example:
1. Run unit test app in interactive mode
    app/test -c f -n 4 -- -i
2. Run and wait for the result
    pmd_perf_autotest

There's option to choose rx/tx pair, default is vector.
    set_rxtx_mode [vector|scalar|full|hybrid]
Note: To get acurate scalar fast, please choose 'vector' or 'hybrid' without INC_VEC=y in config

It supports to measure standalone rx or tx.
Usage Example:
Choose rx or tx standalone, default is both
    set_rxtx_anchor [rxtx|rxonly|txonly]

It also supports to measure standalone RX burst cycles.
In this way, it won't repeat re-send received packets.
Now it measures two situations, poll before/after xmit(w or w/o desc. cache conflict)
Usage Example:
Set stream control mode, by default is continuous
    set_rxtx_sc [continuous|poll_before_xmit|poll_after_xmit]

Test report: http://dpdk.org/ml/archives/dev/2014-October/007145.html

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Yong Liu <yong.liu@intel.com>
2014-11-13 00:52:29 +01:00
..
cmdline_test app: simplify makefiles 2014-08-26 17:52:33 +02:00
dump_cfg app: simplify makefiles 2014-08-26 17:52:33 +02:00
test app/test: measure cycles per packet in Rx/Tx 2014-11-13 00:52:29 +01:00
test-acl acl: fix build and runtime for default target 2014-09-03 03:26:50 +02:00
test-pipeline examples: do not probe pci twice 2014-09-29 13:08:53 +02:00
test-pmd ether: new function to format mac address 2014-11-13 00:48:16 +01:00
Makefile app/pipeline: packet framework benchmark 2014-06-17 03:34:11 +02:00