aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorYing Xue <[email protected]>2015-01-07 13:41:52 +0800
committerDavid S. Miller <[email protected]>2015-01-08 19:47:09 -0800
commitefb975a67ea7846b966080f999589de570686aa0 (patch)
tree90788e6749778a352d8245c4b9c1fc6282e9bfb3 /tools/perf/scripts/python/net_dropmonitor.py
parent7c1b70234ed49b3ea9df079a1d3a5763e660304b (diff)
rhashtable: optimize rhashtable_lookup routine
Define an internal compare function and relevant compare argument, and then make use of rhashtable_lookup_compare() to lookup key in hash table, reducing duplicated code between rhashtable_lookup() and rhashtable_lookup_compare(). Signed-off-by: Ying Xue <[email protected]> Cc: Thomas Graf <[email protected]> Acked-by: Thomas Graf <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions