netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: ethtool: consistently take rss_lock for all rxfh ops
@ 2025-06-26 20:28 Jakub Kicinski
  2025-06-26 20:28 ` [PATCH net-next 1/3] net: ethtool: take rss_lock for all rxfh changes Jakub Kicinski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jakub Kicinski @ 2025-06-26 20:28 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, ecree.xilinx,
	Jakub Kicinski

I'd like to bring RXFH and RXFHINDIR ioctls under a single set of
Netlink ops. It appears that while core takes the ethtool->rss_lock
around some of the RXFHINDIR ops, drivers (sfc) take it internally
for the RXFH.

Consistently take the lock around all ops and accesses to the XArray
within the core. This should hopefully make the rss_lock a lot less
confusing.

Jakub Kicinski (3):
  net: ethtool: take rss_lock for all rxfh changes
  net: ethtool: move rxfh_fields callbacks under the rss_lock
  net: ethtool: move get_rxfh callback under the rss_lock

 drivers/net/ethernet/sfc/ethtool_common.c |  9 +---
 net/ethtool/common.c                      |  2 +
 net/ethtool/ioctl.c                       | 66 +++++++++++++----------
 net/ethtool/rss.c                         | 23 +++++---
 4 files changed, 59 insertions(+), 41 deletions(-)

-- 
2.50.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-30 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 20:28 [PATCH net-next 0/3] net: ethtool: consistently take rss_lock for all rxfh ops Jakub Kicinski
2025-06-26 20:28 ` [PATCH net-next 1/3] net: ethtool: take rss_lock for all rxfh changes Jakub Kicinski
2025-06-26 20:28 ` [PATCH net-next 2/3] net: ethtool: move rxfh_fields callbacks under the rss_lock Jakub Kicinski
2025-06-26 20:28 ` [PATCH net-next 3/3] net: ethtool: move get_rxfh callback " Jakub Kicinski
2025-06-30 16:10 ` [PATCH net-next 0/3] net: ethtool: consistently take rss_lock for all rxfh ops patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).