diff options
| author | Jakub Kicinski <[email protected]> | 2025-03-24 22:45:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-25 17:06:44 +0000 |
| commit | 4b702f8b72c7b05daa1b763fdc0840aa78178c3a (patch) | |
| tree | 51dec262188c65f5bcd29af24fbeb30f41a5b15d /tools/testing/selftests/net/lib/py/ynl.py | |
| parent | net: constify dev pointer in misc instance lock helpers (diff) | |
| download | kernel-4b702f8b72c7b05daa1b763fdc0840aa78178c3a.tar.gz kernel-4b702f8b72c7b05daa1b763fdc0840aa78178c3a.zip | |
net: explain "protection types" for the instance lock
Try to define some terminology for which fields are protected
by which lock and how. Some fields are protected by both rtnl_lock
and instance lock which is hard to talk about without having
a "key phrase" to refer to a particular protection scheme.
"ops protected" fields are defined later in the series, one by one.
Add ASSERT_RTNL() to netdev_ops_assert_locked() for drivers
not other instance protection of ops. Hopefully it's not too
confusion that netdev_lock_ops() does not match the lock which
netdev_ops_assert_locked() will assert, exactly. The noun "ops"
is in a different place in the name, so I think it's acceptable...
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions
