Loopback test tcpdump empty
dariusgrassi opened this issue · 1 comments
Hi,
I am currently trying to get the loopback test working, however tcpdump on the FPGA NIC iface is not outputting any packets. Here are the steps I followed:
- Make the kernel driver
- Connect port 0 on the NIC to a separate machine
- Insert the kernel driver:
insmod onic.ko
- Verify interfaces appear:
ifconfig -a
(ens1f0 and ens1f1) - Reveal Xilinx devices:
sudo lspci -PPd 10ee:
(3a:00.0/3b:00.0 and 3a:00.0/3b:00.1) - Enable loopback on port 0:
sudo ./pcimem /sys/devices/pci0000:3a/0000:3a:00.0/0000:3b:00.0/resource2 0x8090 w 0x1
- Assign IP to NIC port 0:
ifconfig ens1f0 192.168.1.10 up
- Run tcpdump to capture packets on the interface:
tcpdump -i ens1f0 -xx
- (from other machine)
ping 192.168.1.10
Issue: tcpdump on the FPGA displays no traffic
However, tcpdump on a separate NIC attached to the same server as the FPGA does display traffic between the FPGA (192.168.1.10) and the separate machine (192.168.10.15). tcpdump of the interface on the separate machine displays the same.
Essentially, everything appears to be working, except tcpdump on the FPGA NIC interface.
Xilinx Alveo U280
OpenNIC shell w/ 2 CMAC ports
Ubuntu 20.04
Thanks!
The fix for me was directly connecting to a separate machine and disabling the RS flag in the source onic_main.c.