diff options
author | 2022-03-11 10:14:19 +0100 | |
---|---|---|
committer | 2022-03-17 20:33:52 +0100 | |
commit | 718a18a0c8a67f97781e40bdef7cdd055c430996 (patch) | |
tree | ff61dd415a8a1ec5beb9073f6eebf32495f12516 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: veth: Account total xdp_frame len running ndo_xdp_xmit (diff) | |
download | linux-dev-718a18a0c8a67f97781e40bdef7cdd055c430996.tar.xz linux-dev-718a18a0c8a67f97781e40bdef7cdd055c430996.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions