Re: [ovs-dev] [RFC 05/14] udpif: Separate ukey maps from revalidators.

2014-08-24 Thread Joe Stringer
On 23 August 2014 07:59, Ben Pfaff wrote: > n_umaps is now a hard-coded constant, but a lot of the code assumes > that it can vary. It would be very slightly simpler to actually use a > macro or enum to define the fixed size instead of a variable. It > would also allow better code generation in

Re: [ovs-dev] [RFC 04/14] revalidator: Protect ukeys with a mutex.

2014-08-24 Thread Joe Stringer
On 23 August 2014 08:01, Ben Pfaff wrote: > On Thu, Aug 21, 2014 at 05:41:59PM +1200, Joe Stringer wrote: > > Currently, ukeys are protected during revalidator_sweep__() as only one > > thread accesses the ukey at a time. This is ensured using barriers: > > all revalidators will be in the GC phas

Re: [ovs-dev] [RFC 03/14] revalidator: Use 'cmap' for storing ukeys.

2014-08-24 Thread Joe Stringer
On 23 August 2014 06:47, Ben Pfaff wrote: > On Thu, Aug 21, 2014 at 05:41:58PM +1200, Joe Stringer wrote: > > Signed-off-by: Joe Stringer > > As of this patch, there isn't an advantage to using a cmap yet, right? > Not yet, no. Cmaps become useful when access is spread across handler threads as

Re: [ovs-dev] [RFC 02/14] dpif: Zero flow before dpif_flow_get().

2014-08-24 Thread Joe Stringer
On 23 August 2014 06:29, Ben Pfaff wrote: > On Thu, Aug 21, 2014 at 05:41:57PM +1200, Joe Stringer wrote: > > Signed-off-by: Joe Stringer > > My reading of the code is that this is redundant because > dpif_operate() always fills in the flow. > Right, this is needed in a later patch. I'll look a

Re: [ovs-dev] [PATCH 4/4] ofproto-dpif-upcall: Attribute statistics to OpenFlow flows more precisely.

2014-08-24 Thread Joe Stringer
On 23 August 2014 10:47, Ben Pfaff wrote: > OpenFlow packet and byte counters have always been something of an > approximation in Open vSwitch. First, they are updated only periodically. > Second, they can be misattributed because statistics collection does a > retranslation and gives the statis

Re: [ovs-dev] [PATCH 3/4] ofproto-dpif-xlate: Drop 'may_learn' parameter from xlate_push_stats().

2014-08-24 Thread Joe Stringer
On 23 August 2014 10:47, Ben Pfaff wrote: > Both existing callers calculated 'may_learn' as 'stats->n_packets > 0', so > it was redundant. Because xlate_push_stats() is now entirely a no-op if > 'stats->n_packets' is 0, we can now delete the tests entirely from the > cases that previously only r

Re: [ovs-dev] [PATCH 2/4] ofproto-dpif-xlate: Skip pushing stats if there are no packets to push.

2014-08-24 Thread Joe Stringer
On 23 August 2014 10:47, Ben Pfaff wrote: > xlate_push_stats() mostly does nothing if 'stats->n_packets' is 0. This > commit allows it to skip more complicated internal logic in that case. > > The one case I see in which xlate_push_stats() does do something if > 'stats->n_packets' is 0 is in the

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-24 Thread John Fastabend
On 08/24/2014 07:24 PM, Scott Feldman wrote: On Aug 24, 2014, at 8:15 AM, Jamal Hadi Salim wrote: On 08/24/14 07:12, Thomas Graf wrote: On 08/23/14 at 09:53pm, Jamal Hadi Salim wrote: I get what you are saying but I don't see that to be the case here. I don't see how this series proposes

Re: [ovs-dev] [PATCH 1/4] ofproto-dpif-xlate: Only learn MAC addresses upon handling packets.

2014-08-24 Thread Joe Stringer
On 23 August 2014 10:47, Ben Pfaff wrote: > MAC learning, like flow entry learning via the "learn" action, should only > happen if a packet was actually received. > > Signed-off-by: Ben Pfaff Acked-by: Joe Stringer ___ dev mailing list dev@openvswit

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-24 Thread Scott Feldman
On Aug 24, 2014, at 8:15 AM, Jamal Hadi Salim wrote: > On 08/24/14 07:12, Thomas Graf wrote: >> On 08/23/14 at 09:53pm, Jamal Hadi Salim wrote: > >> >> I get what you are saying but I don't see that to be the case here. I >> don't see how this series proposes the OVS case as *the* interface. >

Re: [ovs-dev] [PATCH v4 3/3] datapath: add layer 3 flow/port support

2014-08-24 Thread Jesse Gross
On Thu, Aug 21, 2014 at 12:24 PM, Lori Jakab wrote: > On 8/6/14 4:37 AM, Jesse Gross wrote: >> Besides the fact that it would be nice to unify things, I'm not sure >> that it is actually correct to pull off VLAN, MPLS, etc. tags that we >> don't understand. Presumably, these are being used to crea

Re: [ovs-dev] [PATCH] datapath: remove flow member from struct ovs_skb_cb

2014-08-24 Thread Jesse Gross
On Thu, Aug 21, 2014 at 12:25 PM, Lorand Jakab wrote: > struct ovs_skb_cb is full on kernels < 3.11 due to compatibility code. > This patch removes the 'flow' member in order to make room for data > needed by layer 3 flow/port support that will be added in an upcoming > patch. The 'flow' memeber

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-24 Thread Jamal Hadi Salim
On 08/24/14 07:12, Thomas Graf wrote: On 08/23/14 at 09:53pm, Jamal Hadi Salim wrote: I get what you are saying but I don't see that to be the case here. I don't see how this series proposes the OVS case as *the* interface. The focus of the patches is on offloading flows (uses the ovs or sh

Re: [ovs-dev] [patch net-next RFC 03/12] net: introduce generic switch devices support

2014-08-24 Thread Thomas Graf
On 08/21/14 at 06:18pm, Jiri Pirko wrote: > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index 39294b9..8b5d14c 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -49,6 +49,8 @@ > > #include > #include > +#include > + > #include > > s

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-24 Thread Thomas Graf
On 08/23/14 at 10:09am, John Fastabend wrote: > Right. I think this is basically what Jiri and I discussed when he > originally posted the series. For my use cases this is one of the > more interesting pieces. If no one else is looking at it I can try > it on some of the already existing open sourc

Re: [ovs-dev] [patch net-next RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-24 Thread Thomas Graf
On 08/23/14 at 09:53pm, Jamal Hadi Salim wrote: > On 08/22/14 18:53, Scott Feldman wrote: > > Ok, Scott - now i have looked at the patches on the plane and i am > still not convinced ;-> > > >The intent is to use openvswitch.ko’s struct sw_flow to program hardware via > >the > >ndo_swdev_flow_*