Re: [RFC PATCH] virtio_net: XDP support for adjust_head
From: John Fastabend <john.fastabend@gmail.com>
Date: 2016-12-23 21:46:54
Also in:
netdev
From: John Fastabend <john.fastabend@gmail.com>
Date: 2016-12-23 21:46:54
Also in:
netdev
On 16-12-23 10:43 AM, John Fastabend wrote:
Add support for XDP adjust head by allocating a 256B header region
that XDP programs can grow into. This is only enabled when a XDP
program is loaded.
In order to ensure that we do not have to unwind queue headroom push
queue setup below bpf_prog_add. It reads better to do a prog ref
unwind vs another queue setup call.
TBD merge with Jason Wang's fixes, do a bit more testing, note
big_packet support is removed by Jason as well.
Signed-off-by: John Fastabend <redacted>
---
drivers/net/virtio_net.c | 53 +++++++++++++++++++++++++++++++---------------
1 file changed, 36 insertions(+), 17 deletions(-)ah dang, I sent this from the wrong tree so it was missing a fix sorry for the noise. I'll send an update on top of net shortly. .John