]> git.baikalelectronics.ru Git - kernel.git/commit
[TUN]: Make the tun_dev_list per-net.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 16 Apr 2008 07:41:16 +0000 (00:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2008 07:41:16 +0000 (00:41 -0700)
commitcc9eacbb0568b9ace9d9d8e5e66ba812a10cde33
tree26bcb08b810e411b73a5f63bf486f1651c27cd2e
parentbe473518b4e6cdf4ab65bd004524c941116eaa70
[TUN]: Make the tun_dev_list per-net.

Remove the static tun_dev_list and replace its occurrences in
driver with per-net one.

It is used in two places - in tun_set_iff and tun_cleanup. In
the first case it's legal to use current net_ns. In the cleanup
call - move the loop, that unregisters all devices in net exit
hook.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c