netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] rhashtable: Wildcard and scored lookups
@ 2015-07-14  0:39 Tom Herbert
  2015-07-14  0:39 ` [PATCH net-next 1/3] rhashtable: Add a function for in order insertion in buckets Tom Herbert
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Tom Herbert @ 2015-07-14  0:39 UTC (permalink / raw)
  To: davem, netdev, tgraf; +Cc: kernel-team

This patch set implements:
  - A compare function can be passed in the lookup. This allows for
    comparison to include "wildcard fields"
  - Order insertion within a bucket, so that entries with more specific
    information can be matched first.
  - Scored lookups. This is like the socket lookups. It allows
    different levels of matching, and returning one of N possible
    best matches with a uniform distribution based on flow hash.

Testing: Tested this in conjunction with ILA development. Will be
posting ILA patches shortly.


Tom Herbert (3):
  rhashtable: Add a function for in order insertion in buckets
  rhashtable: allow lookup function to have compare function agument
  rhashtable: Add scored lookups

 include/linux/rhashtable.h | 122 ++++++++++++++++++++++++++++++++++++++++++---
 lib/rhashtable.c           |  20 ++++----
 2 files changed, 125 insertions(+), 17 deletions(-)

-- 
1.8.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-15  1:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14  0:39 [PATCH net-next 0/3] rhashtable: Wildcard and scored lookups Tom Herbert
2015-07-14  0:39 ` [PATCH net-next 1/3] rhashtable: Add a function for in order insertion in buckets Tom Herbert
2015-07-14  9:57   ` Herbert Xu
2015-07-14 16:42     ` Tom Herbert
2015-07-14 23:58       ` Herbert Xu
2015-07-15  0:59         ` Tom Herbert
2015-07-15  1:08           ` Herbert Xu
2015-07-14  0:39 ` [PATCH net-next 2/3] rhashtable: allow lookup function to have compare function agument Tom Herbert
2015-07-14  9:44   ` Thomas Graf
2015-07-14 15:43     ` Tom Herbert
2015-07-14  0:39 ` [PATCH net-next 3/3] rhashtable: Add scored lookups Tom Herbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).