]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add bare bone queue configs
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)
commitefcb9a4d32d3d9b924642c086b868bfbb9a07c13
treef8c9ea625b67e453ed617c86c57d41b003cb5e93
parent92d76cf96dcbc3c58daa84dbbf71a3ca8d9de53d
net: add bare bone queue configs

We'll need to pass extra parameters when allocating a queue for memory
providers. Define a new structure for queue configurations, and pass it
to qapi callbacks. It's empty for now, actual parameters will be added
in following patches.

Configurations should persist across resets, and for that they're
default-initialised on device registration and stored in struct
netdev_rx_queue. We also add a new qapi callback for defaulting a given
config. It must be implemented if a driver wants to use queue configs
and is optional otherwise.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/google/gve/gve_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
drivers/net/netdevsim/netdev.c
include/net/netdev_queues.h
include/net/netdev_rx_queue.h
net/core/dev.c
net/core/netdev_rx_queue.c