summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Lezcano2008-01-18 12:58:07 +0100
committerDavid S. Miller2008-01-29 00:02:47 +0100
commitd4fa26ff44e31c2636a985e3092e2cd55d8045de (patch)
tree303b9cc2a871ba04fc3abadfb5c1c9831c8a6eb5 /include
parent[NETNS][DST] dst: pass the dst_ops as parameter to the gc functions (diff)
downloadkernel-qcow2-linux-d4fa26ff44e31c2636a985e3092e2cd55d8045de.tar.gz
kernel-qcow2-linux-d4fa26ff44e31c2636a985e3092e2cd55d8045de.tar.xz
kernel-qcow2-linux-d4fa26ff44e31c2636a985e3092e2cd55d8045de.zip
[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 <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dst.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index e24a41644c00..c45dcc31b3bb 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__