]> git.baikalelectronics.ru Git - kernel.git/commit
page_pool: Store the XDP mem id
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 3 Jan 2022 15:08:08 +0000 (16:08 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Jan 2022 03:46:32 +0000 (19:46 -0800)
commit8c7430305e6d3527320c9ee2ef6da74a68e33bd3
tree6a8bec9a7fbc46ab60d2e3cad7a51892c0e7ad21
parent2e654c73f3e69bbfd02af376a780b763d5a1d73a
page_pool: Store the XDP mem id

Store the XDP mem ID inside the page_pool struct so it can be retrieved
later for use in bpf_prog_run().

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/20220103150812.87914-4-toke@redhat.com
include/net/page_pool.h
net/core/page_pool.c
net/core/xdp.c