virtio: support extra per-buffer context
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 23 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | virtio: wrap find_vqsdrivers/ drivers/ drivers/ +9 more | +24 | 13 replies | |
| 2/6 | virtio: add context flag to find vqsdrivers/ drivers/ drivers/ +8 more | +67 | 3 replies | |
| 3/6 | virtio: allow extra context per descriptordrivers/ include/ | +66 | 2 replies | |
| 4/6 | virtio_net: allow specifying context for rxdrivers/ | +14 | 5 replies | |
| 5/6 | virtio_net: rework mergeable buffer handlingdrivers/ | +44 | 0 replies | |
| 6/6 | virtio_net: reduce alignment for buffersdrivers/ | +1 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Gonglei | Bjorn Andersson |
|---|---|---|
| 1/6 | A-b A-b | A-b |
| 2/6 | ||
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] virtio: support extra per-buffer context
virtio net is resorting to hacks in order to fit all per-buffer info in a single 64 bit value. But in fact we have some unused memory there - normally used for indirect descriptors - that we can utilize without slowing everyone down.
Add APIs to do exactly that, and use them to simplify mergeable buffer handling code.
This will also easily enable switching XDP mode on/off without doing device resets (leading to packet drops), and more optimizations.
Michael S. Tsirkin (6):
virtio: wrap find_vqs
virtio: add context flag to find vqs
virtio: allow extra context per descriptor
virtio_net: allow specifying context for rx
virtio_net: rework mergeable buffer handling
virtio_net: reduce alignment for buffers
drivers/block/virtio_blk.c | 3 +- drivers/char/virtio_console.c | 6 +- drivers/crypto/virtio/virtio_crypto_core.c | 3 +- drivers/gpu/drm/virtio/virtgpu_kms.c | 3 +- drivers/misc/mic/vop/vop_main.c | 9 ++- drivers/net/caif/caif_virtio.c | 3 +- drivers/net/virtio_net.c | 116 ++++++++++++++--------------- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- drivers/s390/virtio/kvm_virtio.c | 6 +- drivers/s390/virtio/virtio_ccw.c | 7 +- drivers/scsi/virtio_scsi.c | 3 +- drivers/virtio/virtio_balloon.c | 3 +- drivers/virtio/virtio_input.c | 3 +- drivers/virtio/virtio_mmio.c | 8 +- drivers/virtio/virtio_pci_common.c | 18 +++-- drivers/virtio/virtio_pci_common.h | 4 +- drivers/virtio/virtio_pci_legacy.c | 4 +- drivers/virtio/virtio_pci_modern.c | 12 ++- drivers/virtio/virtio_ring.c | 77 +++++++++++++++---- include/linux/virtio.h | 9 +++ include/linux/virtio_config.h | 25 ++++++- include/linux/virtio_ring.h | 3 + net/vmw_vsock/virtio_transport.c | 6 +- 23 files changed, 212 insertions(+), 121 deletions(-)
Signature · 1 line
MST