]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethtool: add a mutex protecting RSS contexts
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 27 Jun 2024 15:33:51 +0000 (16:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Jun 2024 01:53:21 +0000 (18:53 -0700)
commit87925151191b64d9623e63ccf11e517eacc99d7d
tree4e4c6614bd25cbc859f6f870a517085a3c63318e
parent30a32cdf6b130356805b3193a6208de25cbb2015
net: ethtool: add a mutex protecting RSS contexts

While this is not needed to serialise the ethtool entry points (which
 are all under RTNL), drivers may have cause to asynchronously access
 dev->ethtool->rss_ctx; taking dev->ethtool->rss_lock allows them to
 do this safely without needing to take the RTNL.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://patch.msgid.link/7f9c15eb7525bf87af62c275dde3a8570ee8bf0a.1719502240.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
net/core/dev.c
net/ethtool/ioctl.c