[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)
commit9a7ec3a94d8da475fe81810aa55136a81556d445
tree57a241a178d5d60b14a00e1c77a37060fbf8e00a
parent8ed677896752fff056f6cf3d7ce462adc6c464f0
[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