xdp-tools icon indicating copy to clipboard operation
xdp-tools copied to clipboard

xdp-trafficgen not transmitting packets - ndo_xdp_xmit resulting in error -6 on virtio net

Open tariromukute opened this issue 5 months ago • 9 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.

tariromukute avatar Mar 05 '24 02:03 tariromukute