netlink: Use rhashtable walk iterator
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 3 Feb 2015 20:33:24 +0000 (07:33 +1100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 04:34:53 +0000 (20:34 -0800)
commit56d28b1e921b57b918a0ae6b13a1671115fe788d
tree7165e902d7339307608075b09516ccde5000a4fb
parentf2dba9c6ff0d9a515b4c3f1b037cd65c8b2a868c
netlink: Use rhashtable walk iterator

This patch gets rid of the manual rhashtable walk in netlink
which touches rhashtable internals that should not be exposed.
It does so by using the rhashtable iterator primitives.

In fact the existing code was very buggy.  Some sockets weren't
shown at all while others were shown more than once.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c