From: Pavel Emelyanov Date: Wed, 16 Apr 2008 07:41:16 +0000 (-0700) Subject: [TUN]: Make the tun_dev_list per-net. X-Git-Tag: v2.6.26-rc1~1138^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d647a591dae06ccc96210cea938aa0342ef935fc;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed