From: David Miller <davem@davemloft.net>
To: den@openvz.org
Cc: devel@openvz.org, netdev@vger.kernel.org, containers@lists.osdl.org
Subject: Re: [PATCH 1/4] netns: Tag the network flow with the network namespace it is in (v2)
Date: Wed, 05 Dec 2007 02:13:18 -0800 (PST) [thread overview]
Message-ID: <20071205.021318.144125922.davem@davemloft.net> (raw)
In-Reply-To: <20071204095333.GA6029@iris.sw.ru>
From: "Denis V. Lunev" <den@openvz.org>
Date: Tue, 4 Dec 2007 12:53:33 +0300
> 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>
Hmmm, actually I change my mind.
> @@ -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;
I'm not applying this, it's going to have a negative impact on routing
performance.
It also changes the semantics of the flowi object in a way I very
much dislike, in that there is now non-clobberable state in there.
Previously only addressing identifying objects were present in the
flow, you could use it any context, and there were no pointer
dereferencing or object references from this thing. It was very
simple.
That is no longer the case after your patch and I don't want us
to go down this path.
Please find another way to implement this.
prev parent reply other threads:[~2007-12-05 10:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 9:53 [PATCH 1/4] netns: Tag the network flow with the network namespace it is in (v2) Denis V. Lunev
2007-12-04 14:26 ` Stephen Hemminger
2007-12-04 18:42 ` Denis V. Lunev
2007-12-04 22:40 ` Herbert Xu
2007-12-05 6:49 ` Denis V. Lunev
2007-12-05 10:10 ` David Miller
2007-12-05 10:13 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071205.021318.144125922.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=containers@lists.osdl.org \
--cc=den@openvz.org \
--cc=devel@openvz.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox