summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAmit Cohen <amcohen@nvidia.com>2024-01-26 21:58:29 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-01-30 17:47:36 +0300
commit8d8d33d4e38b5c60cdb3dcd6f190fcf91e306dd0 (patch)
tree3a214477dc209bdb862088a4c8560ba3e62913f2 /tools/perf/scripts/python/export-to-sqlite.py
parentc6ca2884ba043e89c3588a77ce0724a7e5868f85 (diff)
downloadlinux-8d8d33d4e38b5c60cdb3dcd6f190fcf91e306dd0.tar.xz
mlxsw: spectrum: Search for free LAD ID once
Currently, the function mlxsw_sp_lag_index_get() is called twice - first as part of NETDEV_PRECHANGEUPPER event and later as part of NETDEV_CHANGEUPPER. This function will be changed in the next patch. To simplify the code, call it only once as part of NETDEV_CHANGEUPPER event and set an error message using 'extack' in case of failure. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions