diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-05-31 15:14:50 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-08-23 07:34:17 +0300 |
commit | 2caa2a39116f07fd06778052a90b3e35bc262c44 (patch) | |
tree | aeb34887e16f5cb81e7f82a4b6a2c3cd2d54fc5d /tools/perf/scripts/python | |
parent | 2c5f33f6b9406cc092998cdc96ed015e73cb581b (diff) | |
download | linux-2caa2a39116f07fd06778052a90b3e35bc262c44.tar.xz |
net/mlx5: Reduce number of vport lookups passing vport pointer instead of index
During devlink port init/cleanup and register/unregister calls, there
are many lookups of vport. Instead of passing vport_num as argument to
functions, pass the vport struct pointer directly and avoid repeated
lookups.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions