aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2018-08-27 08:44:17 +0300
committerDoug Ledford <dledford@redhat.com>2018-08-30 16:31:50 -0400
commit1703129ed2c12c112889f471bddf242012791b47 (patch)
tree9a4eaa2516e4aa44593c2b1c6acd48590232c24b /tools/perf/scripts/python/net_dropmonitor.py
parentIB/rxe: Avoid NULL check when search is successful (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 <parav@mellanox.com> Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions