]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv6/ip6mr.c
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)
commit58701ad41105638baa0b38ffe9ac5b10469c1fd3
treecb76329caa1cc86fb89c7ef6d81bf924d86699ad
parent4e16880cb4225bfa68878ad5b2a9ded53657d054
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