[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070504.123909.88476080.davem@davemloft.net>
Date: Fri, 04 May 2007 12:39:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xemul@...ru
Cc: netdev@...r.kernel.org, devel@...nvz.org
Subject: Re: [PATCH] Consolidate udp hash calculations
From: Pavel Emelianov <xemul@...ru>
Date: Fri, 04 May 2007 18:51:36 +0400
> Make access to udphash/udplitehash symmetrical to inet hashes.
>
> This may also help network namespaces, since they tend to use
> one hash for different namespaces by selecting the hash chain
> depending on a hash value and the namespace.
>
> Signed-off-by: Pavel Emelianov <xemul@...nvz.org>
This is not the "UDP Hash Function", it is a mask to bring
the hash value modulo of the hash table size.
So your function name is misleading and makes the code
even worse.
I'm also not so sure this cleanup really adds any clarity,
even with a proper function name.
I can only assume you wish to do something with the UDP hash table
sizes, and therefore only want to have a need to touch one function.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists