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

2015-05-29 Thread Mark D. Gray
From: Daniele Di Proietto diproiet...@vmware.com 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

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

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]

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

[ovs-dev] [PATCH v9] ovs-ofctl:Implementation of eviction on the basis of Importance

2015-05-29 Thread saloni . jain12
From: Saloni Jain saloni.j...@tcs.com This commit enables the eviction mechanism on the basis of importance as per the openflow specification 1.4. ovs-ofctl -O OpenFlow14 mod-table switch table evict Enable eviction on table of switch. Eviction adds a mechanism enabling the switch to

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 mark.d.g...@intel.com 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

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 joestrin...@nicira.com wrote: On 28 May 2015 at 18:39, Jesse Gross je...@nicira.com wrote: On Wed, May 27, 2015 at 3:18 PM, Andy Zhou az...@nicira.com wrote: On Wed, May 27, 2015 at 10:48 AM, Jesse Gross je...@nicira.com wrote: Even though

Re: [ovs-dev] new Geneve warnings

2015-05-29 Thread Jesse Gross
On Fri, May 29, 2015 at 10:43 AM, Ben Pfaff b...@nicira.com 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

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-by:

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] [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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: no change v2-v3: no change Acked-by: Ben Pfaff b...@nicira.com

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 renaming

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 make

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 share

[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] [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 f...@redhat.com Thanks, applied to branch-2.3.

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 je...@nicira.com wrote: On Wed, May 27, 2015 at 3:18 PM, Andy Zhou az...@nicira.com wrote: On Wed, May 27, 2015 at 10:48 AM, Jesse Gross je...@nicira.com wrote: Even though userspace does not yet support Geneve options, the kernel does and there is some

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 sevi...@vmware.com Signed-off-by: Ben

[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

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 je...@nicira.com 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

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 table-updates object described in RFC 7047.

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 table-updates object described in RFC 7047.

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 suggestions,

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: style fixes v2-v3: no change Acked-by: Ben Pfaff b...@nicira.com

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

2015-05-29 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme jrajaha...@nicira.com On May 29, 2015, at 10:41 AM, Ben Pfaff b...@nicira.com 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

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: no change v2-v3: no change s/is

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: no change v2-v3: no change Acked-by: Ben Pfaff b...@nicira.com

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: rename ovsdb-monitor.[ch] to monitor.[ch]

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 servicing

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 joestrin...@nicira.com wrote: On 29 May 2015 at 10:46, Jesse Gross je...@nicira.com wrote: Clang complains about the fact that we use a byte array to scan Geneve attributes into since there are different alignment requirements:

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com I think that the change from |= to = in this commit is going to break some corner cases

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: style fix v2-v3: no change Acked-by: Ben Pfaff

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 b...@nicira.com 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

[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 b...@nicira.com --- 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

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 b...@nicira.com 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

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 b...@nicira.com 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

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 jrajaha...@nicira.com Good catch, thanks. Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing

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 jrajaha...@nicira.com Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing list dev@openvswitch.org

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 jrajaha...@nicira.com 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

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 jrajaha...@nicira.com Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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 b...@nicira.com 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

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 b...@nicira.com wrote: On Thu, Apr 09, 2015 at 06:40:25PM -0700, Andy Zhou wrote: Signed-off-by: Andy Zhou az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com v1-v2: maintain ovsdb_monitor_changes using hmap instead of linked list.

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 b...@nicira.com 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

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] 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 al...@nicira.com On Fri, May 29, 2015 at 10:39 AM, Ben Pfaff b...@nicira.com wrote: On Wed, Feb 25, 2015 at 08:46:02AM -0800, Ben Pfaff wrote: The error message

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 jrajaha...@nicira.com On May 29, 2015, at 10:41 AM, Ben Pfaff b...@nicira.com wrote: On Tue, Mar 03, 2015 at 01:28:32PM -0800, Ben Pfaff wrote: There are a couple of

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 jrajaha...@nicira.com 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

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 b...@nicira.com ___ dev mailing list

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 jrajaha...@nicira.com Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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 b...@nicira.com 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

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 b...@nicira.com 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 az...@nicira.com 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 Andy Zhou
On Fri, May 29, 2015 at 11:03 AM, Ben Pfaff b...@nicira.com 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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com I think that the change

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 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 jrajaha...@nicira.com It's pretty

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 jrajaha...@nicira.com 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 +++

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 ovncontroller and

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 b...@nicira.com wrote: On Mon, Apr 13, 2015 at 05:56:15PM -0700, Joe Stringer wrote: Signed-off-by: Joe Stringer joestrin...@nicira.com The code in scan_u128() looks wrong to me: I don't see anything that makes the second call to

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 b...@nicira.com wrote: parse_int_string() returns an error if the field overflows, not if there is a bad hex digit. Signed-off-by: Ben Pfaff b...@nicira.com Acked-by: Jesse Gross je...@nicira.com ___ dev

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 jrajaha...@nicira.com Looks good, will you backport to 2.3 (if applicable)? Thanks, Ben. ___ dev mailing list dev@openvswitch.org

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 b...@nicira.com wrote: parse_int_string() returns an error if the field overflows, not if there is a bad hex digit. Signed-off-by: Ben Pfaff b...@nicira.com Acked-by: Jesse Gross

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 jrajaha...@nicira.com This is nifty. Here are some suggestions as an incremental diff. diff

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 b...@nicira.com wrote: On Fri, May 29, 2015 at 02:51:42PM -0700, Jesse Gross wrote:

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 b...@nicira.com 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

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 b...@nicira.com 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

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 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

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 jrajaha...@nicira.com Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing list

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 modifications

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 as

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 jrajaha...@nicira.com 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

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

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 under

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com v1-v2: maintain ovsdb_monitor_changes using hmap instead of linked list. v2-v3: no change The comment here in struct ovsdb_monitor_table

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. If

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 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 al...@nicira.com On Fri, May 29, 2015 at 10:40 AM, Ben Pfaff b...@nicira.com 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.

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

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 ovsdb

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 -t

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 chche

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 joestrin...@nicira.com 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

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 joestrin...@nicira.com It would be nice not to lose the

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: Joe

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 b...@nicira.com This could still use a review. ___ dev

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 b...@nicira.com This could still use a review.

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 az...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v1-v2: style fixes v2-v3: no change I get

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] [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 jb...@redhat.com 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

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 jb...@redhat.com 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

[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 aserd...@cloudbasesolutions.com ---

[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

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

2015-05-29 Thread Nithin Raju
On May 29, 2015, at 2:22 PM, Alin Serdean aserd...@cloudbasesolutions.com wrote: Removing a variable which breaks the windows forwarding extension build. The error: warning C4189: 'bufContext' : local variable is initialized but not referenced

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 jb...@redhat.com 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

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 jb...@redhat.com Looks good. I wonder whether we want a new netlink attribute type NL_A_IPV6? ___ dev mailing list dev@openvswitch.org

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 jb...@redhat.com Seems reasonable, thanks. ___ dev

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