]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: remove netif_set_real_num_rx_queues() helper for when SYSFS=n
authorJakub Kicinski <kuba@kernel.org>
Mon, 24 Mar 2025 22:45:28 +0000 (15:45 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 17:04:49 +0000 (10:04 -0700)
commitbae2da826196ff4ab439b57683dce883e274faef
tree9738b6ac38caa95ea40d601ff7fb6e0f36d0bc0c
parentba6f418fbf64bb8c0e98dc1b548c151beeedd16c
net: remove netif_set_real_num_rx_queues() helper for when SYSFS=n

Since commit a953be53ce40 ("net-sysfs: add support for device-specific
rx queue sysfs attributes"), so for at least a decade now it is safe
to call net_rx_queue_update_kobjects() when SYSFS=n. That function
does its own ifdef-inery and will return 0. Remove the unnecessary
stub for netif_set_real_num_rx_queues().

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250324224537.248800-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c