diff options
| author | Parav Pandit <[email protected]> | 2018-08-27 08:44:17 +0300 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2018-08-30 16:31:50 -0400 |
| commit | 1703129ed2c12c112889f471bddf242012791b47 (patch) | |
| tree | 9a4eaa2516e4aa44593c2b1c6acd48590232c24b /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | 536a631d1ec1de6ed51453954407068c10473eea (diff) | |
IB/rxe: Refactor lookup memory function
Consolidate all error checks under single if() condition and use helper
unlikely() macro for them, in addition drop unneeded goto labels.
rxe_pool_get_index() already provides RB tree based efficient lookup.
Avoid doing extra checks for error cases which are rare and already
covered by rxe_pool_get_index().
Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Yuval Shaia <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions