[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpXHHMvbOMO5iG8jhk5yz3CyxB0641FYhcRPA65HL7DLjA@mail.gmail.com>
Date: Mon, 7 Mar 2016 21:37:46 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Mahesh Bandewar <maheshb@...gle.com>
Cc: Mahesh Bandewar <mahesh@...dewar.net>,
David Miller <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
netdev <netdev@...r.kernel.org>, Tim Hockin <thockin@...gle.com>,
Alex Pollitt <alex.pollitt@...aswitch.com>,
Matthew Dupre <matthew.dupre@...aswitch.com>
Subject: Re: [PATCH next 3/3] net: Use l3_dev instead of skb->dev for L3 processing
On Fri, Mar 4, 2016 at 2:12 PM, Mahesh Bandewar <maheshb@...gle.com> wrote:
>
> Unfortunately we don't have a way to switch to ns after L3 processing.
I am totally aware of this, this is exactly why I said this might not be easy.
The question is how hard it is to implement one? My gut feeling is we only
need to change some data in skb, something similar to skb_scrub_packet().
But I never even try.
> So I would
> argue it the other-way around. The way it is now; breaks the _isolation_ model.
> If the default-ns is responsible for whole L3 (in this situation) and
> it does pretty well
> on egress but there is no way to do that in ingress path. IPtables is
> not the only thing,
> how about routing, how about IPsec? None of this will function well.
> So we need to
> have a generic solution to solve all these problems.
I don't understand why you question me this, it is you who only cares
about iptables from your cover letter for this patchset, not me.
The more subsystems involves, the more struct net pointers you
potentially need to touch, the less likely you can make it correct
by just switching skb->dev.
Powered by blists - more mailing lists