]> git.baikalelectronics.ru Git - kernel.git/commit
netns: ipmr: store netns in struct mfc_cache
authorBenjamin Thery <benjamin.thery@bull.net>
Thu, 22 Jan 2009 04:56:17 +0000 (04:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 21:57:36 +0000 (13:57 -0800)
commit8b3ea3a9e884f219bc9238e2c17eb569e8b431bd
tree937c8e34fee423d57bff1cd6dd2bc1f4e80eee44
parent5aee3809e06b0c3060a5a227580d050e11138c0b
netns: ipmr: store netns in struct mfc_cache

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

mfc_net is assigned at cache allocation and doesn't change during
the rest of the cache entry life.
A new net parameter is added to ipmr_cache_alloc/ipmr_cache_alloc_unres.

This will help to retrieve the current netns around the IPv4 multicast
routing code.

At the moment, all mfc_cache are allocated in init_net.

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