Generic XDP and veth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

while I was trying to forward packets using Generic XDP [1], I encountered the following problem:

ARP and ICMP packets are forwarded correctly, and ping works fine.
It seems not all TCP packets are forwarded by XDP program, both netcat and iperf are not working for me.

(Using same configuration as [1])
sudo ip netns exec ns2 nc -l 8080
sudo ip netns exec ns1 nc 10.1.1.22 8080

sudo ip netns exec ns2 iperf3 -s 
sudo ip netns exec ns1 iperf3 -c 10.1.1.22

It seems such traffic is not processed by XDP program.
Using tcpdump on veth1 in root namespace I’m not able to see ARP and ICMP traffic (as expected) because forwarded by XDP program, but I’m able to see all the traffic it’s not forwarded.

Is this behavior expected?
Did I miss something in veth configuration?

Thanks in advance,
Matteo

[1] https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/test_xdp_redirect.sh



[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux