Copyright (c) 2016-2017 Atomic Rules LLC

Ed Czeck
June 2017

Required Bitstream Class: FX100GX1 FX10GX4 FXPPP


This test measures the software latency of the PMD for fetching
packets.   The measurements are done by taking the time to complete a
call with rte_eth_rx_burst().  The time taken for this call is
amortized over all the packets received with that call.  Average,
standard deviation, min and max times are reported.

Times are measured using DPDK's rte_get_timer_cycles() and the
reported result are converted to nano-seconds.





The test setup consists of 3 layers.
-- The core C++ application (ark_duplex_perf.cpp)
-- The Makefile which sets up the environment and call the application
   with appropriate arguments.  The configuration for the packet
   generator (pg.conf) is created for each run of the application.
-- A runtest.sh script which invokes the application via the Makefile
   for a range of configurations.
These layers are described in greater detail below.


Options for the applications are:
  --burst       -b <val>     Number of packets read in each burst
  --rxQueueSize -z <val>     Size of buffer queue
  --txQueueSize -t <val>     Size of buffer queue
  --minPkt      -m <val>     Min packet size
  
  --help        -h           Obvious message


Environments variable which are read in the Makefile are passed to the
application or otherwise set in the packet generator configuration.
	 BURST          Set Burst for Rx
	 BYTESPERCYCLE  Packet Generator shaping rate
	 ITERATIONS     Numberr of loop iteration run
	 LOOPDELAY      Add us delay to main loop
	 NULL           Measure variance in getting time
	 PKTDIR         Config code for packet director
	 PKTSIZEMIN     Min Packet Size generated
	 QUEUESIZE      Set Rx and Tx Queue Depth


Limitations: Only supports testing on a single port.
