From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch Date: Thu, 16 Jul 2015 08:58:27 +0200 Message-ID: <20150716065827.GA2145@nanopsycho.orion> References: <1437010754-29038-1-git-send-email-simon.horman@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Simon Horman , David Miller , Netdev To: Scott Feldman Return-path: Received: from mail-wi0-f170.google.com ([209.85.212.170]:38161 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbbGPG6b (ORCPT ); Thu, 16 Jul 2015 02:58:31 -0400 Received: by wicmv11 with SMTP id mv11so7061074wic.1 for ; Wed, 15 Jul 2015 23:58:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Thu, Jul 16, 2015 at 08:40:31AM CEST, sfeldma@gmail.com wrote: >On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman > wrote: >> Teach rocker to forward packets to CPU when a port is joined to Open vSwitch. >> There is scope to later refine what is passed up as per Open vSwitch flows >> on a port. >> >> This does not change the behaviour of rocker ports that are >> not joined to Open vSwitch. >> >> Signed-off-by: Simon Horman > >Acked-by: Scott Feldman > >Now, OVS flows on a port. Strange enough, that was the first RFC >implementation for switchdev/rocker where we hooked into ovs-kernel >module and programmed flows into hw. We pulled all of that code >because, IIRC, the ovs folks didn't want us hooking into the kernel >module directly. We dropped the ovs hooks and focused on hooking >kernel's L2/L3. The device (rocker) didn't really change: OF-DPA >pipeline was used for both. Might be interesting to try hooking it >again. I think that now we have an infrastructure prepared for that. I mean, what we need to do is to introduce another generic switchdev object called "ntupleflow" and hook-up again into ovs datapath and cls_flower and insert/remove the object from those codes. Should be pretty easy to do.