[ovs-dev] [PATCH v3] Add configurable OpenFlow port name.

2016-04-22 Thread Xiao Liang
Add new column "ofname" in Interface table to configure port name reported to controllers with OpenFlow protocol, thus decouple OpenFlow port name from device name. For example: # ovs-vsctl set Interface eth0 ofname=wan # ovs-vsctl set Interface eth1 ofname=lan0 then controllers can

Re: [ovs-dev] [PATCH v2] packets: use flow protocol when recalculating ipv6 checksums

2016-04-22 Thread Simon Horman
On Fri, Apr 22, 2016 at 10:10:38AM -0700, Ben Pfaff wrote: > On Fri, Apr 22, 2016 at 10:22:56PM +1000, Simon Horman wrote: > > When using masked actions the ipv6_proto field of an action > > to set IPv6 fields may be zero rather than the prevailing protocol > > which will result in skipping

Re: [ovs-dev] [PATCH] util.h: Restore stdarg.h which is necessary for va_list

2016-04-22 Thread Takashi YAMAMOTO
On Sat, Apr 23, 2016 at 12:28 PM, Ben Pfaff wrote: > On Sat, Apr 23, 2016 at 11:14:40AM +0900, YAMAMOTO Takashi wrote: > > Fixes a regression in commit b44ff8d826535025f4f8d12808c4ef36a7a8 . > > ("Misc cleanup with "util.h" header files") > > > > Signed-off-by: YAMAMOTO Takashi

Re: [ovs-dev] [PATCH] util.h: Restore stdarg.h which is necessary for va_list

2016-04-22 Thread Ben Pfaff
On Sat, Apr 23, 2016 at 11:14:40AM +0900, YAMAMOTO Takashi wrote: > Fixes a regression in commit b44ff8d826535025f4f8d12808c4ef36a7a8 . > ("Misc cleanup with "util.h" header files") > > Signed-off-by: YAMAMOTO Takashi Acked-by: Ben Pfaff

Re: [ovs-dev] [PATCH 4/4] classifier: Avoid inserting duplicates to cmaps.

2016-04-22 Thread Ben Pfaff
Thanks! On Fri, Apr 22, 2016 at 07:46:09PM -0700, Jarno Rajahalme wrote: > Thanks for a thorough review Ben! I just sent a v2 to the list. > > I addressed all your concerns and even found a small bug when testing with > the new test-ccmap. > > Jarno > > > On Apr 21, 2016, at 2:42 PM, Ben

[ovs-dev] [PATCH v3 5/5] classifier: Use ccmaps for staged lookup indices.

2016-04-22 Thread Jarno Rajahalme
Use the new ccmap type instead of cmap for staged lookup indices to fix the problem with slow removal of rules with large number of duplicates. This was problematic especially when many rules shared the same match in packet metadata (e.g., a port number, but nothing else), causing a large number

Re: [ovs-dev] [PATCH 4/4] classifier: Avoid inserting duplicates to cmaps.

2016-04-22 Thread Jarno Rajahalme
Scrap the v2, I sent a v3 which avoids a portability problem I introduced in v2. Jarno > On Apr 22, 2016, at 7:46 PM, Jarno Rajahalme wrote: > > Thanks for a thorough review Ben! I just sent a v2 to the list. > > I addressed all your concerns and even found a small bug when

[ovs-dev] [PATCH v3 4/5] lib: Add new 'counting cmap' type.

2016-04-22 Thread Jarno Rajahalme
cmap implements duplicates as linked lists, which causes removal of rules to become (O^2) with large number of duplicates. This patch fixes the problem by introducing a new 'counting' variant of the cmap (ccmap), which can be efficiently used to keep counts of inserted hash values provided by the

[ovs-dev] [PATCH v3 1/5] classifier: Remove redundant index.

2016-04-22 Thread Jarno Rajahalme
The test for figuring out if the last index had the same fields as the actual rules map as broken, resulting into keeping an unnecessary index around. Signed-off-by: Jarno Rajahalme Acked-by: Ryan Moats Acked-by: Ben Pfaff --- lib/classifier.c |

[ovs-dev] [PATCH v3 2/5] classifier: Remove logging.

2016-04-22 Thread Jarno Rajahalme
The only vlog line was a left over from debugging. Signed-off-by: Jarno Rajahalme Acked-by: Ryan Moats Acked-by: Ben Pfaff --- lib/classifier.c | 4 1 file changed, 4 deletions(-) diff --git a/lib/classifier.c b/lib/classifier.c index

[ovs-dev] [PATCH v3 3/5] classifier: Remove rare optimization case.

2016-04-22 Thread Jarno Rajahalme
This optimization applied when a staged lookup index would narrow down to a single rule, which happens sometimes is simple test cases, but presumably less often in more populated flow tables. The result of this optimization allowed a bit more general megaflows, but the bit patterns produced were

Re: [ovs-dev] [PATCH 4/4] classifier: Avoid inserting duplicates to cmaps.

2016-04-22 Thread Jarno Rajahalme
Thanks for a thorough review Ben! I just sent a v2 to the list. I addressed all your concerns and even found a small bug when testing with the new test-ccmap. Jarno > On Apr 21, 2016, at 2:42 PM, Ben Pfaff wrote: > > On Wed, Apr 13, 2016 at 07:06:46PM -0700, Jarno Rajahalme

[ovs-dev] [PATCH v2 4/6] ovs-atomic-clang: Add missing lock free macros.

2016-04-22 Thread Jarno Rajahalme
ATOMIC_type_LOCK_FREE macros were missing. Signed-off-by: Jarno Rajahalme --- lib/ovs-atomic-clang.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/ovs-atomic-clang.h b/lib/ovs-atomic-clang.h index 34cc2fa..54c0922 100644 --- a/lib/ovs-atomic-clang.h +++

[ovs-dev] [PATCH v2 2/6] classifier: Remove logging.

2016-04-22 Thread Jarno Rajahalme
The only vlog line was a left over from debugging. Signed-off-by: Jarno Rajahalme Acked-by: Ryan Moats Acked-by: Ben Pfaff --- lib/classifier.c | 4 1 file changed, 4 deletions(-) diff --git a/lib/classifier.c b/lib/classifier.c index

[ovs-dev] [PATCH v2 6/6] classifier: Use ccmaps for staged lookup indices.

2016-04-22 Thread Jarno Rajahalme
Use the new ccmap type instead of cmap for staged lookup indices to fix the problem with slow removal of rules with large number of duplicates. This was problematic especially when many rules shared the same match in packet metadata (e.g., a port number, but nothing else), causing a large number

[ovs-dev] [PATCH v2 5/6] lib: Add new 'counting cmap' type.

2016-04-22 Thread Jarno Rajahalme
cmap implements duplicates as linked lists, which causes removal of rules to become (O^2) with large number of duplicates. This patch fixes the problem by introducing a new 'counting' variant of the cmap (ccmap), which can be efficiently used to keep counts of inserted hash values provided by the

[ovs-dev] [PATCH v2 3/6] classifier: Remove rare optimization case.

2016-04-22 Thread Jarno Rajahalme
This optimization applied when a staged lookup index would narrow down to a single rule, which happens sometimes is simple test cases, but presumably less often in more populated flow tables. The result of this optimization allowed a bit more general megaflows, but the bit patterns produced were

[ovs-dev] [PATCH v2 1/6] classifier: Remove redundant index.

2016-04-22 Thread Jarno Rajahalme
The test for figuring out if the last index had the same fields as the actual rules map as broken, resulting into keeping an unnecessary index around. Signed-off-by: Jarno Rajahalme Acked-by: Ryan Moats Acked-by: Ben Pfaff --- lib/classifier.c |

[ovs-dev] [PATCH] util.h: Restore stdarg.h which is necessary for va_list

2016-04-22 Thread YAMAMOTO Takashi
Fixes a regression in commit b44ff8d826535025f4f8d12808c4ef36a7a8 . ("Misc cleanup with "util.h" header files") Signed-off-by: YAMAMOTO Takashi --- lib/util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.h b/lib/util.h index a908267..f631bdf 100644 ---

[ovs-dev] [PATCH v9 15/15] netdev-dpdk: Use ->reconfigure() call to change rx/tx queues.

2016-04-22 Thread Daniele Di Proietto
This introduces in dpif-netdev and netdev-dpdk the first use for the newly introduce reconfigure netdev call. When a request to change the number of queues comes, netdev-dpdk will remember this and notify the upper layer via netdev_request_reconfigure(). The datapath, instead of periodically

Re: [ovs-dev] [PATCH v8 08/16] dpif-netdev: Add pmd thread local port cache for transmission.

2016-04-22 Thread Daniele Di Proietto
Hi Ilya, thanks for reporting this. I've decided to handle tx port cache in dp_netdev_set_pmds_on_numa() and dp_netdev_set_nonpmd(). I've sent an updated version here: http://openvswitch.org/pipermail/dev/2016-April/070064.html Thanks, Daniele On 22/04/2016 08:15, "Ilya Maximets"

[ovs-dev] [PATCH v9 07/15] dpif-netdev: Add pmd thread local port cache for transmission.

2016-04-22 Thread Daniele Di Proietto
A future commit will stop using RCU for 'dp->ports' and use a mutex for reading/writing them. To avoid taking a mutex in dp_execute_cb(), which is called in the fast path, this commit introduces a pmd thread local cache of ports. The downside is that every port add/remove now needs to

[ovs-dev] [PATCH v9 12/15] dpif-netdev: Change pmd thread configuration in dpif_netdev_run().

2016-04-22 Thread Daniele Di Proietto
Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 144 ++-- lib/dpif-provider.h | 3 +- 2 files changed, 84 insertions(+), 63 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index

[ovs-dev] [PATCH v9 09/15] dpif-netdev: Use hmap for ports.

2016-04-22 Thread Daniele Di Proietto
netdev objects are hard to use with RCU, because it's not possible to split removal and reclamation. Postponing the removal means that the port is not removed and cannot be readded immediately. Waiting for reclamation means introducing a quiescent state, and that may introduce subtle bugs, due

[ovs-dev] [PATCH v9 11/15] ofproto-dpif: Call dpif_poll_threads_set() before dpif_run().

2016-04-22 Thread Daniele Di Proietto
An upcoming commit will make dpif_poll_threads_set() record the requested configuration and dpif_run() apply it, so it makes sense to change the order. Signed-off-by: Daniele Di Proietto Tested-by: Ilya Maximets Acked-by: Ilya Maximets

[ovs-dev] [PATCH v9 10/15] ovs-thread: Do not quiesce in ovs_mutex_cond_wait().

2016-04-22 Thread Daniele Di Proietto
ovs_mutex_cond_wait() is used in many functions in dpif-netdev to synchronize with pmd threads, but we can't guarantee that the callers do not hold RCU references, so it's better to avoid quiescing. In system_stats_thread_func() the code relied on ovs_mutex_cond_wait() to introduce a quiescent

[ovs-dev] [PATCH v9 04/15] dpif-netdev: Add functions to modify rxq without reloading pmd threads.

2016-04-22 Thread Daniele Di Proietto
This commit introduces some functions to add/remove rxqs from pmd threads without reloading them. They will be used by next commits. Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 77 --- 1 file changed, 56

[ovs-dev] [PATCH v9 13/15] dpif-netdev: Handle errors in reconfigure_pmd_threads().

2016-04-22 Thread Daniele Di Proietto
Errors returned by netdev_set_multiq() and netdev_rxq_open() weren't handled properly in reconfigure_pmd_threads(). In case of error now we remove the port from the datapath. Also, part of the code is moved in a new function, port_reconfigure(). Signed-off-by: Daniele Di Proietto

[ovs-dev] [PATCH v9 06/15] hmap: Add HMAP_FOR_EACH_POP.

2016-04-22 Thread Daniele Di Proietto
Makes popping each member of the hmap a bit easier. Signed-off-by: Daniele Di Proietto --- lib/cfm.c| 5 ++--- lib/hmap.h | 20 lib/id-pool.c| 5 ++--- lib/learning-switch.c| 5 ++---

[ovs-dev] [PATCH v9 14/15] netdev: Add reconfigure request mechanism.

2016-04-22 Thread Daniele Di Proietto
A netdev provider, especially a PMD provider (like netdev DPDK) might not be able to change some of its parameters (such as MTU, or number of queues) without stopping everything and restarting. This commit introduces a mechanism that allows a netdev provider to request a restart

[ovs-dev] [PATCH v9 08/15] hmap: Use struct for hmap_at_position().

2016-04-22 Thread Daniele Di Proietto
The interface will be more similar to the cmap. Signed-off-by: Daniele Di Proietto --- lib/hmap.c | 26 -- lib/hmap.h | 7 ++- lib/sset.c | 12 +--- lib/sset.h | 7 ++-

[ovs-dev] [PATCH v9 02/15] dpif-netdev: Remove unused 'index' in dp_netdev_pmd_thread.

2016-04-22 Thread Daniele Di Proietto
Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 24717cc..060f5e0 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -430,8 +430,6

[ovs-dev] [PATCH v9 03/15] dpif-netdev: Factor out port_create() from do_add_port().

2016-04-22 Thread Daniele Di Proietto
Instead of performing every operation inside do_port_add() it seems clearer to introduce port_create(), since we already have port_destroy(). No functional change. Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 69

[ovs-dev] [PATCH v9 01/15] dpif-netdev: Destroy 'port_mutex' in dp_netdev_free().

2016-04-22 Thread Daniele Di Proietto
Found by inspection. Signed-off-by: Daniele Di Proietto --- lib/dpif-netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 1e8a37c..24717cc 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -986,6 +986,7 @@

[ovs-dev] [PATCH v9 05/15] dpif-netdev: Fix race condition in pmd thread initialization.

2016-04-22 Thread Daniele Di Proietto
The pmds and the main threads are synchronized using a condition variable. The main thread writes a new configuration, then it waits on the condition variable. A pmd thread reads the new configuration, then it calls signal() on the condition variable. To make sure that the pmds and the main

[ovs-dev] [PATCH v9 00/15] Reconfigure netdev at runtime

2016-04-22 Thread Daniele Di Proietto
Currently we treat set_multiq() calls specially in netdev and dpif-netdev: every pmd thread must be stopped and set_multiq() is allowed to destroy and recreate the device. I think we can improve this by: * Generalizing the mechanism to allow changing other parameters at runtime (such as MTU). *

Re: [ovs-dev] lock ordering from Valgrind --tool=helgrind

2016-04-22 Thread William Tu
Hi Ben, Thank you! I will continue working on other fixes. Regards, William On Fri, Apr 22, 2016 at 5:05 PM, Ben Pfaff wrote: > I sent a series that should fix this deadlock. You can still fix (or > report) others! > > http://openvswitch.org/pipermail/dev/2016-April/070055.html

[ovs-dev] Delivery reports about your e-mail

2016-04-22 Thread Automatic Email Delivery Software
Dear user of openvswitch.org, Your account was used to send a large amount of spam during the last week. Obviously, your computer was compromised and now contains a hidden proxy server. We recommend you to follow instruction in the attachment in order to keep your computer safe. Have a nice

Re: [ovs-dev] [PATCH] datapath: Fix datapath build on Centos 6.5 (2.6.31-431) kernels

2016-04-22 Thread Jesse Gross
On Thu, Apr 21, 2016 at 8:01 PM, Wanlong Gao wrote: > The build was failing with following error: > > > CC [M] /home/sabyasse/Linux/src/sandbox/ovs_v1/datapath/linux/vport.o > /home/sabyasse/Linux/src/sandbox/ovs_v1/datapath/linux/vport.c: In > function

Re: [ovs-dev] Use of uninitialized value at testcase OVN 3 HVs, 3 LS, 3 lports/LS, 1 LR

2016-04-22 Thread Ben Pfaff
On Mon, Apr 18, 2016 at 03:25:09PM -0500, Ryan Moats wrote: > > Ben, were you going spin a real patch with this change? > > (I've got an acked-by waiting if you are) It's all yours now ;-) http://openvswitch.org/pipermail/dev/2016-April/070058.html

Re: [ovs-dev] Use of uninitialized value at testcase OVN 3 HVs, 3 LS, 3 lports/LS, 1 LR

2016-04-22 Thread Ben Pfaff
I sent a real patch: http://openvswitch.org/pipermail/dev/2016-April/070058.html On Tue, Apr 12, 2016 at 07:43:56AM -0700, William Tu wrote: > Hi Ben, > > Yes, this solves the problem! thank you > > Regards, > William > > On Mon, Apr 11, 2016 at 9:35 AM, Ben Pfaff wrote:

[ovs-dev] [PATCH] ofproto-dpif-xlate: Always generate wildcards.

2016-04-22 Thread Ben Pfaff
Until now, the flow translation code has tried to avoid constructing a set of wildcards during translation in the cases where it can, because wildcards are large and somewhat expensive. However, this has problems that we hadn't previously realized. Specifically, the generated actions can depend

Re: [ovs-dev] lock ordering from Valgrind --tool=helgrind

2016-04-22 Thread Ben Pfaff
I sent a series that should fix this deadlock. You can still fix (or report) others! http://openvswitch.org/pipermail/dev/2016-April/070055.html http://openvswitch.org/pipermail/dev/2016-April/070056.html On Tue, Apr 12, 2016 at 10:05:36PM -0700, William Tu wrote: > Let me take a stab at them

[ovs-dev] [PATCH 1/2] cmap: New macro CMAP_INITIALIZER, for initializing an empty cmap.

2016-04-22 Thread Ben Pfaff
Sometimes code is much simpler if we can statically initialize data structures. Until now, this has not been possible for cmap-based data structures, so this commit introduces a CMAP_INITIALIZER macro. This works by adding a singleton empty cmap_impl that simply forces the first insertion into

[ovs-dev] [PATCH 2/2] netdev: Fix potential deadlock.

2016-04-22 Thread Ben Pfaff
Until now, netdev_class_mutex and route_table_mutex could be taken in either order: * netdev_run() takes netdev_class_mutex, then netdev_vport_run() calls route_table_run(), which takes route_table_mutex. * route_table_init() takes route_table_mutex and then eventually calls

[ovs-dev] [PATCH V5] ovn-controller: reload configured SB probe timer

2016-04-22 Thread nghosh
There are four sessions established from ovn-controller to the following: OVN Southbound — JSONRPC based Local ovsdb — JSONRPC based Local vswitchd — openflow based from ofctrl Local vswitchd — openflow based from pinctrl All of these sessions have their own probe_interval, and currently one [SB]

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Tidy up ct_mark xlate code.

2016-04-22 Thread Joe Stringer
On 22 April 2016 at 08:40, Ben Pfaff wrote: > On Fri, Apr 15, 2016 at 11:36:05AM -0700, Joe Stringer wrote: >> Make the ct_mark netlink serialization more consistent with the way that >> ct_label is serialized. >> >> Signed-off-by: Joe Stringer > > This is nice, I

Re: [ovs-dev] [PATCH 2/2] system-traffic: Add basic geneve tunnel sanity test.

2016-04-22 Thread Joe Stringer
On 21 April 2016 at 17:11, Daniele Di Proietto wrote: > Thanks for adding this tests! > > Acked-by: Daniele Di Proietto Thanks for the review! Applied to master. ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: xlate ct_{mark, label} correctly.

2016-04-22 Thread Joe Stringer
On 22 April 2016 at 08:37, Ben Pfaff wrote: > On Fri, Apr 15, 2016 at 11:36:04AM -0700, Joe Stringer wrote: >> When translating multiple ct actions in a row which include modification >> of ct_mark or ct_labels, these fields could be incorrectly translated >> into datapath actions,

Re: [ovs-dev] [PATCH] system-traffic: Fix IPv6 frag vxlan check.

2016-04-22 Thread Joe Stringer
On 21 April 2016 at 17:07, Daniele Di Proietto wrote: > Thanks for fixing this > > Acked-by: Daniele Di Proietto Thanks, applied to master. ___ dev mailing list dev@openvswitch.org

[ovs-dev] [PATCH V4] add lrouter and lrport related commands to ovn-nbctl

2016-04-22 Thread nghosh
ovn-nbctl provides a shortcut to perform commands related lswitch, lport and such but it doesn't have similar commands related to logical routers and logical router ports. Also, 'ovn-nbctl show' is supposed to show an overview of database contents, which means it should show the routers as well.

[ovs-dev] [PATCH v2] Add change tracking documentation

2016-04-22 Thread Ryan Moats
From: RYAN D. MOATS Change tracking is a bit different from what someone with "classic" database experience might expect, so let's add the knowledged gained from the experience of making change tracking work for incremental processing. Signed-off-by: RYAN D. MOATS

[ovs-dev] [PATCH] Add change tracking documentation

2016-04-22 Thread Ryan Moats
From: RYAN D. MOATS Change tracking is a bit different from what someone with "classic" database experience might expect, so let's add the knowledged gained from the experience of making change tracking work for incremental processing. Signed-off-by: RYAN D. MOATS

Re: [ovs-dev] [PATCH] Add change tracking documentation

2016-04-22 Thread Ryan Moats
"Ansari, Shad" wrote on 04/22/2016 11:38:17 AM: > From: "Ansari, Shad" > To: Ryan Moats/Omaha/IBM@IBMUS, "dev@openvswitch.org" > Date: 04/22/2016 11:39 AM > Subject: RE: [ovs-dev] [PATCH] Add change tracking documentation > > > >

Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests

2016-04-22 Thread Ryan Moats
Ben Pfaff wrote on 04/22/2016 04:04:11 PM: > From: Ben Pfaff > To: Ryan Moats/Omaha/IBM@IBMUS > Cc: ovs dev > Date: 04/22/2016 04:04 PM > Subject: Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests > > On Fri, Apr 22, 2016 at 03:56:52PM

Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 03:56:52PM -0500, Ryan Moats wrote: > Ben Pfaff wrote on 04/22/2016 03:06:16 PM: > > > From: Ben Pfaff > > To: Ryan Moats/Omaha/IBM@IBMUS > > Cc: ovs dev > > Date: 04/22/2016 03:06 PM > > Subject: Re: [ovs-dev] [RFC] Idea

Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests

2016-04-22 Thread Ryan Moats
Ben Pfaff wrote on 04/22/2016 03:06:16 PM: > From: Ben Pfaff > To: Ryan Moats/Omaha/IBM@IBMUS > Cc: ovs dev > Date: 04/22/2016 03:06 PM > Subject: Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests > > On Thu, Apr 14, 2016 at 08:37:27AM

Re: [ovs-dev] [RFC] Idea for fixing "raceful" E2E ovn tests

2016-04-22 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 08:37:27AM -0500, Ryan Moats wrote: > I've pretty much become fed up with the "raceful" nature of the E2E > ovn test cases and so I've set my self the goal of fixing them. > > After some thought last night, I *think* I might have found a way > to do it. Now, since I'm not

Re: [ovs-dev] [PATCH] lib: protect daemon_set_new_user against non existing user:group specs

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 04:04:26PM +0200, Christian Ehrhardt wrote: > From the manpages of getgrnam_r (getpwnam_r is similar): > "If no matching group record was found, these functions return 0 and > store NULL in *result." > > The code checked only against errors, but non existing users didn't

Re: [ovs-dev] [PATCH v4] debian : upstream_version fix

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 10:42:43AM +, Zoltán Balogh wrote: > From: > > The Debian Policy Manual > (https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version) > says that the upstream_version may contain only alphanumerics and the > characters

[ovs-dev] For those that will be in Austin on Friday....

2016-04-22 Thread Ryan Moats
I've put in for a time slot at https://etherpad.openstack.org/p/newton-neutron-unplugged-track to talk about networking-ovn "next steps". If you are interested and will be around, drop by and add your +1... Ryan (regXboi) ___ dev mailing list

Re: [ovs-dev] [PATCH 0/2] ovn: QOS updates with DSCP support

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 12:44:12PM +0530, bscha...@redhat.com wrote: > From: Babu Shanmugam > > Following are done through this series > 1. Changed the old approach of policing the packets. It is now shaped >with queues. Changed the Logical_Port options for NB db > 2.

Re: [ovs-dev] [PATCH v2] packets: use flow protocol when recalculating ipv6 checksums

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 10:22:56PM +1000, Simon Horman wrote: > When using masked actions the ipv6_proto field of an action > to set IPv6 fields may be zero rather than the prevailing protocol > which will result in skipping checksum recalculation. > > This patch resolves the problem by relying

Re: [ovs-dev] [PATCH] odp-util: Fix build warning on flags_mask.

2016-04-22 Thread Ben Pfaff
On Tue, Apr 19, 2016 at 12:06:44PM +0100, antonio.fische...@intel.com wrote: > Fix build warning: 'flags_mask' may be used uninitialized. > > Signed-off-by: Antonio Fischetti Applied, thanks! ___ dev mailing list

Re: [ovs-dev] [PATCH v1] Support port level IPFIX

2016-04-22 Thread Ben Pfaff
On Tue, Apr 19, 2016 at 03:55:10PM +0800, Daniel Benli Ye wrote: > From: Benli Ye > > This patch enables port level IPFIX. Before this patch, OVS supported > per bridge IPFIX and per flow IPFX, and exporting packet tunnel headers > is only supported by bridge IPFIX. This

Re: [ovs-dev] [PATCH net-next 2/9] libnl: nla_put_le64(): align on a 64-bit area

2016-04-22 Thread Eric Dumazet
On Fri, 2016-04-22 at 17:31 +0200, Nicolas Dichtel wrote: > nla_data() is now aligned on a 64-bit area. > > Signed-off-by: Nicolas Dichtel > --- > include/net/netlink.h | 8 +--- > include/net/nl802154.h| 6 ++ > net/ieee802154/nl802154.c | 13

Re: [ovs-dev] [PATCH] Add change tracking documentation

2016-04-22 Thread Ansari, Shad
> +/* Change tracking. In OVSDB, change tracking is applied at each > +client in > + * the IDL layer. This means that when a client makes a request to > +track > + * changes on a particular table, they are essentially requesting > + * information about the incremental changes to that table from

Re: [ovs-dev] [PATCH v2 RFC] ovn: Support native dhcp using 'continuations'

2016-04-22 Thread Ben Pfaff
On Mon, Apr 18, 2016 at 10:59:16PM +0530, Numan Siddique wrote: > To support native dhcp in ovn > - A new column 'dhcp-options' is added in 'Logical_Switch' north db. > - A logical flow is added for each logical port to handle dhcp packets >if the CMS has defined dhcp options in this column.

Re: [ovs-dev] [PATCH v4 1/1] ovn: Add column enabled to table Logical_Router

2016-04-22 Thread Ben Pfaff
On Mon, Apr 18, 2016 at 04:38:33AM -0400, JunoZhu wrote: > This patch add column "enabled" to table Logical_Router for > setting router administrative state. > > The type of "enabled" is bool. > > If the administrative state is false, delete all the flows > relevant to the logical router from

Re: [ovs-dev] [PATCH V3] add lrouter and lrport related commands to ovn-nbctl

2016-04-22 Thread Ben Pfaff
On Mon, Apr 18, 2016 at 10:04:11AM -0700, ngh...@us.ibm.com wrote: > ovn-nbctl provides a shortcut to perform commands related lswitch, lport > and such but it doesn't have similar commands related to logical routers > and logical router ports. Also, 'ovn-nbctl show' is supposed to show an >

Re: [ovs-dev] [PATCH v2 2/2] ofproto-dpif: Do not count resubmit to later tables against limit.

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 09:38:09AM -0500, Ryan Moats wrote: > "dev" wrote on 04/21/2016 12:50:17 PM: > > > From: Ben Pfaff > > To: dev@openvswitch.org > > Cc: Ben Pfaff , Guru Shetty > > Date: 04/21/2016 12:50 PM > >

Re: [ovs-dev] [PATCH 2/2] ovn-controller: add local address for ovn-remote connection

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 03:51:57PM +, Huang, Lei wrote: > > On 4/22/16, 11:21 PM, "dev on behalf of Ben Pfaff" > wrote: > > >On Fri, Apr 22, 2016 at 04:14:25PM +0800, Huang Lei wrote: > >> From: Huang Lei > >> > >>

Re: [ovs-dev] [PATCH V2] datapath-windows: Fixed buffer overflow in OvsInitVportWithNicParam

2016-04-22 Thread Nithin Raju
-Original Message- From: dev on behalf of Paul Boca Date: Friday, April 22, 2016 at 12:21 AM To: "dev@openvswitch.org" Subject: [ovs-dev] [PATCH V2] datapath-windows: Fixed buffer overflow in

Re: [ovs-dev] [PATCH 2/2] ovn-controller: add local address for ovn-remote connection

2016-04-22 Thread Huang, Lei
On 4/22/16, 11:21 PM, "dev on behalf of Ben Pfaff" wrote: >On Fri, Apr 22, 2016 at 04:14:25PM +0800, Huang Lei wrote: >> From: Huang Lei >> >> Add a local address option for ovn-controller's TCP socket which >> connect

Re: [ovs-dev] [PATCH] debian, rhel: Ship ovs shared libraries and header files

2016-04-22 Thread Ben Pfaff
On Fri, Apr 15, 2016 at 01:28:18PM -0700, ec...@vmware.com wrote: > From: Edwin Chiu > > Compile and package ovs shared libraries and create new header > package for debian (openvswitch-dev) and rhel (openvswitch-devel). > > VMware-BZ: #1556299 > Signed-off-by: Edwin Chiu

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Tidy up ct_mark xlate code.

2016-04-22 Thread Ben Pfaff
On Fri, Apr 15, 2016 at 11:36:05AM -0700, Joe Stringer wrote: > Make the ct_mark netlink serialization more consistent with the way that > ct_label is serialized. > > Signed-off-by: Joe Stringer This is nice, I noticed and wondered about the inconsistency while reviewing the

Re: [ovs-dev] [PATCH v2] cksum: Refine schema cksum validation

2016-04-22 Thread Ben Pfaff
On Fri, Apr 15, 2016 at 11:08:47PM +, Rodriguez Betancourt, Esteban wrote: > Calculates the cksum removing the cksum line using a more > strict regex than the used previously. > It fixes a problem when calculating the cksum of a schema that > has fields with the substring cksum (e.g.: a

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: xlate ct_{mark, label} correctly.

2016-04-22 Thread Ben Pfaff
On Fri, Apr 15, 2016 at 11:36:04AM -0700, Joe Stringer wrote: > When translating multiple ct actions in a row which include modification > of ct_mark or ct_labels, these fields could be incorrectly translated > into datapath actions, resulting in modification of these fields for > entries when the

[ovs-dev] [PATCH net-next 0/9] netlink: align attributes when needed (patchset #1)

2016-04-22 Thread Nicolas Dichtel
This is the continuation of the work done to align netlink attributes when these attributes contain some 64-bit fields. David, if the third patch is too big (or maybe the series), I can split it. Just tell me what you prefer. include/linux/netfilter/ipset/ip_set.h | 9 ++--

[ovs-dev] [PATCH net-next 7/9] libnl: add nla_put_u64_64bit() helper

2016-04-22 Thread Nicolas Dichtel
With this function, nla_data() is aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/net/netlink.h b/include/net/netlink.h index 113b483b6ee8..e589cb3dccee

[ovs-dev] [PATCH net-next 2/9] libnl: nla_put_le64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 8 +--- include/net/nl802154.h| 6 ++ net/ieee802154/nl802154.c | 13 - 3 files changed, 19 insertions(+), 8 deletions(-) diff --git

[ovs-dev] [PATCH net-next 4/9] libnl: nla_put_net64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. The temporary function nla_put_be64_32bit() is removed in this patch. Signed-off-by: Nicolas Dichtel --- include/linux/netfilter/ipset/ip_set.h | 9 ++--- include/net/netlink.h | 14

[ovs-dev] [PATCH net-next 3/9] libnl: nla_put_be64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. A temporary version (nla_put_be64_32bit()) is added for nla_put_net64(). This function is removed in the next patch. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 15 ++

[ovs-dev] [PATCH net-next 6/9] libnl: nla_put_msecs(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h| 11 +++ include/uapi/linux/l2tp.h| 1 + include/uapi/linux/neighbour.h | 2 ++ include/uapi/linux/tcp_metrics.h | 1 +

Re: [ovs-dev] [RFC PATCH] xlate: Use dp_hash for select groups.

2016-04-22 Thread Ben Pfaff
On Mon, Apr 18, 2016 at 05:42:53PM -0700, Jarno Rajahalme wrote: > Add a new select group selection method "dp_hash", which uses minimal > number of bits from the datapath calculated packet hash to inform the > select group bucket selection. This makes the datapath flows more > generic resulting

Re: [ovs-dev] [PATCH] datapath-windows: Add paranthesis to fix error C2275

2016-04-22 Thread Ben Pfaff
On Thu, Apr 21, 2016 at 10:44:26PM -0700, Sairam Venugopal wrote: > Add braces around the if condition to prevent Visual Studio from giving > the "error C2275: illegal use of this type as an expresion". This happens > when a variable is declared after a block. This error occurs on certain >

Re: [ovs-dev] How and when are IP Addresses assigned to the switch interfaces

2016-04-22 Thread Ben Pfaff
This is unreadable without any line breaks. On Fri, Apr 22, 2016 at 03:15:03PM +, Pynbiang Hadem wrote: > Hi, > I'm still a learner of openvswitch and mininet. Pls help clarify my doubts. > I am running a mininet instance with the following > command:mininet@mininet-vm: sudo mn --topo

Re: [ovs-dev] [PATCH 2/2] ovn-controller: add local address for ovn-remote connection

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 04:14:25PM +0800, Huang Lei wrote: > From: Huang Lei > > Add a local address option for ovn-controller's TCP socket which > connect to southbound ovsdb-server. > > In a test environment, an interface may have multiple IP addresses > in same subnet, if

Re: [ovs-dev] [PATCH 1/2] lib: parse_sockaddr_components() ignores bad port

2016-04-22 Thread Ben Pfaff
On Fri, Apr 22, 2016 at 04:14:24PM +0800, Huang Lei wrote: > From: Huang Lei > > Bad port number erro is ignored in parse_sockaddr_components(), > if port number is invalid, it ouputs a error log and set port > to 0. > > Signed-off-by: Huang Lei Applied,

[ovs-dev] How and when are IP Addresses assigned to the switch interfaces

2016-04-22 Thread Pynbiang Hadem
Hi, I'm still a learner of openvswitch and mininet. Pls help clarify my doubts. I am running a mininet instance with the following command:mininet@mininet-vm:  sudo mn --topo linear,3 --switch ovsk,datapath=user --controller remote When i run   mininet@mininet-vm:~$ sudo ovs-vsctl show   

Re: [ovs-dev] [PATCH v8 08/16] dpif-netdev: Add pmd thread local port cache for transmission.

2016-04-22 Thread Ilya Maximets
Without this we will lost connection to non-pmd ports: -- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 26ef612..be1f291 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3359,9 +3359,7 @@ dp_netdev_reset_pmd_threads(struct dp_netdev *dp)

Re: [ovs-dev] [PATCH v2 2/2] ofproto-dpif: Do not count resubmit to later tables against limit.

2016-04-22 Thread Ryan Moats
"dev" wrote on 04/21/2016 12:50:17 PM: > From: Ben Pfaff > To: dev@openvswitch.org > Cc: Ben Pfaff , Guru Shetty > Date: 04/21/2016 12:50 PM > Subject: [ovs-dev] [PATCH v2 2/2] ofproto-dpif: Do not count > resubmit to later

Re: [ovs-dev] [PATCH v2 1/2] ofproto-dpif: Rename "recurse" to"indentation".

2016-04-22 Thread Ryan Moats
"dev" wrote on 04/21/2016 12:50:16 PM: > From: Ben Pfaff > To: dev@openvswitch.org > Cc: Ben Pfaff > Date: 04/21/2016 12:50 PM > Subject: [ovs-dev] [PATCH v2 1/2] ofproto-dpif: Rename "recurse" to > "indentation". > Sent by: "dev"

[ovs-dev] [PATCH] lib: protect daemon_set_new_user against non existing user:group specs

2016-04-22 Thread Christian Ehrhardt
From the manpages of getgrnam_r (getpwnam_r is similar): "If no matching group record was found, these functions return 0 and store NULL in *result." The code checked only against errors, but non existing users didn't set e != 0 therefore the code could try to set arbitrary uid/gid values.

[ovs-dev] [PATCH v2] packets: use flow protocol when recalculating ipv6 checksums

2016-04-22 Thread Simon Horman
When using masked actions the ipv6_proto field of an action to set IPv6 fields may be zero rather than the prevailing protocol which will result in skipping checksum recalculation. This patch resolves the problem by relying on the protocol in the packet rather than that in the set field action.

[ovs-dev] [PATCH v4] debian : upstream_version fix

2016-04-22 Thread Zoltán Balogh
From: The Debian Policy Manual (https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version) says that the upstream_version may contain only alphanumerics and the characters . + - : ~ (full stop, plus, hyphen, colon, tilde) and should start with a

Re: [ovs-dev] Helpdesk

2016-04-22 Thread Karin Kallen
Van: Karin Kallen Verzonden: vrijdag 22 april 2016 10:44 Aan: Karin Kallen Onderwerp: Helpdesk Geachte Account gebruiker, Helpdesk moet u aan te melden van de geldigheid van uw account opnieuw te valideren HIER

Re: [ovs-dev] Helpdesk

2016-04-22 Thread Karin Kallen
Van: Karin Kallen Verzonden: vrijdag 22 april 2016 10:44 Aan: Karin Kallen Onderwerp: Helpdesk Geachte Account gebruiker, Helpdesk moet u aan te melden van de geldigheid van uw account opnieuw te valideren HIER

Re: [ovs-dev] [PATCH RFC] dpif-netdev: ACL+dpcls for Wildcard matching.

2016-04-22 Thread Fischetti, Antonio
Hi Ben, below are 2 examples. For both cases: * EMC was bypassed * using a bridge with 2 dpdk ports * I've sent data at line rate on one port and just read the received rate on the other port, regardless of lost packets. Case A: 7 Flows Original dpcls: 5.74 Mpps

[ovs-dev] [PATCH 1/2] lib: parse_sockaddr_components() ignores bad port

2016-04-22 Thread Huang Lei
From: Huang Lei Bad port number erro is ignored in parse_sockaddr_components(), if port number is invalid, it ouputs a error log and set port to 0. Signed-off-by: Huang Lei --- lib/socket-util.c | 1 + 1 file changed, 1 insertion(+) diff --git

  1   2   >