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 transmitting packets - ndo_xdp_xmit resulting in error -6 on virtio net

tariromukute opened this issue · comments

Hi,

I'm working on running xdp-trafficgen within an OpenStack VM and encountering an error when sending packets.

VM Configuration:
Virtio-net with multiqueue enabled
4 vCPUs
4 combined queues (output of ethtool -l enp4s0)

xdp-trafficgen Output:

lo->enp4s0                327,680 err/s                 0 xmit/s       
lo->enp4s0                328,332 err/s                 0 xmit/s 

Tracing Output:
Enabling tracing (echo 1 > /sys/kernel/debug/tracing/events/xdp/enable ; cat /sys/kernel/debug/tracing/trace_pipe) indicates that ndo_xdp_xmit results in error -6

  xdp-trafficgen-6322    [000] b...1  1019.407753: xdp_redirect: prog_id=123 action=REDIRECT ifindex=1 to_ifindex=3 err=0 map_id=2147483647 map_index=0
  xdp-trafficgen-6322    [000] b...1  1019.407753: xdp_redirect: prog_id=123 action=REDIRECT ifindex=1 to_ifindex=3 err=0 map_id=2147483647 map_index=0
  xdp-trafficgen-6322    [000] b...1  1019.407753: xdp_devmap_xmit: ndo_xdp_xmit from_ifindex=1 to_ifindex=3 action=REDIRECT sent=0 drops=16 err=-6

Any insights on how to resolve this issue? Any configuration pointers or debugging suggestions for XDP within OpenStack would be greatly appreciated.

Thanks for the details. I saw this blog that stated that they got it to work by using macvlan bridge.

the physical device through from the host, whether that will
work will depend on whether there's support for XDP in the driver of
whatever physical NIC is on the host

This makes sense, I will confirm which driver is being used on the compute nodes and see if it will work. Then give an update here.

Thanks.

Hi @tohojo, I haven't been able to try the solutions you suggested above on the VMs. We are opting to get a network device that would support BPF_F_TEST_XDP_LIVE_FRAMES and hence the xdp-trafficgen. Tried with I210 NICs with igb driver and got the same error. To ensure compatibility, could you please recommend network devices that work with BPF_F_TEST_XDP_LIVE_FRAMES and xdp-trafficgen. I am aware of the support list here, however it was last updated 5 years ago. Thanks.