Intel® Acceleration Stack User Guide: Intel® FPGA Programmable Acceleration Card N3000-N/2

ID 683362
Date 11/01/2021
Public
Document Table of Contents

10.4. Get Link Statistics

You can get link statistics using:
  • Linux ethtool
  • OPAE fpgastats command
$ ethtool -S npacf0g0l0
This command provides the Ethernet statistics counts for port 0. Implementation of Ethernet statistics count is optional, check with your FPGA workload provider. For example, the FlexRAN image does not implement Ethernet statistics.
Note: The Ethernet links between the FPGA and XL710 controllers is always up when the FPGA is being programmed.
The OPAE fpgastats command lists all FPGA Ethernet MAC counters on the Intel® FPGA PAC N3000-N/2 specified by bus number. The fpgastats command is useful for detecting packet drops inside the FPGA because it provides both Ethernet wrapper 0 and 1 in an easily read format.
$ sudo fpgastats [-h] [--segment SEGMENT] [--bus BUS] [--device DEVICE] [--function FUNCTION] [--clear] [--debug]

optional arguments:
  -h, --help            show this help message and exit
  --segment SEGMENT, -S SEGMENT
                        Segment number of PCIe device
  --bus BUS, -B BUS     Bus number of PCIe device
  --device DEVICE, -D DEVICE
                        Device number of PCIe device
  --function FUNCTION, -F FUNCTION
                        Function number of PCIe device
  --clear, -c           Clear statistics
  --debug, -d           Output debug information
You can clear Ethernet counts with the clear option:
$ sudo fpgastats -B 0x8a -c
Note: The XL710 controller does not support the OPAE fpgastats command.