diff options
author | Lorenzo Bianconi <[email protected]> | 2022-03-11 10:14:19 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-03-17 20:33:52 +0100 |
commit | 718a18a0c8a67f97781e40bdef7cdd055c430996 (patch) | |
tree | ff61dd415a8a1ec5beb9073f6eebf32495f12516 /lib/string_helpers.c | |
parent | 5142239a22219921a7863cf00c9ab853c00689d8 (diff) |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/8d228b106bc1903571afd1d77e797bffe9a5ea7c.1646989407.git.lorenzo@kernel.org
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions