On 4/28/20 11:11 AM, John McDowall wrote: > Hi, > > I am running the XDP redirect example on Google Cloud Platform using > the GCP provided Ubuntu 20.04 image as my host. The code works fine in > SKB_MODE (xdpgeneric). When I go to DRV_MODE I get the following error > message: "libbpf: Kernel error message: virtio_net: XDP expects > header/data in single page, any_header_sg required". The most likely explanation is an old machine model for the VM. But that is just the first step. Once the VM model is updated to something modern, the cloud provider needs to enable multiqueue for the tap device with the number of queues = 2 * vcpus for each tap device. e.g., a 4 vcpu VM needs 8 queues per tap device that xdp is to be allowed. > > For all images on GCP that I have looked at the number of RX and TX > channels are set to 0 and the combined is the number of cores (ethtool > -l dev). My question is then, is there any way to run XDP native on > GCP images or do I need to try and create a custom image with re and > tx queues set? > > Second question, does anyone have experience running native XDP on AWS > and Azure? > last I looked AWS does not support XDP either. Never tried Azure.
![]() |