Skip to content

Can't create an XDP link on eth0 but lo works fine #1654

Closed Answered by viktordoronin
viktordoronin asked this question in Q&A
Discussion options

You must be logged in to vote

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:

ethtool -K eth0 lro off

...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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ti-mo
Comment options

Answer selected by florianl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants