Commit e56ce516 authored by David S. Miller's avatar David S. Miller

Merge branch 'virtio_net-xdp-refine'

Jason Wang says:

====================
Refine virtio-net XDP

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
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 7a68ada6 3f93522f
This diff is collapsed.
...@@ -391,7 +391,7 @@ static inline int virtqueue_add(struct virtqueue *_vq, ...@@ -391,7 +391,7 @@ static inline int virtqueue_add(struct virtqueue *_vq,
vq->desc_state[head].data = data; vq->desc_state[head].data = data;
if (indirect) if (indirect)
vq->desc_state[head].indir_desc = desc; vq->desc_state[head].indir_desc = desc;
if (ctx) else
vq->desc_state[head].indir_desc = ctx; vq->desc_state[head].indir_desc = ctx;
/* Put entry in available array (but don't update avail->idx until they /* Put entry in available array (but don't update avail->idx until they
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment