Hi all,
Tbh, I’m new to the DOCA API and development. I’m writing a program for Bluefield 2 DPU based on flow_shared_counter_sample.c
The program seems to work with some packets received at port 0, however, I don’t see any packet getting forwarded to port 1 (using tcpdump on port 1).
Thus, may I ask if
- There is a way to debug the program?
- How to print the header fields/content of packets received at port 0 and port 1 in real-time.
- If the packet is matched or mismatched, and what fields are mismatched?
- How to generate packet flow to test the program? I’m using netcat
nc -s 192.168.10.4 -p 5678 192.168.10.1 1234
OVS: p0 → sf0 → flow_shared_counter_sample → sf1 → pf0hpf
Program output:
Thank you!

