Reputation: 7207
Is driver mode available for an interface on a VM? On Virtualbox I could only load my XDP program in generic mode. Is this the case in general for all VMs? Since XDP driver mode support depends on whether the driver supports it, I'm wondering if it's possible for an interface on a VM to support driver mode. If so, are there any VM interfaces that support XDP driver mode?
Upvotes: 0
Views: 1069
Reputation: 7928
Yes, XDP support for virt_io(paravirtualized network adapters) has been supported since kernel v4.10. I believe virtual box will default to emulation of actual hardware instead of using virt_io, so you might need to do some tweaking in your VM settings to get everything to work.
Sources/further reading:
Upvotes: 1