[NETNS][DST]: Add the network namespace pointer in dst_ops
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 18 Jan 2008 11:58:07 +0000 (03:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:47 +0000 (15:02 -0800)
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 <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h

index e24a416..c45dcc3 100644 (file)
@@ -102,6 +102,7 @@ struct dst_ops
 
        atomic_t                entries;
        struct kmem_cache               *kmem_cachep;
+       struct net              *dst_net;
 };
 
 #ifdef __KERNEL__