* [PATCH 1/4] net: Tag the network flow with the network namespace it is in (v2)
@ 2007-11-30 16:07 Denis V. Lunev
0 siblings, 0 replies; only message in thread
From: Denis V. Lunev @ 2007-11-30 16:07 UTC (permalink / raw)
To: herbert; +Cc: devel, netdev, davem
As well as marking flows this indirectly marks the ipv4 routing cache
as every routing entry contains a flow.
It is useful to add the network namespace into flows as frequently
the routing information for ingoing and outgoing network packets is
collected into a flow structure which is then used for several functions
as it sorts out what is going on.
Changes from v1:
- remove flow.h dependency from net_namespace.h
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---
include/net/flow.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/net/flow.h b/include/net/flow.h
index af59fa5..9590bbe 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -10,7 +10,9 @@
#include <linux/in6.h>
#include <asm/atomic.h>
+struct net;
struct flowi {
+ struct net *fl_net;
int oif;
int iif;
__u32 mark;
--
1.5.3.rc5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-30 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30 16:07 [PATCH 1/4] net: Tag the network flow with the network namespace it is in (v2) Denis V. Lunev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).