From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: Re: [patch net-next RFC 0/4] introduce infrastructure for support of switch chip datapath Date: Wed, 26 Mar 2014 23:15:33 +0000 Message-ID: <20140326231533.GA11773@casper.infradead.org> References: <5330BAB7.3040501@mojatatu.com> <20140325173927.GE8102@hmsreliant.think-freely.org> <20140325180009.GB15723@casper.infradead.org> <20140325193533.GF8102@hmsreliant.think-freely.org> <5331ED86.7020704@mojatatu.com> <20140326111031.GB31370@hmsreliant.think-freely.org> <20140326112903.GG15723@casper.infradead.org> <20140326182122.GC31370@hmsreliant.think-freely.org> <53335838.3060409@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , Neil Horman , Jiri Pirko , netdev , David Miller , Andy Gospodarek , dborkman , ogerlitz , jesse , pshelar , azhou , Ben Hutchings , Stephen Hemminger , jeffrey.t.kirsher@intel.com, vyasevic , Cong Wang , John Fastabend , Eric Dumazet , Scott Feldman , Lennert Buytenhek , Felix Fietkau To: Jamal Hadi Salim Return-path: Received: from casper.infradead.org ([85.118.1.10]:50731 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbaCZXPh (ORCPT ); Wed, 26 Mar 2014 19:15:37 -0400 Content-Disposition: inline In-Reply-To: <53335838.3060409@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On 03/26/14 at 06:44pm, Jamal Hadi Salim wrote: > OTOH, the owrt view is probably because (If i understood correctly > last time), there are cases where there is no way to even pass packets > and attribute them to the originating switch ports. Infact, in some > cases there may be no way at all to even pass packets to the kernel. > Did i understand that part correctly? > I suppose this is eventually all part of that capability discovery. Listening to Florian it sounds like the fact that a separate control path was chosen early on in owrt got rid of the main driver to abstract everything through globally visible net_devices. Reusing existing tools was never an objective. I believe that the question whether a particular port will send packets to the cpu does not matter that much. We'll see both and we'll see various forms of hybrid models with software based learnings paths, slow paths, and deliberate upcalls. The simpler the model, the better. If the desire to hide some of the complexity is driven by usability when I believe that hiding should happen in user space.