aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorAmit Cohen <[email protected]>2024-01-26 19:58:29 +0100
committerPaolo Abeni <[email protected]>2024-01-30 15:47:36 +0100
commit8d8d33d4e38b5c60cdb3dcd6f190fcf91e306dd0 (patch)
tree3a214477dc209bdb862088a4c8560ba3e62913f2 /tools/perf/scripts/python/libxed.py
parentc6ca2884ba043e89c3588a77ce0724a7e5868f85 (diff)
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 <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions