]> git.baikalelectronics.ru Git - kernel.git/commit
netns: ip6mr: store netns in struct mfc6_cache
authorBenjamin Thery <benjamin.thery@bull.net>
Thu, 11 Dec 2008 00:22:34 +0000 (16:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2008 00:22:34 +0000 (16:22 -0800)
commitcc6112b23fca649bc594b252b1de82ab65366780
treecb76329caa1cc86fb89c7ef6d81bf924d86699ad
parentab4061d4e271d9224f2458177fe4fa25b890abf9
netns: ip6mr: store netns in struct mfc6_cache

This patch stores into struct mfc6_cache the network namespace each
mfc6_cache belongs to. The new member is mfc6_net.

mfc6_net is assigned at cache allocation and doesn't change during
the rest of the cache entry life.

This will help to retrieve the current netns around the IPv6 multicast
forwarding code.

At the moment, all mfc6_cache are allocated in init_net.

Changelog:
==========
* Use write_pnet()/read_pnet() to set and get mfc6_net.

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mroute6.h
net/ipv6/ip6mr.c