Skip to content

[Bug] Cannot run with --xdp: Packet sending exited with error #956

@duskmoon314

Description

@duskmoon314

Describe the bug

When adding --xdp, no packet is sent and Packet sending exited with error occurs

To Reproduce
Steps to reproduce the behavior:

  1. Download 4.5.2-beta1, and build following the doc
  2. `sudo tcpreplay --xdp -i eth1 some-pkts.pcap
  3. See the error

Expected behavior
Tcpreplay works like without --xdp, sending packets.

Screenshots

Image

System (please complete the following information):

  • OS: Ubuntu 24.04 in vagrant-libvirt's vm (kvm qemu)
  • OS version
    • 24.04.2 LTS (Noble Numbat)
    • 6.8.0-64-generic
  • Tcpreplay Version: 4.5.2-beta1
  • NIC: Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ (rev 02)
sudo tcpreplay -V
tcpreplay version: 4.5.2-beta1 (build git:v4.5.2-beta1) (debug)
Copyright 2013-2024 by Fred Klassen <tcpreplay at appneta dot com> - AppNeta
Copyright 2000-2012 by Aaron Turner <aturner at synfin dot net>
The entire Tcpreplay Suite is licensed under the GPLv3
Cache file supported: 04
Not compiled with libdnet.
Compiled against libpcap: 1.10.4
64 bit packet counters: enabled
Verbose printing via tcpdump: enabled
Packet editing: disabled
Fragroute engine: disabled
Injection method: PF_PACKET send()
Not compiled with netmap
Optional injection method: AF_XDP

Additional context
This seems to be a duplicated of #898, but with different NIC. But no error message seen in kern.log.

tail /var/log/kern.log
2025-07-17T09:55:44.974345+00:00 vm-sec-4 kernel: ipmi_si: Unable to find any System Interface(s)
2025-07-17T09:55:45.062374+00:00 vm-sec-4 kernel: Bluetooth: Core ver 2.22
2025-07-17T09:55:45.062400+00:00 vm-sec-4 kernel: NET: Registered PF_BLUETOOTH protocol family
2025-07-17T09:55:45.062403+00:00 vm-sec-4 kernel: Bluetooth: HCI device and connection manager initialized
2025-07-17T09:55:45.062405+00:00 vm-sec-4 kernel: Bluetooth: HCI socket layer initialized
2025-07-17T09:55:45.062407+00:00 vm-sec-4 kernel: Bluetooth: L2CAP socket layer initialized
2025-07-17T09:55:45.062408+00:00 vm-sec-4 kernel: Bluetooth: SCO socket layer initialized
2025-07-17T09:55:45.720678+00:00 vm-sec-4 kernel: virtio_net virtio2 eth0: entered promiscuous mode
2025-07-17T10:57:42.115553+00:00 vm-sec-4 kernel: i40e 0000:03:00.0 eth1: entered promiscuous mode
2025-07-17T10:57:42.128777+00:00 vm-sec-4 kernel: i40e 0000:03:00.0 eth1: left promiscuous mode

I wonder where can I ger more debug info for this error.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions