]> git.dujemihanovic.xyz Git - linux.git/commit
net: page_pool: split the page_pool_params into fast and slow
authorJakub Kicinski <kuba@kernel.org>
Tue, 21 Nov 2023 00:00:34 +0000 (16:00 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Nov 2023 01:22:29 +0000 (17:22 -0800)
commit5027ec19f1049a07df5b0a37b1f462514cf2724b
tree73ddb90459bd8c813eaf0709bb47492a8343dcb0
parent3a17ea77da31ef0b5ab04111583bfcd38f56fcba
net: page_pool: split the page_pool_params into fast and slow

struct page_pool is rather performance critical and we use
16B of the first cache line to store 2 pointers used only
by test code. Future patches will add more informational
(non-fast path) attributes.

It's convenient for the user of the API to not have to worry
which fields are fast and which are slow path. Use struct
groups to split the params into the two categories internally.

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Link: https://lore.kernel.org/r/20231121000048.789613-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/page_pool/types.h
net/core/page_pool.c