Can't create an XDP link on eth0 but lo works fine #1654
-
Hello, I'm trying to run an example from the getting started guide. I'm running it on Debian Linux under WSL, eBPF and XDP and everything else that's required are enabled in the kernel. When I tried to run the compiled program however, this is what I got:
I assumed it's some sort of configuration problem on my end, until I changed the interface in
Any ideas? Google turned up nothing but a possible MTU issue which is clearly not the case here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Digged some more and turns out WSL can have this problem because its network interfaces are in fact vlans. Apparently it's supported now but I couldn't find a straightforward fix. My kernel version is |
Beta Was this translation helpful? Give feedback.
-
Found it!
...and the example starts working on eth0! Hope this can stay up here so it can be googled by somebody else, even though it's not strictly an |
Beta Was this translation helpful? Give feedback.
Found it!
According to kernel.org article on Hyper-V network driver, Hyper-V's virtual adapters do support XDP, but have to have LRO disabled. Run the command as written in the article:
...and the example starts working on eth0!
Hope this can stay up here so it can be googled by somebody else, even though it's not strictly an
ebpf-go
thing. Thank you.