From: Daniel Lezcano Date: Fri, 18 Jan 2008 11:58:07 +0000 (-0800) Subject: [NETNS][DST]: Add the network namespace pointer in dst_ops X-Git-Tag: v2.6.25-rc1~1162^2~697 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4fa26ff44e31c2636a985e3092e2cd55d8045de;p=linux-2.6 [NETNS][DST]: Add the network namespace pointer in dst_ops The network namespace pointer can be stored into the dst_ops structure. This is usefull when there are multiple instances of the dst_ops for a protocol. When there are no several instances, this field will be never used in the protocol. So there is no impact for the protocols which do implement the network namespaces. Signed-off-by: Daniel Lezcano Signed-off-by: David S. Miller --- diff --git a/include/net/dst.h b/include/net/dst.h index e24a41644c..c45dcc31b3 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -102,6 +102,7 @@ struct dst_ops atomic_t entries; struct kmem_cache *kmem_cachep; + struct net *dst_net; }; #ifdef __KERNEL__