]> git.baikalelectronics.ru Git - kernel.git/commit
netns: ip6mr: dynamically allocate mfc6_cache_array
authorBenjamin Thery <benjamin.thery@bull.net>
Thu, 11 Dec 2008 00:24:07 +0000 (16:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2008 00:24:07 +0000 (16:24 -0800)
commit89be0d69d9b7716fd617bd4893c398aac8ee5798
tree5cc24a8d367593b039c32a0d1fa4a64730673542
parentcc6112b23fca649bc594b252b1de82ab65366780
netns: ip6mr: dynamically allocate mfc6_cache_array

Preliminary work to make IPv6 multicast forwarding netns-aware.

Dynamically allocates IPv6 multicast forwarding cache, mfc6_cache_array,
and moves it to struct netns_ipv6.

At the moment, mfc6_cache_array is only referenced in init_net.

Replace 'ARRAY_SIZE(mfc6_cache_array)' with mfc6_cache_array size: MFC6_LINES.

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