aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2021-02-03 15:01:33 +0200
committerJason Gunthorpe <[email protected]>2021-02-05 12:06:01 -0400
commit131796524fa346553d9a325ed77bbee0b63d0ca9 (patch)
tree629c4b5fd4a73e74ea0f8017a1e23c4b4f4e60e7 /tools/perf/util/scripting-engines/trace-event-python.c
parent7416790e22452bfa86de6b55638eacf7780c8f6f (diff)
IB/mlx5: Use rdma_for_each_port for port iteration
Instead of open coding the loop for port iteration, use rdma_for_each_port macro provided by core. To use such macro, early initialization of phys_port_cnt is needed. Hence, initialize such constant early enough in the init stage. Whichever functions are called with port using rdma_for_each_port(), convert their port type from u8 to unsigned int to match the core API. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Parav Pandit <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions