]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'net-hold-netdev-instance-lock-during-ndo-operations'
authorJakub Kicinski <kuba@kernel.org>
Thu, 6 Mar 2025 20:59:47 +0000 (12:59 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Mar 2025 20:59:47 +0000 (12:59 -0800)
commitf1078ab18818542a90e59be420448bd8034bc332
treee039d67c4968f7dd87f98fd687b0ac7b5e1ca145
parentf130a0cc1b4ff1ef28a307428d40436032e2b66e
parent004b5008016a2cc37103bf8d9968573771cd311f
Merge branch 'net-hold-netdev-instance-lock-during-ndo-operations'

Stanislav Fomichev says:

====================
net: Hold netdev instance lock during ndo operations

As the gradual purging of rtnl continues, start grabbing netdev
instance lock in more places so we can get to the state where
most paths are working without rtnl. Start with requiring the
drivers that use shaper api (and later queue mgmt api) to work
with both rtnl and netdev instance lock. Eventually we might
attempt to drop rtnl. This mostly affects iavf, gve, bnxt and
netdev sim (as the drivers that implement shaper/queue mgmt)
so those drivers are converted in the process.

call_netdevice_notifiers locking is very inconsistent and might need
a separate follow up. Some notified events are covered by the
instance lock, some are not, which might complicate the driver
expectations.

Reviewed-by: Eric Dumazet <edumazet@google.com>
====================

Link: https://patch.msgid.link/20250305163732.2766420-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>