summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-04-21 00:36:21 -0500
committerSaeed Mahameed <saeedm@mellanox.com>2019-05-01 14:39:17 -0700
commit786ef904b43b9ddb675f55ef05afad5f07fb49d0 (patch)
tree3613c19a4b61fce4e572bc92cac64aaedae1cd1e /tools/perf/scripts/python
parentc9bbfb378bc35fcd0b51e4a8950bd50447f39832 (diff)
net/mlx5: Reuse mlx5_esw_for_each_vf_vport macro in two files
Currently mlx5_esw_for_each_vf_vport iterates over mlx5_vport entries in eswitch.c Same macro in eswitch_offloads.c iterates over vport number in eswitch_offloads.c Instead of duplicate macro names, to avoid confusion and to reuse the same macro in both files, move it to eswitch.h. To iterate over vport numbers where there is no need to iterate over mlx5_vport, but only a vport number is needed, rename those macros in eswitch_offloads.c to mlx5_esw_for_each_vf_num_vport*. While at it, keep all vport and vport rep iterators together. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions