]> git.ipfire.org Git - thirdparty/linux.git/commit
ethtool: rss: factor out allocating memory for response
authorJakub Kicinski <kuba@kernel.org>
Thu, 17 Jul 2025 23:43:38 +0000 (16:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Jul 2025 01:20:19 +0000 (18:20 -0700)
commita45f98efa483b7f40a97546b11a8020564a268ce
tree3e9f4dcb8fb28f5d645de22e54364ce518a4ff88
parent5f5c59b78e5a9389da07c1913dbe5ffd6d2759ee
ethtool: rss: factor out allocating memory for response

To ease the code reuse for RSS_CREATE we'll want to prepare
struct rss_reply_data for the new context. Unfortunately
we can't depend on the exiting scaffolding because the context
doesn't exist (ctx=NULL) when we start preparing. Factor out
the portion of the context 0 handling responsible for allocation
of request memory, so that we can call it directly.

Link: https://patch.msgid.link/20250717234343.2328602-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/rss.c