xdp-project / xdp-tools

Utilities and example programs for use with XDP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xdp-trafficgen not generating traffic to another interface in skb mode

RogerioFSR opened this issue · comments

Hello I am currently trying to generate traffic from an interface that is linked to another by the ip link tool (veth1-veth2)

They are in different namespaces. The trafficgenerator works if the receiving interface is running:
xdp-bench pass veth1

while I am doing this in the generating interface:
xdp-trafficgen udp veth2

Now if I run:
xdp-bench pass -m skb veth1

and generate traffic with the same command as above, there are no packets being transmitted. Why is this?

For reference I am running ubuntu 22.04 LTS

image

image

Additionally, in any of the modes, my trafficgenerator seems to reduce performance if I increase the threads used, what could possibly explain this behaviour?
With 1 thread:
image
image

With 4 threads:
image
image

I will give it a go once I am able to sit down in front of this again.

As for the RX/TX suggestion, it's weird, because this behavior only happens on the PASS, while on the DROP the threading scales just fine.

An update: It was indeed GRO that was disabled on both interfaces. I had assumed it would be on by default as it does for real interfaces, however seems like it is not the case.

Thank you very much.