diff options
author | Moshe Shemesh <[email protected]> | 2022-07-11 01:14:03 -0700 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2022-07-12 10:26:22 +0200 |
commit | f1bc646c9a06f09aad5d8bacb87103b5573ee45e (patch) | |
tree | 9d46989ef945356c606bc08a4e959a753bcbe200 /tools/perf/scripts/python/sched-migration.py | |
parent | 868232f5cd382c37a5005deb7be0620c6f7bc08d (diff) |
net/mlx5: Use devl_ API in mlx5_esw_offloads_devlink_port_register
The function mlx5_esw_offloads_devlink_port_register() calls
devlink_port_register() and devlink_rate_leaf_create(). Use devl_ API to
call devl_port_register() and devl_rate_leaf_create() accordingly and
add devlink instance lock in driver paths to this function.
Similarly, use devl_ API to call devl_port_unregister() and
devl_rate_leaf_destroy() in mlx5_esw_offloads_devlink_port_unregister()
and ensure locking devlink instance lock on the paths to this function
too.
This will be used by the downstream patch to invoke
mlx5_devlink_eswitch_mode_set() with devlink lock held.
Signed-off-by: Moshe Shemesh <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions