summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2026-07-21 12:43:46 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-07-21 12:43:46 +0200
commite0722efbcfeb142e02b0b8031136ce81610a8507 (patch)
treeb72c5096dbf6d14c3ece9c31559021cddbf07e14 /tools/perf/scripts/python
parentc1e8a257165dc6ee47e84f375bcfaca421c63e2f (diff)
parent0501dd682648dd6c94570b01ef37f76b489c9fdf (diff)
Merge branch 'mlxsw-make-the-driver-ops-locked'
Ido Schimmel says: ==================== mlxsw: Make the driver ops-locked Make the driver ops-locked in order to allow ethtool operations to be invoked without RTNL being held. An ops-locked driver has most of its NDOs, all of its ethtool operations and some net device notifications run with the netdev instance lock held. In the specific case of mlxsw, the driver is not using any functions that acquire this lock nor functions that expect the lock to be held for an ops-locked driver. Therefore, converting its NDOs to run with the lock being held is trivial except for a small quirk which is handled in patch #1. The driver does not generate any net device notifications, so there is no risk of nested notifications of the ops-locked types. For the notifications that run under the instance lock, RTNL is also held, and the driver does not acquire the instance lock itself, so no changes are required in its notifier handling. Ethtool operations can be invoked without RTNL except for two operations that are annotated in patch #2. Lastly, patch #3 converts the driver to be ops-locked. A probe on rtnl_lock() shows it is no longer taken when dumping statistics: # perf probe --add rtnl_lock Before: # perf stat -e probe:rtnl_lock -- ethtool -S swp1 --all-groups [...] 1 probe:rtnl_lock After: # perf stat -e probe:rtnl_lock -- ethtool -S swp1 --all-groups [...] 0 probe:rtnl_lock No issues were reported after running a full regression with a debug config that has lockdep enabled. ==================== Link: https://patch.msgid.link/20260708123933.1303291-1-idosch@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions