netpoll: Allow netpoll_setup/cleanup recursion
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jun 2010 16:12:48 +0000 (16:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2010 17:58:40 +0000 (10:58 -0700)
commit8fdd95ec162a8fbac7f41d6f54f90402fe3e8cb1
treee326d2640054c986fd5458719a45c4ef630953a8
parent4247e161b12f8dffb7ee3ee07bc5e61f714ebe2d
netpoll: Allow netpoll_setup/cleanup recursion

This patch adds the functions __netpoll_setup/__netpoll_cleanup
which is designed to be called recursively through ndo_netpoll_seutp.

They must be called with RTNL held, and the caller must initialise
np->dev and ensure that it has a valid reference count.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netpoll.h
net/core/netpoll.c