Re: [ovs-dev] [PATCH v2 19/19] Use classifier versioning.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:28PM -0700, Jarno Rajahalme wrote: > Each rule is now added or deleted in a specific tables version. Flow > tables are versioned with a monotonically increasing 64-bit integer, > where positive values are valid version numbers. > > Rule modifications are implemented

Re: [ovs-dev] [PATCH v2 17/19] classifier: Support table versioning

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:26PM -0700, Jarno Rajahalme wrote: > This patch allows classifier rules to become visible and invisible in > specific versions. A 'version' is defined as a positive monotonically > increasing integer, which never wraps around. > > When versioning is not used, the 've

Re: [ovs-dev] [PATCH v2 16/19] ovs-ofctl: Add 'bundle' command and unit testing.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:25PM -0700, Jarno Rajahalme wrote: > The new ovs-ofctl 'bundle' command accepts files similar to > 'add-flows', but each line can optionally start with 'add', 'modify', > 'delete', 'modify_strict', or 'delete_strict' keyword, so that > arbitrary flow table modification

Re: [ovs-dev] [PATCH v2 15/19] ofproto: Add support for reverting flow mods, and bundle commit.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:24PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme You know, we could make evictions reversible, since after all we have a way to mark rules as to-be-deleted and then not delete them. I don't know whether it's worthwhile. The handling of "conflicts

Re: [ovs-dev] [PATCH v2 14/19] ofproto: Split delete_flow*().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:23PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 13/19] ofproto: Split modify_flows().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:22PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 12/19] ofproto: Split add_flow().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:21PM -0700, Jarno Rajahalme wrote: > Split add_flow() to add_flow_begin() which does all the error > checking, and add_flow_finish() which can not fail. > > Since we still want to send an error response for an unknown > 'buffer_id', send_buffered_packet() now send the

Re: [ovs-dev] [PATCH v2 11/19] ofproto: Refactor modify_flows__().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:20PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme I see some opportunity for simplification in modify_flows_check__(): diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5c8b1a5..cb53245 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c

Re: [ovs-dev] [PATCH v2 10/19] ofproto: Use enum ofperr for 'error'.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:19PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme Hmm, ofproto_rule_create() returns ENOMEM instead of an ofperr on error, we should fix that. I see a few references to OFPROTO_POSTPONE in function comments too, we should drop those since we no lon

Re: [ovs-dev] [PATCH v2 09/19] ofproto: Factor out ofproto_rule_create().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:18PM -0700, Jarno Rajahalme wrote: > Makes add_flow() easier to read and understand. > > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/

Re: [ovs-dev] [PATCH v2 08/19] ofproto: Factor out ofproto_rule_insert__().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:17PM -0700, Jarno Rajahalme wrote: > Pairs well with ofproto_rule_remove__(). I prefer a mid-priced Gewürztraminer with my ofproto_rule_remove__(). Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvs

Re: [ovs-dev] [PATCH v2 07/19] bundles: Manage bundles in connmgr.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:16PM -0700, Jarno Rajahalme wrote: > This will make implementing commit in ofproto.c easier. > > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/l

Re: [ovs-dev] [PATCH v2 06/19] bundles: Validate bundled messages.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:15PM -0700, Jarno Rajahalme wrote: > OpenFlow bundle messages should be decoded and validated at the time > they are added to the bundle. This commit does this for flow mod and > port mod messages. > > Signed-off-by: Jarno Rajahalme It's pretty expensive to give ev

Re: [ovs-dev] get over here and f%ck me

2015-05-29 Thread NewF#ckBuddy
Send me a F#ckFriends request so we can hook up My usename is HorNyChik77 y profile is here http://cc4.co/NPAZV SPEAK SOON ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 05/19] classifier: Support duplicate rules.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:14PM -0700, Jarno Rajahalme wrote: > OpenFlow 1.4 bundles are easier to implement when it is possible to > mark a rule as 'to_be_removed' and then insert a new, identical rule > with the same priority. > > All but one out of the identical rules must be marked as > 'to

Re: [ovs-dev] [ovsdb speedup v3 16/19] ovsdb-monitor: allow multiple of 'ovsdb_monitor_changes' in each ovsdb monitor table

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 12:08 PM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:25PM -0700, Andy Zhou wrote: >> Signed-off-by: Andy Zhou >> Acked-by: Ben Pfaff >> >> >> v1->v2: maintain ovsdb_monitor_changes using hmap instead of linked >> list. >> >> v2->v3: no change > > The co

Re: [ovs-dev] [ovsdb speedup v3 15/19] ovsdb-monitor: add ovsdb_monitor_changes

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 12:00 PM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:24PM -0700, Andy Zhou wrote: >> Currently, each monitor table contains a single hmap 'changes' to >> track updates. This patch introduces a new data structure >> 'ovsdb_monitor_changes' that stores the updates 'rows

Re: [ovs-dev] [ovsdb speedup v3 13/19] ovsdb-monitor: add transaction ids

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 11:39 AM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:22PM -0700, Andy Zhou wrote: >> With N:1 mappings, multiple jsonrpc server may be servicing the rpc >> connection at a different pace. ovsdb-monitor thus needs to maintain >> different change sets, depends on connec

Re: [ovs-dev] [ovsdb speedup v3 12/19] ovsdb-monitor: stores jsonrpc-monitor in a linked-list

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 11:34 AM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:21PM -0700, Andy Zhou wrote: >> Currently, each ovsdb-monitor points to a single jsonrpc_monitor object. >> This means there is 1:1 relationship between them. >> >> In case multiple jsonrpc-monitors need to monitor

Re: [ovs-dev] [ovsdb speedup v3 06/19] jsonrpc-server: refactoring ovsdb_jsonrpc_monitor_compose_table_update()

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 11:15 AM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:15PM -0700, Andy Zhou wrote: >> Now it simply calls ovsdb_monitor_compose_table_update(), which >> is actually creates the json object. >> >> Signed-off-by: Andy Zhou >> Acked-by: Ben Pfaff >> >> --- >> v1->v2: no

Re: [ovs-dev] [ovsdb speedup v3 03/19] jsonrpc-server: make setting mt->select into its own functions

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 11:03 AM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:12PM -0700, Andy Zhou wrote: >> To make ovsdb_monitor an opaque to ovsdb_jsonrpc server object. >> >> Signed-off-by: Andy Zhou >> Acked-by: Ben Pfaff > > I think that the change from |= to = in this commit is goin

Re: [ovs-dev] [ovsdb speedup v3 02/19] jsonrpc-server: split monitors into database back end and JSON-RPM front end

2015-05-29 Thread Andy Zhou
On Fri, May 29, 2015 at 10:58 AM, Ben Pfaff wrote: > On Thu, Apr 09, 2015 at 06:40:11PM -0700, Andy Zhou wrote: >> jsonrpc-server.c has two main functions. One deals with handling the >> jsonrpc connections, the other deals with monitoring the database. >> >> Currently, each jsonrpc connections ha

Re: [ovs-dev] [PATCH] learn: Fix buffer overflow in parsing "learn" action strings.

2015-05-29 Thread Alex Wang
Thx a lot for the explanation, Really intrigued me a lot~! spent time writing simple example and gdb monitor it. Now understand what you mean~ Thanks, Alex Wang, On Fri, May 29, 2015 at 3:15 PM, Ben Pfaff wrote: > On Fri, May 29, 2015 at 02:51:42PM -0700, Jesse Gross wrote: > > On Fri, May 2

Re: [ovs-dev] [PATCH v2 04/19] classifier: Add support for invisible flows.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:13PM -0700, Jarno Rajahalme wrote: > This makes it possible to tentatively add flows to the classifier > without the datapath seeing them. > > Signed-off-by: Jarno Rajahalme This is nifty. Here are some suggestions as an incremental diff. diff --git a/lib/classifi

Re: [ovs-dev] [PATCH v2 03/19] ofp-util: Fix xid in ofputil_encode_bundle_add().

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:12PM -0700, Jarno Rajahalme wrote: > Bundle add must use the same xid as the embedded message. > > Signed-off-by: Jarno Rajahalme Good catch, thanks. Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://op

Re: [ovs-dev] [PATCH] learn: Improve error reporting.

2015-05-29 Thread Ben Pfaff
On Fri, May 29, 2015 at 03:23:17PM -0700, Jesse Gross wrote: > On Fri, May 29, 2015 at 3:15 PM, Ben Pfaff wrote: > > parse_int_string() returns an error if the field overflows, not if there > > is a bad hex digit. > > > > Signed-off-by: Ben Pfaff > > Acked-by: Jesse Gross Thanks, applied.

Re: [ovs-dev] [PATCH v2 02/19] ofp-parse: Remove unused F_OUT_PORT field flag.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:11PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme I think the correct fix is more like this: diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 856044d..0e265a7 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -353,7 +353,7 @@ parse_ofp_str_

Re: [ovs-dev] [PATCH v2 01/19] ofproto: Eliminate use of unset error code.

2015-05-29 Thread Ben Pfaff
On Mon, May 18, 2015 at 04:10:10PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme Looks good, will you backport to 2.3 (if applicable)? Thanks, Ben. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif: Refactor feature support structure.

2015-05-29 Thread Joe Stringer
On 29 May 2015 at 13:24, Ben Pfaff wrote: > On Mon, Apr 13, 2015 at 05:56:16PM -0700, Joe Stringer wrote: >> Place all of the detected datapath features into a separate structure, >> initialized when the dpif_backer is opened and shared with xbridges. >> >> Signed-off-by: Joe Stringer > > It woul

Re: [ovs-dev] [PATCH 3/3] odp-execute: Refactor determining dpif assistance.

2015-05-29 Thread Joe Stringer
On 29 May 2015 at 13:26, Ben Pfaff wrote: > On Mon, Apr 13, 2015 at 05:56:17PM -0700, Joe Stringer wrote: >> To be more explicit about which actions require datapath assistance, >> split this out into a separate function. While this is fairly trivial >> currently, there may be special cases for up

Re: [ovs-dev] [PATCH] learn: Improve error reporting.

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 3:15 PM, Ben Pfaff wrote: > parse_int_string() returns an error if the field overflows, not if there > is a bad hex digit. > > Signed-off-by: Ben Pfaff Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org http://openv

Re: [ovs-dev] [PATCH] ofp-errors: Add Nicira extension code for OFPBMC_BAD_FIELD.

2015-05-29 Thread Ben Pfaff
Thanks, applied to master. On Fri, May 29, 2015 at 11:14:57AM -0700, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > > On May 29, 2015, at 10:41 AM, Ben Pfaff wrote: > > > > On Tue, Mar 03, 2015 at 01:28:32PM -0800, Ben Pfaff wrote: > >> There are a couple of cases where OpenFlow 1.0 co

Re: [ovs-dev] [PATCH] json: Fix error message for corner case in json_string_unescape().

2015-05-29 Thread Ben Pfaff
Thanks, I'll apply this in a minute. On Fri, May 29, 2015 at 01:28:27PM -0700, Alex Wang wrote: > Acked-by: Alex Wang > > > > On Fri, May 29, 2015 at 10:39 AM, Ben Pfaff wrote: > > > On Wed, Feb 25, 2015 at 08:46:02AM -0800, Ben Pfaff wrote: > > > The error message should not include bytes a

Re: [ovs-dev] [PATCH] learn: Fix buffer overflow in parsing "learn" action strings.

2015-05-29 Thread Ben Pfaff
On Fri, May 29, 2015 at 02:51:42PM -0700, Jesse Gross wrote: > On Fri, May 29, 2015 at 10:40 AM, Ben Pfaff wrote: > > On Wed, Feb 25, 2015 at 09:12:38AM -0800, Ben Pfaff wrote: > >> Don't panic, this is not a remote buffer overflow, only a bug in a program > >> parsing its input from the command l

[ovs-dev] [PATCH] learn: Improve error reporting.

2015-05-29 Thread Ben Pfaff
parse_int_string() returns an error if the field overflows, not if there is a bad hex digit. Signed-off-by: Ben Pfaff --- lib/learn.c| 4 ++-- tests/learn.at | 14 ++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/learn.c b/lib/learn.c index 8ff1e0a..a0e32c6

Re: [ovs-dev] [PATCH 1/3] odp-util: Refactor ovs_u128 handling functions.

2015-05-29 Thread Joe Stringer
Thanks for review, On 29 May 2015 at 13:22, Ben Pfaff wrote: > On Mon, Apr 13, 2015 at 05:56:15PM -0700, Joe Stringer wrote: >> Signed-off-by: Joe Stringer > > The code in scan_u128() looks wrong to me: I don't see anything that > makes the second call to ovs_scan(), to get the mask, skip past t

Re: [ovs-dev] [PATCH] Fix build datapath-windows

2015-05-29 Thread Ben Pfaff
On Fri, May 29, 2015 at 09:22:54PM +, Alin Serdean wrote: > Removing a variable which breaks the windows forwarding extension build. > > The error: > warning C4189: 'bufContext' : local variable is initialized but not > referencedc:\temp_may\ovs\datapath-windows\ovsext\PacketIO.c > >

Re: [ovs-dev] [PATCH] learn: Fix buffer overflow in parsing "learn" action strings.

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 10:40 AM, Ben Pfaff wrote: > On Wed, Feb 25, 2015 at 09:12:38AM -0800, Ben Pfaff wrote: >> Don't panic, this is not a remote buffer overflow, only a bug in a program >> parsing its input from the command line or a file. >> >> Found by inspection. >> >> Signed-off-by: Ben Pf

Re: [ovs-dev] [PATCH ovn 2/2] fedora.spec: Create openvswitch-ovn package.

2015-05-29 Thread Ben Pfaff
On Fri, May 29, 2015 at 05:07:19PM -0400, Russell Bryant wrote: > On 05/29/2015 04:50 PM, Ben Pfaff wrote: > > On Fri, Apr 24, 2015 at 01:06:06PM -0400, Russell Bryant wrote: > >> This patch creates a new subpackage for OVN, openvswitch-ovn. It also > >> installs systemd unit files for ovncontroll

Re: [ovs-dev] [RFC PATCH 06/13] tunneling: extend flow_tnl with ipv6 addresses

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:37PM +0200, Jiri Benc wrote: > Note that because there's been no prerequisite on the outer protocol, > we cannot add it now. Instead, treat the ipv4 and ipv6 dst fields in the way > that either both are null, or at most one of them is non-null. > > Signed-off-by: Jiri

Re: [ovs-dev] [RFC PATCH 05/13] lib: add format_in6_addr and scan_in6_addr

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:36PM +0200, Jiri Benc wrote: > Add in6_addr counterparts to the existing format and scan functions. > Otherwise we'd need to recast all the time. > > Signed-off-by: Jiri Benc Seems reasonable, thanks. ___ dev mailing list

Re: [ovs-dev] [RFC PATCH 04/13] netlink: helper functions for ipv6 address in netlink attrs

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:35PM +0200, Jiri Benc wrote: > Signed-off-by: Jiri Benc Looks good. I wonder whether we want a new netlink attribute type NL_A_IPV6? ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [RFC PATCH 03/13] tunneling: add ipv6 fields to netdev_tunnel_config

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:34PM +0200, Jiri Benc wrote: > Allow configuration of ipv6 tunnel endpoints. > > Signed-off-by: Jiri Benc The OVS coding style, for better or worse, calls for {} to be used even when there's only a single statement, so there are some missing {} in parse_tunnel_ip().

Re: [ovs-dev] [PATCH] Fix build datapath-windows

2015-05-29 Thread Nithin Raju
> On May 29, 2015, at 2:22 PM, Alin Serdean > wrote: > > Removing a variable which breaks the windows forwarding extension build. > > The error: > warning C4189: 'bufContext' : local variable is initialized but not > referencedc:\temp_may\ovs\datapath-windows\ovsext\PacketIO.c > > Sig

[ovs-dev] Here you can find it

2015-05-29 Thread Jonathon Owen
Amazing delight will be organized by nice babes http://cc4.co/YLBOW ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] Fix build datapath-windows

2015-05-29 Thread Alin Serdean
Removing a variable which breaks the windows forwarding extension build. The error: warning C4189: 'bufContext' : local variable is initialized but not referenced c:\temp_may\ovs\datapath-windows\ovsext\PacketIO.c Signed-off-by: Alin Gabriel Serdean --- datapath-windows/ovsext/PacketIO.c | 1

Re: [ovs-dev] [RFC PATCH 02/13] lib: add ipv6 helper functions for tnl_config

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:33PM +0200, Jiri Benc wrote: > These functions will be used by the next patch. > > Signed-off-by: Jiri Benc POSIX doesn't guarantee the presence of an s6_addr32 member so this yields errors from sparse: ../lib/packets.h:712:15: error: no member 's6_addr32' in st

Re: [ovs-dev] [RFC PATCH 01/13] datapath: add ipv6 tunnel definitions

2015-05-29 Thread Ben Pfaff
On Thu, May 14, 2015 at 08:12:32PM +0200, Jiri Benc wrote: > This adds the needed constants from the kernel patch set posted earlier. > > Signed-off-by: Jiri Benc It would be nice to document the type of the new OVS_TUNNEL_ATTR_OVER_IPV6. (Is it just a flag?) I see that the existing OVS_TUNNEL

Re: [ovs-dev] [PATCH ovn 2/2] fedora.spec: Create openvswitch-ovn package.

2015-05-29 Thread Russell Bryant
On 05/29/2015 04:50 PM, Ben Pfaff wrote: > On Fri, Apr 24, 2015 at 01:06:06PM -0400, Russell Bryant wrote: >> This patch creates a new subpackage for OVN, openvswitch-ovn. It also >> installs systemd unit files for ovncontroller and ovnnorthd services. >> Finally, it installs some template service

Re: [ovs-dev] [PATCH ovn 0/2 v2] Update Fedora packaging for OVN.

2015-05-29 Thread Ben Pfaff
On Mon, May 04, 2015 at 05:40:44PM -0400, Russell Bryant wrote: > v1->v2: > - Change systemd units to run ovn-northd and ovn-controller directly >instead of using ovn-ctl. I kept ovn-ctl around anyway as it >seemed useful to provide as an option for integrating with systems >without s

Re: [ovs-dev] [PATCH ovn 1/2] Add ovn-ctl to assist with OVN daemon lifecycle.

2015-05-29 Thread Russell Bryant
On 05/29/2015 04:47 PM, Ben Pfaff wrote: > On Fri, Apr 24, 2015 at 01:06:05PM -0400, Russell Bryant wrote: >> This patch introduces ovn-ctl, which is similar to ovs-ctl. I opted >> for a new script as everything in OVN so far is nicely isolated, so a >> new script seemed to make the most sense. >>

Re: [ovs-dev] [PATCH] learn: Fix buffer overflow in parsing "learn" action strings.

2015-05-29 Thread Alex Wang
Acked-by: Alex Wang On Fri, May 29, 2015 at 10:40 AM, Ben Pfaff wrote: > On Wed, Feb 25, 2015 at 09:12:38AM -0800, Ben Pfaff wrote: > > Don't panic, this is not a remote buffer overflow, only a bug in a > program > > parsing its input from the command line or a file. > > > > Found by inspection

Re: [ovs-dev] [PATCH ovn 2/2] fedora.spec: Create openvswitch-ovn package.

2015-05-29 Thread Ben Pfaff
On Fri, Apr 24, 2015 at 01:06:06PM -0400, Russell Bryant wrote: > This patch creates a new subpackage for OVN, openvswitch-ovn. It also > installs systemd unit files for ovncontroller and ovnnorthd services. > Finally, it installs some template service configuration files into > /etc/sysconfig/. >

Re: [ovs-dev] [PATCH ovn 1/2] Add ovn-ctl to assist with OVN daemon lifecycle.

2015-05-29 Thread Ben Pfaff
On Fri, Apr 24, 2015 at 01:06:05PM -0400, Russell Bryant wrote: > This patch introduces ovn-ctl, which is similar to ovs-ctl. I opted > for a new script as everything in OVN so far is nicely isolated, so a > new script seemed to make the most sense. > > ovn-ctl supports a few different scenarios.

Re: [ovs-dev] [PATCH] netlink-notifier: Support multiple groups.

2015-05-29 Thread Ben Pfaff
On Thu, Apr 16, 2015 at 12:49:54PM -0700, Jarno Rajahalme wrote: > A netlink notifier ('nln') already supports multiple notifiers. This > patch allows each of these notifiers to subscribe to a different > multicast group. Sharing a single socket for multiple event types > (each on their own multi

Re: [ovs-dev] [PATCH] ovsdb: add user space instruction counters

2015-05-29 Thread Ben Pfaff
On Wed, Apr 15, 2015 at 09:01:14AM -0700, Andy Zhou wrote: > Add a set of user space instruction counters to help break down > where instructions are spent. > > Here is an example of screen capture of adding a port to database > without any monitoring client. > > ~/projs/ovs/tutorial$ ovs-appctl

Re: [ovs-dev] [PATCH] json: Fix error message for corner case in json_string_unescape().

2015-05-29 Thread Alex Wang
Acked-by: Alex Wang On Fri, May 29, 2015 at 10:39 AM, Ben Pfaff wrote: > On Wed, Feb 25, 2015 at 08:46:02AM -0800, Ben Pfaff wrote: > > The error message should not include bytes already copied from the input > > string. > > > > Found by inspection. > > > > Signed-off-by: Ben Pfaff > > This

Re: [ovs-dev] [PATCH 3/3] odp-execute: Refactor determining dpif assistance.

2015-05-29 Thread Ben Pfaff
On Mon, Apr 13, 2015 at 05:56:17PM -0700, Joe Stringer wrote: > To be more explicit about which actions require datapath assistance, > split this out into a separate function. While this is fairly trivial > currently, there may be special cases for upcoming conntrack changes. > > Signed-off-by: Jo

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif: Refactor feature support structure.

2015-05-29 Thread Ben Pfaff
On Mon, Apr 13, 2015 at 05:56:16PM -0700, Joe Stringer wrote: > Place all of the detected datapath features into a separate structure, > initialized when the dpif_backer is opened and shared with xbridges. > > Signed-off-by: Joe Stringer It would be nice not to lose the detailed comments in stru

Re: [ovs-dev] [PATCH 1/3] odp-util: Refactor ovs_u128 handling functions.

2015-05-29 Thread Ben Pfaff
On Mon, Apr 13, 2015 at 05:56:15PM -0700, Joe Stringer wrote: > Signed-off-by: Joe Stringer The code in scan_u128() looks wrong to me: I don't see anything that makes the second call to ovs_scan(), to get the mask, skip past the value, e.g. by passing s + n to the second ovs_scan() or by advancin

Re: [ovs-dev] [ovsdb speedup v3 19/19] ovsdb-monitor: add json cache

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:28PM -0700, Andy Zhou wrote: > Although multiple jsonrpc monitor can share the same ovsdb monitor, each > change still needs to transalted into json object from scratch. This > can be wastful is mutiple jsonrpc monitors are interested in the > same changes. > > Json c

Re: [ovs-dev] [ovsdb speedup v3 18/19] ovsdb-monitor: allow multiple jsonrpc monitors to share a single ovsdb monitor

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:27PM -0700, Andy Zhou wrote: > Store ovsdb monitor in global hmap. A newly created ovsdb monitor > object will first search the global hmap for a possible match. If > one is found, the existing ovsdb monitor is used instead. > > With this patch, jsonrpc monitor and ov

Re: [ovs-dev] [ovsdb speedup v3 17/19] ovsdb-monitor: refactor ovsdb_monitor_create()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:26PM -0700, Andy Zhou wrote: > Add ovsdb_monitor_add_jsonrpc_monitor(). This change will allow > ovsdb_monitor to be reference counted. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: style fixes > v2->v3: no change I get a bunch of test failu

Re: [ovs-dev] [ovsdb speedup v3 16/19] ovsdb-monitor: allow multiple of 'ovsdb_monitor_changes' in each ovsdb monitor table

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:25PM -0700, Andy Zhou wrote: > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > > v1->v2: maintain ovsdb_monitor_changes using hmap instead of linked > list. > > v2->v3: no change The comment here in struct ovsdb_monitor_table talks about 'unflushed

Re: [ovs-dev] [ovsdb speedup v3 15/19] ovsdb-monitor: add ovsdb_monitor_changes

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:24PM -0700, Andy Zhou wrote: > Currently, each monitor table contains a single hmap 'changes' to > track updates. This patch introduces a new data structure > 'ovsdb_monitor_changes' that stores the updates 'rows' tagged by > its first commit transaction id. Each 'ovsd

Re: [ovs-dev] [ovsdb speedup v3 14/19] ovsdb-monitor: rename jsonrpc_monitor_compose_table_update()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:23PM -0700, Andy Zhou wrote: > jsonrpc_monitor_compose_update() seems to fit better than > jsonrpc_monitor_compose_table_update(), since it composes changes > from all tables. Albeit the original one is named after the > object described in RFC 7047. > > Signed-off-

Re: [ovs-dev] [ovsdb speedup v3 14/19] ovsdb-monitor: rename jsonrpc_monitor_compose_table_update()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:23PM -0700, Andy Zhou wrote: > jsonrpc_monitor_compose_update() seems to fit better than > jsonrpc_monitor_compose_table_update(), since it composes changes > from all tables. Albeit the original one is named after the > object described in RFC 7047. > > Signed-off-

Re: [ovs-dev] [ovsdb speedup v3 13/19] ovsdb-monitor: add transaction ids

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:22PM -0700, Andy Zhou wrote: > With N:1 mappings, multiple jsonrpc server may be servicing the rpc > connection at a different pace. ovsdb-monitor thus needs to maintain > different change sets, depends on connection speed of each rpc > connections. Connections servici

Re: [ovs-dev] [ovsdb speedup v3 12/19] ovsdb-monitor: stores jsonrpc-monitor in a linked-list

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:21PM -0700, Andy Zhou wrote: > Currently, each ovsdb-monitor points to a single jsonrpc_monitor object. > This means there is 1:1 relationship between them. > > In case multiple jsonrpc-monitors need to monitor the same tables and > the columns within them, then can s

[ovs-dev] [RFC HSA 2/4 V2] hsa-match: Sparse representation of a byte array derived from "struct match".

2015-05-29 Thread Alex Wang
For conducting Header Space Analysis (HSA), we convert the wildcarded OpenFlow flow represented by 'struct match' into an encoded byte array. To further save memory, we use a sparse array to represent such byte array in the same way as 'struct miniflow'. So, this commit implements the structs and

Re: [ovs-dev] [ovsdb speedup v3 11/19] ovsdb-monitor: refactoring ovsdb_monitor_get_initial

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:20PM -0700, Andy Zhou wrote: > Refactoring ovsdb_monitor_get_initial() to not generate JSON object. > It only collect changes within the ovsdb_monitor(). > ovsdb_jsonrpc_monitor_compose_table_update() is then used to generate > JSON object. > > This change will also m

Re: [ovs-dev] [ovsdb speedup v3 10/19] jsonrpc-server: Split out monitor backend functions to monitor.c/h

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:19PM -0700, Andy Zhou wrote: > Added new files monitor.[ch] for monitor backend functions. > There is no functional changes. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: rename ovsdb-monitor.[ch] to monitor.[ch] > v2->v3: no change Acked-by

Re: [ovs-dev] [ovsdb speedup v3 09/19] jsonrpc-server: refactoring ovsdb_monitor_destroy()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:18PM -0700, Andy Zhou wrote: > Add ovsdb_monitor_destory() function to properly cleanup ovsdb_monitor. > It is also responsible for unhook from the replica chain. > > The replica destroy callback is now called > ovsdb_monitor_destroy_callback() > > Minor variable ren

Re: [ovs-dev] [ovsdb speedup v3 08/19] jsonrpc-server: rename ovsdb_jsonrpc_monitor_get_initial()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:17PM -0700, Andy Zhou wrote: > rename ovsdb_jsonrpc_monitor_get_initial() to > ovsdb_monitor_get_initial() > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: no change > v2->v3: no change Acked-by: Ben Pfaff _

Re: [ovs-dev] [ovsdb speedup v3 07/19] jsonrpc-server: refactoring ovsdb_jsonrpc_monitor_needs_flush

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:16PM -0700, Andy Zhou wrote: > split out per monitoring needs_flush() into > ovsdb_monitor_needs_flush(). > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: no change > v2->v3: no change Acked-by: Ben Pfaff __

Re: [ovs-dev] [ovsdb speedup v3 06/19] jsonrpc-server: refactoring ovsdb_jsonrpc_monitor_compose_table_update()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:15PM -0700, Andy Zhou wrote: > Now it simply calls ovsdb_monitor_compose_table_update(), which > is actually creates the json object. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: no change > v2->v3: no change s/is actually/actually/ in comm

Re: [ovs-dev] [PATCH] ofp-errors: Add Nicira extension code for OFPBMC_BAD_FIELD.

2015-05-29 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme > On May 29, 2015, at 10:41 AM, Ben Pfaff wrote: > > On Tue, Mar 03, 2015 at 01:28:32PM -0800, Ben Pfaff wrote: >> There are a couple of cases where OpenFlow 1.0 controllers that use >> Nicira extensions can get OFPBMC_BAD_FIELD, so we should have an error >> code for

Re: [ovs-dev] [ovsdb speedup v3 05/19] jsonrpc-server: refactor ovsdb_monitor_add_column()

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:14PM -0700, Andy Zhou wrote: > To hide ovsdb_monitor_table object from ovsdb_jsonrpc serve. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: style fixes > v2->v3: no change Acked-by: Ben Pfaff ___

Re: [ovs-dev] [ovsdb speedup v3 04/19] jsonrpc-server: refactor ovsdb_jsonrpc_parse_monitor_request

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:13PM -0700, Andy Zhou wrote: > Change ovsdb_jsonrpc_parse_monitor_request() to make > ovsdb_monitor_table an opaque object. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff > > --- > v1->v2: style fix > v2->v3: no change Acked-by: Ben Pfaff

Re: [ovs-dev] [ovsdb speedup v3 03/19] jsonrpc-server: make setting mt->select into its own functions

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:12PM -0700, Andy Zhou wrote: > To make ovsdb_monitor an opaque to ovsdb_jsonrpc server object. > > Signed-off-by: Andy Zhou > Acked-by: Ben Pfaff I think that the change from |= to = in this commit is going to break some corner cases where different columns within

Re: [ovs-dev] [ovsdb speedup v3 02/19] jsonrpc-server: split monitors into database back end and JSON-RPM front end

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:11PM -0700, Andy Zhou wrote: > jsonrpc-server.c has two main functions. One deals with handling the > jsonrpc connections, the other deals with monitoring the database. > > Currently, each jsonrpc connections has its own set of DB monitors. > This can be wasteful if a

Re: [ovs-dev] [PATCH] odp-util: Fix alignment when scanning Geneve attributes.

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 10:50 AM, Joe Stringer wrote: > On 29 May 2015 at 10:46, Jesse Gross wrote: >> Clang complains about the fact that we use a byte array to scan >> Geneve attributes into since there are different alignment requirements: >> >> lib/odp-util.c:2936:30: error: cast from 'uint8_

Re: [ovs-dev] [ovsdb speedup v3 01/19] ovsdb-test: add multiple clients to backlogged connection test

2015-05-29 Thread Ben Pfaff
On Thu, Apr 09, 2015 at 06:40:10PM -0700, Andy Zhou wrote: > Backlogged connection test tests jsonrpc monitor's ability to combine > updates. Adding multiple clients to ensure that non-blocking clients > will get individual updates while blocking clients will get combined > updates. > > Signed-off

Re: [ovs-dev] [PATCH] odp-util: Fix alignment when scanning Geneve attributes.

2015-05-29 Thread Joe Stringer
On 29 May 2015 at 10:46, Jesse Gross wrote: > Clang complains about the fact that we use a byte array to scan > Geneve attributes into since there are different alignment requirements: > > lib/odp-util.c:2936:30: error: cast from 'uint8_t *' (aka 'unsigned char *') > to > > 'struct geneve_o

Re: [ovs-dev] new Geneve warnings

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 10:43 AM, Ben Pfaff wrote: > I'm seeing the following new warnings from the Geneve patch checked in > recently: > > ../lib/odp-util.c:2936:30: error: cast from 'uint8_t *' (aka 'unsigned > char *') > to 'struct geneve_opt *' increases required alignment from

Re: [ovs-dev] [PATCH 4/4] odp-util: Geneve netlink decoding.

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 10:20 AM, Joe Stringer wrote: > On 28 May 2015 at 18:39, Jesse Gross wrote: >> On Wed, May 27, 2015 at 3:18 PM, Andy Zhou wrote: >>> On Wed, May 27, 2015 at 10:48 AM, Jesse Gross wrote: Even though userspace does not yet support Geneve options, the kernel does

[ovs-dev] [PATCH] odp-util: Fix alignment when scanning Geneve attributes.

2015-05-29 Thread Jesse Gross
Clang complains about the fact that we use a byte array to scan Geneve attributes into since there are different alignment requirements: lib/odp-util.c:2936:30: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'struct geneve_opt *' increases required alignment from 1 to 2 [-We

[ovs-dev] new Geneve warnings

2015-05-29 Thread Ben Pfaff
I'm seeing the following new warnings from the Geneve patch checked in recently: ../lib/odp-util.c:2936:30: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'struct geneve_opt *' increases required alignment from 1 to 2 [-Werror,-Wcast-align] struct geneve_o

Re: [ovs-dev] [PATCH] ofp-errors: Add Nicira extension code for OFPBMC_BAD_FIELD.

2015-05-29 Thread Ben Pfaff
On Tue, Mar 03, 2015 at 01:28:32PM -0800, Ben Pfaff wrote: > There are a couple of cases where OpenFlow 1.0 controllers that use > Nicira extensions can get OFPBMC_BAD_FIELD, so we should have an error > code for it in that protocol. > > Reported-by: Soner Sevinc > Signed-off-by: Ben Pfaff This

Re: [ovs-dev] [PATCH] learn: Fix buffer overflow in parsing "learn" action strings.

2015-05-29 Thread Ben Pfaff
On Wed, Feb 25, 2015 at 09:12:38AM -0800, Ben Pfaff wrote: > Don't panic, this is not a remote buffer overflow, only a bug in a program > parsing its input from the command line or a file. > > Found by inspection. > > Signed-off-by: Ben Pfaff This could still use a review. _

Re: [ovs-dev] [PATCH] json: Fix error message for corner case in json_string_unescape().

2015-05-29 Thread Ben Pfaff
On Wed, Feb 25, 2015 at 08:46:02AM -0800, Ben Pfaff wrote: > The error message should not include bytes already copied from the input > string. > > Found by inspection. > > Signed-off-by: Ben Pfaff This could still use a review. ___ dev mailing list d

Re: [ovs-dev] [PATCH ovn] controller: Drop unknown datapath log message.

2015-05-29 Thread Ben Pfaff
On Thu, May 28, 2015 at 04:37:14PM -0400, Russell Bryant wrote: > This patch emits a log message that is encountered a lot under normal > circumstances. For example, I'm seeing it almost 20,000 times in a > test run of the OpenStack test suite and hundreds of times while doing > basic tasting unde

Re: [ovs-dev] [PATCH] dpif-netdev: Fix non-pmd thread queue id.

2015-05-29 Thread Daniele Di Proietto
On 29/05/2015 12:44, "Gray, Mark D" wrote: > > >> -Original Message- >> From: Daniele Di Proietto [mailto:diproiet...@vmware.com] >> Sent: Thursday, May 28, 2015 5:58 PM >> To: Gray, Mark D >> Cc: dev@openvswitch.org >> Subject: Re: [ovs-dev] [PATCH] dpif-netdev: Fix non-pmd thread queu

Re: [ovs-dev] [PATCH 4/4] odp-util: Geneve netlink decoding.

2015-05-29 Thread Joe Stringer
On 28 May 2015 at 18:39, Jesse Gross wrote: > On Wed, May 27, 2015 at 3:18 PM, Andy Zhou wrote: >> On Wed, May 27, 2015 at 10:48 AM, Jesse Gross wrote: >>> Even though userspace does not yet support Geneve options, >>> the kernel does and there is some basic support for decoding >>> those attrib

Re: [ovs-dev] [PATCH 2.3] fedora-spec: add missing buildrequires

2015-05-29 Thread Ben Pfaff
On Thu, May 28, 2015 at 09:10:41PM -0300, Flavio Leitner wrote: > The BuildRequires tells upfront which packages should be > installed in order to build the openvswitch rpm packages. > > Signed-off-by: Flavio Leitner Thanks, applied to branch-2.3. ___

Re: [ovs-dev] [RFC HSA 2/4] hsa-match: Sparse representation of a byte array derived from "struct match".

2015-05-29 Thread Alex Wang
Thx a lot for the comments, - Fixed the sparse warning, - For the function usage, here is my judge: """ The hsbm_complement and hsbm_intersect are the two most called function. """ Actually, I spotted that hsbm_intersect can be made more efficient, - Also thx for the stylistic suggesti

Re: [ovs-dev] [PATCH] dpif-netdev: Fix non-pmd thread queue id.

2015-05-29 Thread Gray, Mark D
> -Original Message- > From: Daniele Di Proietto [mailto:diproiet...@vmware.com] > Sent: Thursday, May 28, 2015 5:58 PM > To: Gray, Mark D > Cc: dev@openvswitch.org > Subject: Re: [ovs-dev] [PATCH] dpif-netdev: Fix non-pmd thread queue id. > > > On 28/05/2015 17:16, "Gray, Mark D" wrot

[ovs-dev] [PATCH v2] dpif-netdev: Fix non-pmd thread queue id.

2015-05-29 Thread Mark D. Gray
From: Daniele Di Proietto Non pmd threads have a core_id == UINT32_MAX, while queue ids used by netdevs range from 0 to the number of CPUs. Therefore core ids cannot be used directly to select a queue. This commit introduces a simple mapping to fix the problem: non pmd threads use queue 0, pmd

Re: [ovs-dev] installing Python 2.7 on Xenserver (was: Re: [PATCH 1/2] Increase prerequisite from Python 2.4 to Python 2.7.)

2015-05-29 Thread Andy Hill
> Hmm, do we install anything else Python-based on hypervisors? Yes, but they don't use the OVS Python modules. Those scripts build ovs-vsctl commands[1]. I don't think porting the OVS modules to a newer Python would impact those. [1] https://github.com/openvswitch/ovs/blob/master/xenserver/opt_

Re: [ovs-dev] [PATCH 1/2] Increase prerequisite from Python 2.4 to Python 2.7.

2015-05-29 Thread Andy Hill
> What if we apply these to the ovn branch, and then plan to merge ovn > into master only after OVS 2.4 is released? That's sounds fine to me. I'll update the related mailing list threads when I hear more back from Citrix. ___ dev mailing list dev@openv

  1   2   >