[PATCH net-next V2 0/5] Refine virtio-net XDP

From: Jason Wang
Date: Wed Jul 19 2017 - 04:55:04 EST


Hi:

This series brings two optimizations for virtio-net XDP:

- avoid reset during XDP set
- turn off offloads on demand

Changes from V1:
- Various tweaks on commit logs and comments
- Use virtnet_napi_enable() when enabling NAPI on XDP set
- Copy the small buffer packet only if xdp_headroom is smaller than
required

Please review.

Thanks

Jason Wang (5):
virtio_ring: allow to store zero as the ctx
virtio-net: pack headroom into ctx for mergeable buffers
virtio-net: switch to use new ctx API for small buffer
virtio-net: do not reset during XDP set
virtio-net: switch off offloads on demand if possible on XDP set

drivers/net/virtio_net.c | 332 ++++++++++++++++++++++++++-----------------
drivers/virtio/virtio_ring.c | 2 +-
2 files changed, 200 insertions(+), 134 deletions(-)

--
2.7.4