]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: pass queue rx page size from memory provider
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 6 Jan 2026 13:25:40 +0000 (13:25 +0000)
committerPavel Begunkov <asml.silence@gmail.com>
Wed, 14 Jan 2026 02:13:36 +0000 (02:13 +0000)
commitc0b709bf438ba9d197d369f55e4a97603fd4a705
tree81d8d5549d538c5483e6baddd772714b0e27e7b5
parentefcb9a4d32d3d9b924642c086b868bfbb9a07c13
net: pass queue rx page size from memory provider

Allow memory providers to configure rx queues with a custom receive
page size. It's passed in struct pp_memory_provider_params, which is
copied into the queue, so it's preserved across queue restarts. Then,
it's propagated to the driver in a new queue config parameter.

Drivers should explicitly opt into using it by setting
QCFG_RX_PAGE_SIZE, in which case they should implement ndo_default_qcfg,
validate the size on queue restart and honour the current config in case
of a reset.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
include/net/netdev_queues.h
include/net/page_pool/types.h
net/core/netdev_rx_queue.c