appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.2k stars 270 forks source link

[Bug] use xdp failed #898

Open hope1262946533 opened 3 months ago

hope1262946533 commented 3 months ago

bug The 4.5.1 version was successfully installed and tested on one network card. However, when I changed to another network card, an error message was displayed.

To Reproduce Successful NIC is "NetXtreme II BCM5709 Gigabit Ethernet" Failed NIC is "82599 10 Gigabit TN Network Connection"

just use "--xdp" options

Screenshots image

System info:

fklassen commented 3 months ago

Probably Unbuntu 20.04 kernel is too old to support eBPF, which is required for --xdp. Probably we could have a more informative error message.

hope1262946533 commented 3 months ago

As shown in my picture, all the software configurations used are the same, the only change is the network card used.

Probably Unbuntu 20.04 kernel is too old to support eBPF, which is required for --xdp. Probably we could have a more informative error message.

fklassen commented 3 months ago

As shown in my picture, all the software configurations used are the same, the only change is the network card used.

Maybe we can see something in the kernel log. Can you send my contents of /var/log/kern.log? Also, the output of uname -a.