Skip to content

virtio_net perf patches

Mark McLoughlin kvm 1 version Applied

Status from this message: Thanks, applied all...

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12kvm: qemu: Fix virtio_net tx timerqemu/hw/virtio-net.c+1 -10 replies
2/12kvm: qemu: Remove virtio_net tx ring-full heuristicqemu/hw/virtio-net.c+1 -20 replies
3/12kvm: qemu: Add VIRTIO_F_NOTIFY_ON_EMPTYqemu/hw/virtio.c qemu/hw/virtio.h+10 -10 replies
4/12kvm: qemu: Disable recv notifications until avail buffers exhaustedqemu/hw/virtio-net.c+4 -10 replies
5/12kvm: qemu: Add support for partial csums and GSOqemu/hw/virtio-net.c qemu/net.h qemu/vl.c+142 -240 replies
6/12kvm: qemu: Rename tap_readv() to tap_receive_iov()qemu/vl.c+3 -30 replies
7/12kvm: qemu: Move some code around for the next commitqemu/vl.c+13 -130 replies
8/12kvm: qemu: Don't require all drivers to use virtio_net_hdrqemu/hw/virtio-net.c qemu/net.h qemu/vl.c+69 -112 replies
9/12kvm: qemu: Actually enable GSO supportqemu/vl.c+13 -00 replies
10/12kvm: qemu: Add a -net tap,fd=X,vnet_hdr=on optionqemu/vl.c+10 -11 reply
11/12kvm: qemu: Increase size of virtio_net ringsqemu/hw/virtio-net.c+3 -30 replies
12/12kvm: qemu: Drop the mutex while reading from tapfdqemu/vl.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/12] virtio_net perf patches

Hi Avi,
Here's the set of patches that I think make sense to apply.

I've left out Anthony's zero-copy patch since I wasn't seeing
a measurable difference with it, it's quite invasive and isn't safe with the "drop the global mutex during tapfd read()" patch.

I left that mutex patch 'til last since you may still be
nervous about concurrency issues and also the posix-timers kernel race that it triggers.

Another change since the first round of patches is that it
took a bit of ugly hackery to handle the case where IFF_VNET_HDR is supported and we're using e.g. e1000. Since it's difficult to only enable IFF_VNET_HDR when we're using virtio_net_hdr, I went with this approach.

Lastly, I need to add a "vnet_hdr=on" param to "-net tap" so
that we can know if the supplied tap fd has IFF_VNET_HDR enabled. There's no interface to query that on the fd right now, and even if I did cook up a patch it probably wouldn't make 2.6.27.

Cheers,
Mark.