diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2022-03-11 10:14:19 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-03-17 20:33:52 +0100 |
commit | 718a18a0c8a67f97781e40bdef7cdd055c430996 (patch) | |
tree | ff61dd415a8a1ec5beb9073f6eebf32495f12516 /drivers/gpu | |
parent | 5142239a22219921a7863cf00c9ab853c00689d8 (diff) | |
download | linux-718a18a0c8a67f97781e40bdef7cdd055c430996.tar.bz2 |
veth: Rework veth_xdp_rcv_skb in order to accept non-linear skb
Introduce veth_convert_skb_to_xdp_buff routine in order to
convert a non-linear skb into a xdp buffer. If the received skb
is cloned or shared, veth_convert_skb_to_xdp_buff will copy it
in a new skb composed by order-0 pages for the linear and the
fragmented area. Moreover veth_convert_skb_to_xdp_buff guarantees
we have enough headroom for xdp.
This is a preliminary patch to allow attaching xdp programs with frags
support on veth devices.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/8d228b106bc1903571afd1d77e797bffe9a5ea7c.1646989407.git.lorenzo@kernel.org
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions