From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next] tc: introduce OpenFlow classifier Date: Fri, 27 Mar 2015 13:28:46 +0100 Message-ID: <20150327122846.GA2172@nanopsycho.orion> References: <1427374439-11587-1-git-send-email-jiri@resnulli.us> <1427379836.29436.9.camel@stressinduktion.org> <20150326152938.GD2010@nanopsycho.orion> <1427402351.2093330.245738573.1406B9EA@webmail.messagingengine.com> <20150327060716.GB2073@nanopsycho.orion> <20150327114402.GB12265@casper.infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Hannes Frederic Sowa , netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com, jesse@nicira.com To: Thomas Graf Return-path: Received: from mail-wi0-f179.google.com ([209.85.212.179]:35748 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964769AbbC0M2u (ORCPT ); Fri, 27 Mar 2015 08:28:50 -0400 Received: by wibbg6 with SMTP id bg6so24674113wib.0 for ; Fri, 27 Mar 2015 05:28:49 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20150327114402.GB12265@casper.infradead.org> Sender: netdev-owner@vger.kernel.org List-ID: Fri, Mar 27, 2015 at 12:44:02PM CET, tgraf@suug.ch wrote: >On 03/27/15 at 07:07am, Jiri Pirko wrote: >> well, you can do *everything* with cls_bpf now that it supports ebpf. >> But I think it is a big hammer. cls_openflow suppose to be just >> replacement for existing ovs classification, with very simple and well >> understood uapi. > >The current linear filtering approach makes it not suitable >right now. No doubt that unifying flow classification would >be great to have. > >Once you start building some form of wildcarded hash tables >into this, I see a lot of overlap with cls_flow appearing. >What about extending cls_flow instead? Are you still planning >to have one cls_classifier instance per wildcard flow? I'm not fan of extending cls_flow. It does something else. It calculates hash and set classid according to that. I like better to do cls_openflow on side. > >I'm usually all for small steps and take it from there but you >are setting a uapi in stone here and once you add linear >filtering behaviour you can't just undo it without a ton of >flags. Sure, what exactly is your uapi change proposal? I'd be glad to incorporate it.