]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: remove dev_pick_tx_cpu_id()
authorJakub Kicinski <kuba@kernel.org>
Fri, 6 Sep 2024 16:10:59 +0000 (09:10 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Sep 2024 23:53:38 +0000 (16:53 -0700)
commit17245a195df4c86b1fd38718d8cdc532c040c08e
tree14a09bf1a9ed41cd13e509433e4ddf416c2a9796
parent3e3353527fbddbb22b90b3953909a70a0155f2d8
net: remove dev_pick_tx_cpu_id()

dev_pick_tx_cpu_id() has been introduced with two users by
commit a4ea8a3dacc3 ("net: Add generic ndo_select_queue functions").
The use in AF_PACKET has been removed in 2019 by
commit b71b5837f871 ("packet: rework packet_pick_tx_queue() to use common code selection")
The other user was a Netlogic XLP driver, removed in 2021 by
commit 47ac6f567c28 ("staging: Remove Netlogic XLP network driver").

It's relatively unlikely that any modern driver will need an
.ndo_select_queue implementation which picks purely based on CPU ID
and skips XPS, delete dev_pick_tx_cpu_id()

Found by code inspection.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240906161059.715546-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c