Repository navigation
Commit 043b841
net: devlink: remove redundant rtnl lock assert
It is enough for caller of devlink_compat_switch_id_get() to hold the net
device to guarantee that devlink port is not destroyed concurrently. Remove
rtnl lock assertion and modify comment to warn user that they must hold
either rtnl lock or reference to net device. This is necessary to
accommodate future implementation of rtnl-unlocked TC offloads driver
callbacks.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>1 parent 708852d commit 043b841
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6939 | 6939 | | |
6940 | 6940 | | |
6941 | 6941 | | |
6942 | | - | |
6943 | | - | |
| 6942 | + | |
| 6943 | + | |
6944 | 6944 | | |
6945 | 6945 | | |
6946 | | - | |
6947 | 6946 | | |
6948 | 6947 | | |
6949 | 6948 | | |
| |||
0 commit comments