]> err.no Git - linux-2.6/commit
[NETNS]: Add netns refcnt debug for network devices.
authorDenis V. Lunev <den@openvz.org>
Wed, 16 Apr 2008 09:02:18 +0000 (02:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2008 09:02:18 +0000 (02:02 -0700)
commitf3005d7f4abe03ad41af33b1548602cd086d86a2
tree937c5b6ba6089f93fa4f0a11a37ab07a8564e398
parent3661a910836a509be65afc3c1e512d900e1280f9
[NETNS]: Add netns refcnt debug for network devices.

dev_set_net is called for
- just allocated devices
- devices moving from one namespace to another
release_net has proper check inside to distinguish these cases.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c