cybozu-go / placemat

Virtual data center construction tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Multiqueue virtio-net on VM

ysksuzuki opened this issue · comments

What

XDP requires using isolated tx queues to avoid interference with the normal networking stack, but only one network device queue is available on VMs that Placemat sets up.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=672aafd5d88a951f394334802b938b502010d9eb

When Cilium's XDP acceleration is enabled on Placemat cluster, dmesg log shows:

virtio_net virtio0 eth0: XDP request 13 queues but max is 1. XDP_TX and XDP_REDIRECT will operate in a slower locked tx mode.

How

Support Multiqueue virtio-net on VM
https://www.linux-kvm.org/page/Multiqueue#Multiqueue_virtio-net

Checklist

  • Finish implentation of the issue
  • Test all functions
  • Have enough logs to trace activities
  • Notify developers of necessary actions