]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS][IPV6] route6 - dynamically allocate ip6_dst_ops
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 4 Mar 2008 21:48:53 +0000 (13:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Mar 2008 21:48:53 +0000 (13:48 -0800)
commit003921d94f6b61d8a132460a26ea074f89d78f1f
tree57a241a178d5d60b14a00e1c77a37060fbf8e00a
parentb322d3e3aed3869d79ff745441a491ddd36892aa
[NETNS][IPV6] route6 - dynamically allocate ip6_dst_ops

ip6_dst_ops is dynamically allocated in init and exit functions.  That
provides the ability to do multiple instanciations of this structure.

This will be needed for network namespaces, indeed dst_ops stores data
that are required to be per namespace: entries and gc_thresh.

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c