Visible to Intel only — GUID: ysw1521583546878
Ixiasoft
3.4. Running 10GbE Intel® PAC-to-PAC Test between two connected Intel® PACs
In this procedure, you can install the Intel® PACs in the same system or two separate systems with the Acceleration Stack. Unless shown otherwise, you can expect the commands to return similar outputs as the internal loopback test.
Figure 2. System Setup with Intel® PACs Installed on Same Host
Figure 3. System Setup with Intel® PACs Installed on Separate Hosts
- Install a QSFP+ optical module in each Intel® PAC and connect the QSFP+ ports with an optical cable.
- Assuming the two Intel® PACs are installed in the same system, find their PCI Bus:Device:Function mappings.
$ lspci | grep 09c4
Sample output: 04:00.0 Processing accelerators:Intel Corporation Device 09c4 06:00.0 Processing accelerators:Intel Corporation Device 09c4
- Load the AF for the 10GbE AFU example on both Intel® PACs.
$ cd $OPAE_PLATFORM_ROOT $ sudo fpgaconf hw/samples/eth_e2e_e10/bin/eth_e2e_e10.gbs -b 0x04 $ sudo fpgaconf hw/samples/eth_e2e_e10/bin/eth_e2e_e10.gbs -b 0x06
- cd $OPAE_PLATFORM_ROOT/hw/samples/eth_e2e_e10/sw
- Run the following steps on your Intel® PAC:
- Complie the library and application using the command:
$ make
- To configure the transceiver channel into 10G mode, write 10 to the following sysfs entry:
$ sudo sh -c "echo 10 > /sys/class/fpga/intel-fpga-dev.<instance_id>\ /intel-fpga-fme.<instance_id>/intel-pac-hssi.<instance_id>.\ auto/hssi_mgmt/config"
<instance_id> represents the consecutive numbering of device, fme, and hssi instances.
For example: sudo sh -c "echo 10 > /sys/class/fpga/intel-fpga-dev.0\ /intel-fpga-fme.0/intel-pac-hssi.2.auto/hssi_mgmt/config"
- To allow non-root users to access the 10GbE AFU instance, you can provide read and write privileges to the port (/dev/intel-fpga-port.\*) where \* denotes the respective socket. For example, to provide read and write privileges on Port 0:
$ sudo chmod 666 /dev/intel-fpga-port.0
- To resolve library dependency:
export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
- To disable the internal loopback on B:D:F - 00:0a:0b,
You must disable loopback on all the channels that are used in the test.$ ./pac_hssi_e10 -b 00 -d 0a -f 0b --channel=0\ --action=loopback_disable
- To trigger the DFE:
sudo sh -c "echo 1 > /sys/class/fpga/intel-fpga-dev.0/intel-fpga-fme.0/intel-pac-hssi.2.auto/hssi_mgmt/dfe_kickstart"
Verify that some of the DFE tap values are non-zero. This ensures that the script run is successful.cat /sys/class/fpga/intel-fpga-dev.0/intel-fpga-fme.0/intel-pac-hssi.2.auto/hssi_mgmt/dfe_kickstart
- To clear PHY, transmit, and receive statistics:
Sample output:$ ./pac_hssi_e10 -b 00 -d 0a -f 0b --channel=0 --action=stat_clear
Cleared TX stats on channel 0 Cleared RX stats on channel 0
- To transmit 0x1000 packets:
Sample output:$ ./pac_hssi_e10 -b 00 -d 0a -f 0b --channel=0 --action=pkt_send
Sent 0x10000 packets on channel 0
Note: After programming the eth_e2e_e10 AFU, the initial send of packets may drop the first packet. Subsequent packet sends do not drop any packets.Note: In pac_hssi_e10 [-h] [-b <bus>] [-d <device>] [-f <function>] [-m Dest. MAC] -a action, the Dest (destination) MAC address is user configurable. By default, the broadcast address is used as the destination MAC address. - To get PHY, transmit and receive statistics:
$ ./pac_hssi_e10 -b 00 -d 0a -f 0b --channel=0 --action=stat
Note: After every hot plug/unplug of the cables, you must trigger the DFE as discussed above after disabling internal loopback.For more details, refer to the README file located in the sw subdirectory to:$OPAE_PLATFORM_ROOT/hw/samples/eth_e2e_e10/sw/README.md
To run this example on a virtual machine:
- Program the eth_e2e_e10 AFU and configure the transceiver channel to 10G mode from the Host machine by referencing the previous substeps.
- Disable internal loopback and trigger DFE from the Host by refereccing the previous substeps.
- Follow the steps in the Running the OPAE in a Virtualized Environment section of the Intel® Acceleration Stack Quick Start Guide for Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA to create a virtual function and attach the virtual function to a virtual machine.
- Run the external loopback test on the virtual machine.
- Complie the library and application using the command: