Re: netfilter: Use rhashtable walk iterator

From
David Miller <davem@davemloft.net>
Date
2015-02-03 03:19:42
Also in
netfilter-devel
Reply to
Herbert Xu, 2015-01-31
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sat, 31 Jan 2015 15:31:51 +1100
On Sat, Jan 31, 2015 at 02:13:56PM +1100, Herbert Xu wrote:
quoted
No problems.  Here is a new version of these two patches which
hopefully should work on netfilter as well.
And here is the patch for netfilter.

-- >8 --
This patch gets rid of the manual rhashtable walk in nft_hash
which touches rhashtable internals that should not be exposed.
It does so by using the rhashtable iterator primitives.
    
Note that I'm leaving nft_hash_destroy alone since it's only
invoked on shutdown and it shouldn't be affected by changes
to rhashtable internals (or at least not what I'm planning to
change).
    
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied to net-next.
Thread (79 messages) 79 messages, 6 authors, last reply 2015-02-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help