lizrice / learning-ebpf

Learning eBPF, published by O'Reilly - out now! Here's where you'll find a VM config for the examples, and more
https://www.amazon.com/Learning-eBPF-Programming-Observability-Networking/dp/1098135121
Apache License 2.0
1.19k stars 255 forks source link

Can't set XDP while host is implementing GRO_HW/CSUM #15

Closed sherwoodzern closed 1 year ago

sherwoodzern commented 1 year ago

In Chapter 3 I attempt to attach the "Hello" program to eth0. I get the error: virtio_net: Can't set XDP while host is implementing GRO_HW/CSUM, disable GRO_HW/CSUM first.

I'm running Oracle Linux 8 in a VirtualBox vm. I've searched the net, via google, and haven't found a solution. Some of the solutions I located stated that they were unable to disable.

Have you encountered such an issue? If so, were you able to resolve and how?

sherwoodzern commented 1 year ago

I figured out what was happening and it has to do with the inability to modify this setting. It is a fixed setting and cannot be changed.