Visible to Intel only — GUID: wyl1628020975593
Ixiasoft
3.5.2.6.1. Build and Install Netdev Driver
3.5.2.6.2. Enable VFs if SRIOV is Supported
3.5.2.6.3. Configure the Number of Channels Supported on the Device
3.5.2.6.4. Configure the MTU Value
3.5.2.6.5. Configure the Device Communication
3.5.2.6.6. Configure Transmit Queue Selection Mechanism
3.5.2.6.7. Test Procedure by Using Name Space Environment
3.5.2.6.8. PIO Test
Visible to Intel only — GUID: wyl1628020975593
Ixiasoft
3.5.2.5.3. Examples
- Testapp options (for Packet Gen/Val): ./testapp –help
- Pio Test:
Testapp command: sudo ./testapp --bdf 0000:01:00.0 --piotest
- BAS Test:
The BAS support is enabled on the hardware, enable the following flag in: user/common/include/ifc_mcdma.h
#define IFC_MCDMA_X16 /* For PCIe x16 */ #define IFC_MCDMA_X8 /* For PCIe x8 */
Commands:
To verify the write operation:./cli/testapp/testapp --bdf 0000:01:00.0\ --reqsize 1048576 --bas --transmit
To verify the read operation:./cli/testapp/testapp --bdf 0000:01:00.0\ --reqsize 1048576 --bas --receive
To verify the bi-direction operation:./cli/testapp/testapp --bdf 0000:01:00.0\ --reqsize 1048576 --bas --bidirection
Performance test:./cli/testapp/testapp --bdf 0000:01:00.0\ --reqsize 1048576 --basperf --bidirection
- For more example commands, check the software/user/cli/testapp/README.txt file.
Note: Reset the IP before starting the DMA by using the following command:
echo 1 > /sys/bus/pci/devices/\
<b:d:f>/mcdma_ipreset
Note:
- Please change following macros in cli/testapp/testapp.h
#define IFC_MCDMA_BAS_X16 _SHIFT_WIDTH 3 #define IFC_MCDMA_BAS_X8 _SHIFT_WIDTH 3
- By default, testapp tries to configure and enable BAS on BAR2. In case if there is a change of BAR needed, please change the resource file name in testapp.
if you want to change to BAR0, change resource name in path snprintf(path, PATH_MAX, "/sys/bus/pci/devices/%s/resource0", bdf);