]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: use netdev_queue_config() for mp restart
authorJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 00:51:11 +0000 (16:51 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jan 2026 19:49:02 +0000 (11:49 -0800)
commitfc1a78a25c5e3c92132f2975c7b547e67305fcf4
tree280ca94332c3df79fcb20b7458d1fad1f0d41f06
parentda7772a2b4ad2ee328b1fbb44e538ed1ce2a766f
net: use netdev_queue_config() for mp restart

We should follow the prepare/commit approach for queue configuration.
The qcfg struct should be added to dev->cfg rather than directly to
queue objects so that we can clone and discard the pending config
easily.

Remove the qcfg in struct netdev_rx_queue, and switch remaining callers
to netdev_queue_config(). netdev_queue_config() will construct the qcfg
on the fly based on device defaults and state of the queue.

ndo_default_qcfg becomes optional because having the callback itself
does not have any meaningful semantics to us.

Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://patch.msgid.link/20260122005113.2476634-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netdev_queues.h
net/core/dev.c
net/core/netdev_config.c
net/core/netdev_rx_queue.c