Subject: Re: [PATCH net-next 5/7] rhashtable: abstract out function to get hash

From: Thomas Graf <[email-masked]>
Date: Tue, 20 Sep 2016 19:58:03 +0200

On 09/20/16 at 05:36pm, Herbert Xu wrote:
> Tom Herbert <[email-masked]> wrote:
> > Split out most of rht_key_hashfn which is calculating the hash into
> > its own function. This way the hash function can be called separately to
> > get the hash value.
> > 
> > Acked-by: Thomas Graf <[email-masked]>
> > Signed-off-by: Tom Herbert <[email-masked]>
> 
> I don't get this one.  You're just using jhash, right? Why not
> call jhash directly instead of rht_get_key_hashfn?

FYI, there is a v2 of this series, just so you don't have to do the
work twice.

I understand this particular patch as an effort not to duplicate
hash function selection such as jhash vs jhash2 based on key_len.