diff options
| author | Alexander Lobakin <aleksander.lobakin@intel.com> | 2023-03-14 00:55:52 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-15 01:20:05 +0300 |
| commit | 9c94bbf9a87b264294f42e6cc0f76d87854733ec (patch) | |
| tree | f72a6aa4ec2e6e7956a9a011abb1faffc55b2b9c /tools/perf/scripts/python/syscall-counts.py | |
| parent | 2c854e5fcd7e243f5a7cf6a6afa0ef83060c903c (diff) | |
| download | linux-9c94bbf9a87b264294f42e6cc0f76d87854733ec.tar.xz | |
xdp: recycle Page Pool backed skbs built from XDP frames
__xdp_build_skb_from_frame() state(d):
/* Until page_pool get SKB return path, release DMA here */
Page Pool got skb pages recycling in April 2021, but missed this
function.
xdp_release_frame() is relevant only for Page Pool backed frames and it
detaches the page from the corresponding page_pool in order to make it
freeable via page_frag_free(). It can instead just mark the output skb
as eligible for recycling if the frame is backed by a pp. No change for
other memory model types (the same condition check as before).
cpumap redirect and veth on Page Pool drivers now become zero-alloc (or
almost).
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20230313215553.1045175-4-aleksander.lobakin@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
