commit | efb975a67ea7846b966080f999589de570686aa0 | [log] [tgz] |
---|---|---|
author | Ying Xue <ying.xue@windriver.com> | Wed Jan 07 13:41:52 2015 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 08 19:47:09 2015 -0800 |
tree | 90788e6749778a352d8245c4b9c1fc6282e9bfb3 | |
parent | 7c1b70234ed49b3ea9df079a1d3a5763e660304b [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 <ying.xue@windriver.com> Cc: Thomas Graf <tgraf@suug.ch> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>