[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
From: Jason Wang
Date: Wed Feb 28 2018 - 22:19:19 EST
Hi:
This series tries to re-enable XDP_REDIRECT for mergeable buffer which
was removed since commit 7324f5399b06 ("virtio_net: disable
XDP_REDIRECT in receive_mergeable() case"). Main concerns are:
- not enough tailroom was reserved which breaks cpumap
- complex logic like EWMA and linearizing during XDP processing
Fix those by:
- reserve enough tailroom during refill
- disable EWMA and use fixed size of rx buffer
- drop linearizing logic and offload it to generic XDP routine, this
could happen only when the buffer were refilled before XDP set, so
we could simply ignore the negative performance impact.
Please review.
Thanks
Jason Wang (2):
virtio-net: re enable XDP_REDIRECT for mergeable buffer
virtio-net: simplify XDP handling in small buffer
drivers/net/virtio_net.c | 186 ++++++++++++++++++-----------------------------
1 file changed, 70 insertions(+), 116 deletions(-)
--
2.7.4