Re: [ovs-dev] [PATCH] windows pseudorandom number generator

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 05:13:59PM +, Alin Serdean wrote: > I can put in the ernno for the error but the problem is CryptGenRandom > does not set the error number. OK. > So it is either just print the value of GetLastError() or I use > FormatMessage function to get the text from that value. L

Re: [ovs-dev] [PATCH 06/12] dpif: Meter framework.

2013-12-16 Thread Jarno Rajahalme
On Dec 16, 2013, at 10:38 PM, Ben Pfaff wrote: > At that point I'll probably find myself looking up my concerns from this > thread, though, to see it any of them have been resolved, since there > was never any discussion. I’ll get to your points before reposting. Jarno _

Re: [ovs-dev] [PATCH 06/12] dpif: Meter framework.

2013-12-16 Thread Jarno Rajahalme
On Dec 16, 2013, at 10:36 PM, Jarno Rajahalme wrote: > Ben, > > I have this series on a branch after these: > > http://patchwork.openvswitch.org/patch/2157/ > http://patchwork.openvswitch.org/patch/2158/ > > Applying the first needs some manual work due to a typo fix in a comment I > made on

Re: [ovs-dev] [PATCH 06/12] dpif: Meter framework.

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 10:36:00PM -0800, Jarno Rajahalme wrote: > Ben, > > I have this series on a branch after these: > > http://patchwork.openvswitch.org/patch/2157/ > http://patchwork.openvswitch.org/patch/2158/ > > Applying the first needs some manual work due to a typo fix in a comment I

Re: [ovs-dev] [PATCH 3/3] Allow util.h in libopenvswitch to be used by another library

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 10:26:15PM -0800, Harold Lim wrote: > ... that has already defined the NOT_REACHED macro > > Add an #ifndef guard around NOT_REACHED macro. How do we know that they are compatible? I don't think that this is a good idea. I'd be happy to rename NOT_REACHED to OVS_NOT_REAC

Re: [ovs-dev] [PATCH 1/3] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 10:26:13PM -0800, Harold Lim wrote: > The input variable of ovs_scan is changed from 'template' to > 'format'. template is a keyword in C++. Can you rebase against current master (there's a small change in util.h that throws off the patch), and add a Signed-off-by-line? Th

Re: [ovs-dev] [PATCH 06/12] dpif: Meter framework.

2013-12-16 Thread Jarno Rajahalme
Ben, I have this series on a branch after these: http://patchwork.openvswitch.org/patch/2157/ http://patchwork.openvswitch.org/patch/2158/ Applying the first needs some manual work due to a typo fix in a comment I made on the 1/3 of this series you acked earlier. After these two are in, I’ll s

Re: [ovs-dev] [PATCH 2/3] Allow libopenvswitch to be added into a dynamic library

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 10:26:14PM -0800, Harold Lim wrote: > libopenvswitch.a is compiled with a -fPIC flag. Why? ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 3/3] dpif: Use explicit packet metadata.

2013-12-16 Thread Ben Pfaff
On Fri, Nov 15, 2013 at 03:12:20PM -0800, Jarno Rajahalme wrote: > This helps reduce confusion about when a flow is a flow and when it is > just metadata. > > Signed-off-by: Jarno Rajahalme I looked at my review comments and your responses, and they seem reasonable. I didn't look at this patch,

[ovs-dev] [PATCH 3/3] Allow util.h in libopenvswitch to be used by another library

2013-12-16 Thread Harold Lim
... that has already defined the NOT_REACHED macro Add an #ifndef guard around NOT_REACHED macro. --- lib/util.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util.h b/lib/util.h index 462247b..1680cd6 100644 --- a/lib/util.h +++ b/lib/util.h @@ -150,7 +150,9 @@ is_pow2(uintmax_t x

[ovs-dev] [PATCH 1/3] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Harold Lim
The input variable of ovs_scan is changed from 'template' to 'format'. template is a keyword in C++. --- lib/util.c |8 lib/util.h |2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/util.c b/lib/util.c index 13d41a7..e12a488 100644 --- a/lib/util.c +++ b/lib

[ovs-dev] [PATCH 2/3] Allow libopenvswitch to be added into a dynamic library

2013-12-16 Thread Harold Lim
libopenvswitch.a is compiled with a -fPIC flag. --- lib/automake.mk |4 1 file changed, 4 insertions(+) diff --git a/lib/automake.mk b/lib/automake.mk index fadc4be..c25b4dc 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -231,6 +231,10 @@ lib_libopenvswitch_a_SOURCES = \ l

Re: [ovs-dev] [PATCH 2/3] odp-execute: Consolidate callbacks.

2013-12-16 Thread Ben Pfaff
On Fri, Nov 15, 2013 at 03:12:19PM -0800, Jarno Rajahalme wrote: > Use one callback instead of many, helps in adding new functionality > later on. > > Signed-off-by: Jarno Rajahalme I see in the last round of reviews I only asked for an extra comment. I see that you added one, so: Acked-by: Be

Re: [ovs-dev] [PATCH] rconn: Update comments on is_admitted_msg().

2013-12-16 Thread Ben Pfaff
Thanks! Applied. On Mon, Dec 16, 2013 at 09:39:05AM -0800, Alex Wang wrote: > Looks good to me, > > > On Mon, Dec 16, 2013 at 9:24 AM, Ben Pfaff wrote: > > > This could use a review (should be easy). > > > > On Thu, Nov 21, 2013 at 03:03:43PM -0800, Ben Pfaff wrote: > > > Signed-off-by: Ben P

Re: [ovs-dev] [PATCH] FAQ: Describe weak and strong ES models.

2013-12-16 Thread Ben Pfaff
Thanks! Applied. On Mon, Dec 16, 2013 at 09:37:15AM -0800, Andy Zhou wrote: > Looks good. > Acked-by: Andy Zhou > > > On Mon, Dec 16, 2013 at 9:28 AM, Ben Pfaff wrote: > > > This needs a review. > > > > On Mon, Nov 25, 2013 at 11:34:44AM -0800, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff

Re: [ovs-dev] [PATCH] vtep: add "Arp_sources" tables

2013-12-16 Thread Ben Pfaff
On Mon, Nov 25, 2013 at 08:19:50AM -0800, Bruce Davie wrote: > Add two new tables to the VTEP schema in support of distributed L3. > Each table contains MAC addresses to be used by VTEPs (both hardware > and software) when issuing ARP requests on behalf of a logical router. > > Signed-off-by: Bruc

Re: [ovs-dev] [threaded reval 2/2] ofproto: Handle flow installation and eviction in upcall.

2013-12-16 Thread Ben Pfaff
On Sun, Dec 15, 2013 at 05:57:57PM -0800, Ethan Jackson wrote: > This patch moves flow installation and eviction from ofproto-dpif and > the main thread, into ofproto-dpif-upcall. This performs > significantly better (approximately 2x TCP_CRR improvement), and > allows ovs-vswitchd to maintain sig

Re: [ovs-dev] [PATCH] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Ben Pfaff
I think that this should be three patches, since it does three things that don't seem related to me. On Mon, Dec 16, 2013 at 06:57:40PM -0800, Harold Lim wrote: > 1. libopenvswitch is updated to be compiled with -fPIC. Why? C++ doesn't require -fPIC as far as I know. > 2. The input variable of

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Gurucharan Shetty
On Mon, Dec 16, 2013 at 6:02 PM, Alin Serdean wrote: > I added also syslog.h as you suggested(this will help us in the future > patches). > > Regarding the warnings I will send a detailed list iwth their corespondence > in another mail and we can discuss further if we want to add them or not. >

[ovs-dev] [PATCH] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Harold Lim
1. libopenvswitch is updated to be compiled with -fPIC. 2. The input variable of ovs_scan is changed from 'template' to 'format'. template is a keyword in C++. 3. Add an #ifndef guard around NOT_REACHED. --- lib/automake.mk |4 lib/util.c |8 lib/util.h |4 ++

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Alin Serdean
I added also syslog.h as you suggested(this will help us in the future patches). Regarding the warnings I will send a detailed list iwth their corespondence in another mail and we can discuss further if we want to add them or not. I hope everything is in order now :). Signed-off-by: Alin Serdea

Re: [ovs-dev] [PATCH] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Romain Lenglet
- Original Message - > From: "Harold Lim" > To: dev@openvswitch.org > Cc: "Harold Lim" > Sent: Monday, December 16, 2013 4:53:34 PM > Subject: [ovs-dev] [PATCH] Update openvswitch to allow linking from C++ > projects > > 1. libopenvswitch is updated to be compiled with -fPIC. > 2.

Re: [ovs-dev] [PATCH v2] linux: Signal datapath that unaligned Netlink message can be received

2013-12-16 Thread Jesse Gross
On Sat, Nov 30, 2013 at 4:25 AM, Thomas Graf wrote: > diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c > index 6c482d0..2d8a1aa 100644 > --- a/lib/dpif-linux.c > +++ b/lib/dpif-linux.c > @@ -73,6 +73,7 @@ struct dpif_linux_dp { > /* Attributes. */ > const char *name; /*

Re: [ovs-dev] [PATCH net-next 0/6 v9] Open vSwitch zercopy upcall optimiziation

2013-12-16 Thread Jesse Gross
On Fri, Dec 13, 2013 at 6:22 AM, Thomas Graf wrote: > Series implementing a zerocopy method for OVS upcall messages. Based > on top of commit: (''openvswitch: Enable memory mapped Netlink i/o'') Series applied, thanks. ___ dev mailing list dev@openvswit

[ovs-dev] [PATCH] Update openvswitch to allow linking from C++ projects

2013-12-16 Thread Harold Lim
1. libopenvswitch is updated to be compiled with -fPIC. 2. The input variable of ovs_scan is changed from 'template' to 'format'. template is a keyword in C++. 3. Add an #ifndef guard around NOT_REACHED. --- lib/automake.mk |2 ++ lib/util.c |8 lib/util.h |4 +++-

Re: [ovs-dev] [PATCH] [RFC] Alternate approach to MPLS.

2013-12-16 Thread Simon Horman
On Mon, Dec 16, 2013 at 09:01:37AM -0800, Ben Pfaff wrote: > On Mon, Dec 16, 2013 at 06:42:23PM +0900, Simon Horman wrote: > > On Mon, Dec 16, 2013 at 02:55:39PM +0900, Simon Horman wrote: > > > Hi Ben, > > > > > > On Fri, Dec 13, 2013 at 12:28:21AM -0800, Ben Pfaff wrote: > > > > I've been a litt

Re: [ovs-dev] [PATCH] [RFC] Alternate approach to MPLS.

2013-12-16 Thread Simon Horman
On Mon, Dec 16, 2013 at 08:56:30AM -0800, Ben Pfaff wrote: > On Mon, Dec 16, 2013 at 02:55:39PM +0900, Simon Horman wrote: > > On Fri, Dec 13, 2013 at 12:28:21AM -0800, Ben Pfaff wrote: > > > I've been a little frustrated with the current approach to MPLS, because > > > it > > > seems quite diffic

Re: [ovs-dev] [PATCH] ofproto/trace: Fix memory leak on error path.

2013-12-16 Thread Jarno Rajahalme
Augmented as suggested and pushed to master, thanks for the review! Jarno On Dec 16, 2013, at 9:47 AM, Ben Pfaff wrote: > On Tue, Dec 03, 2013 at 03:04:31PM -0800, Jarno Rajahalme wrote: >> Propagate error response from parse_ofp_exact_flow() to the caller and >> properly free() it afterward.

Re: [ovs-dev] [PATCH] datapath: Add packet metadata support.

2013-12-16 Thread Jesse Gross
On Fri, Dec 13, 2013 at 10:25 AM, Pravin B Shelar wrote: > In case of flow-miss kernel sends skb to userspace and then > userspace sends execute netlink msg to switch the packet. But > in this process skb rxhash is not restored. skb rxhash is used > for calculating tunnel source port for vxlan. I

[ovs-dev] Bug#732260: Bug#732260: openvswitch: datapath kernel module fails to compile with linux kernel version 3.11

2013-12-16 Thread Jesse Gross
On Sun, Dec 15, 2013 at 8:25 PM, Aleksi Suhonen wrote: > Package: openvswitch > Version: 1.9.3+git20131029-1.1 > Severity: important > > Dear Maintainer, > > I was upgrading our test server to the newest kernel shipping with > Debian/unstable, > namely "3.11-2", and DKMS failed on openvswitch-da

Re: [ovs-dev] [threaded reval 1/2] unixctl: Make dpif/dump-flows fetch kernel flows.

2013-12-16 Thread Ben Pfaff
On Sun, Dec 15, 2013 at 05:57:56PM -0800, Ethan Jackson wrote: > From: Joe Stringer > > Previously we used facets for ovs-appctl dpif/dump-flows commands. > This switches to fetching flows directly from the dpif. This is > necessary because future patches remove facets and subfacet entirely. >

[ovs-dev] [PATCH] datapath: Check for backported netdev_features_t.

2013-12-16 Thread Jesse Gross
This is apparently used by CentOS 6.5. Reported-by: Phil Daws Signed-off-by: Jesse Gross --- acinclude.m4| 2 ++ datapath/linux/compat/include/linux/netdevice.h | 13 +++-- datapath/linux/compat/netdevice.c | 13 - 3 files c

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Gurucharan Shetty
On Mon, Dec 16, 2013 at 11:39 AM, Eitan Eliahu wrote: > > Could we use #pragma warning(push) and pop to reduce the scope of the warning > suppression. Yeah. That is probably something we can use in cases where we cannot fix the warnings nicely. > Thanks, > Eitan > > - Original Message -

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Eitan Eliahu
Could we use #pragma warning(push) and pop to reduce the scope of the warning suppression. Thanks, Eitan - Original Message - From: "Gurucharan Shetty" To: "Alin Serdean" Cc: dev@openvswitch.org Sent: Monday, December 16, 2013 11:18:28 AM Subject: Re: [ovs-dev] [PATCH] V2 windefs: comm

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Gurucharan Shetty
On Mon, Dec 16, 2013 at 10:18 AM, Alin Serdean wrote: >>> +//Disable warnings and runtime checks >>> +#pragma warning( disable : 4116 4090 4700 4005 4133 4028 4098 4293 4715 >>> 4047) >>> +#pragma runtime_checks( "", off ) >>> +#pragma warning( disable : 4996 ) //deprecated functions >>> +#pragma

Re: [ovs-dev] [PATCH -next] openvswitch: remove duplicated include from flow_table.c

2013-12-16 Thread Jesse Gross
On Sun, Dec 15, 2013 at 10:06 PM, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. > > Signed-off-by: Wei Yongjun Applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] connmgr: Fix attempt to take mutex recursively when exiting fail-open.

2013-12-16 Thread Ben Pfaff
Thanks, applied. On Mon, Dec 16, 2013 at 11:56:48AM -0600, Ethan Jackson wrote: > Acked-by: Ethan Jackson > > > On Mon, Dec 16, 2013 at 11:31 AM, Ben Pfaff wrote: > > Ethan, will you review this? It fixes a crash. > > > > On Mon, Nov 25, 2013 at 02:14:33PM -0800, Ben Pfaff wrote: > >> If one

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Alin Serdean
>> +//Disable warnings and runtime checks >> +#pragma warning( disable : 4116 4090 4700 4005 4133 4028 4098 4293 4715 >> 4047) >> +#pragma runtime_checks( "", off ) >> +#pragma warning( disable : 4996 ) //deprecated functions >> +#pragma warning( disable : 4244 ) //possible loss of data >> +#pragm

Re: [ovs-dev] [PATCHv2] cfm: Add test for fault_override

2013-12-16 Thread Alex Wang
Looks good to me, thx, On Mon, Dec 16, 2013 at 10:08 AM, Joe Stringer wrote: > This patch adds tests for the cfm fault_override feature which can be > set through "ovs-appctl cfm/set-fault ". It brings up two > ports with CFM, sets a fault, then checks that the fault status has > propagated cor

[ovs-dev] [PATCHv2] cfm: Add test for fault_override

2013-12-16 Thread Joe Stringer
This patch adds tests for the cfm fault_override feature which can be set through "ovs-appctl cfm/set-fault ". It brings up two ports with CFM, sets a fault, then checks that the fault status has propagated correctly to the CFM module and the database. Finally, it sets the fault override behaviour

Re: [ovs-dev] [PATCH] cfm: Add test for fault_override

2013-12-16 Thread Joe Stringer
OK, thanks for the review. I'll send a new version. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] connmgr: Fix attempt to take mutex recursively when exiting fail-open.

2013-12-16 Thread Ethan Jackson
Acked-by: Ethan Jackson On Mon, Dec 16, 2013 at 11:31 AM, Ben Pfaff wrote: > Ethan, will you review this? It fixes a crash. > > On Mon, Nov 25, 2013 at 02:14:33PM -0800, Ben Pfaff wrote: >> If one configured a controller which does not exist, waited for the switch >> to enter fail-open mode, a

Re: [ovs-dev] [PATCH] ofproto/trace: Fix memory leak on error path.

2013-12-16 Thread Ben Pfaff
On Tue, Dec 03, 2013 at 03:04:31PM -0800, Jarno Rajahalme wrote: > Propagate error response from parse_ofp_exact_flow() to the caller and > properly free() it afterward. > > Signed-off-by: Jarno Rajahalme I have a habit of marking functions that return a string that must be freed as WARN_UNUSED_

Re: [ovs-dev] [PATCH] rconn: Update comments on is_admitted_msg().

2013-12-16 Thread Alex Wang
Looks good to me, On Mon, Dec 16, 2013 at 9:24 AM, Ben Pfaff wrote: > This could use a review (should be easy). > > On Thu, Nov 21, 2013 at 03:03:43PM -0800, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > --- > > lib/rconn.c | 12 +++- > > 1 file changed, 11 insertions(+), 1 dele

Re: [ovs-dev] [PATCH] FAQ: Describe weak and strong ES models.

2013-12-16 Thread Andy Zhou
Looks good. Acked-by: Andy Zhou On Mon, Dec 16, 2013 at 9:28 AM, Ben Pfaff wrote: > This needs a review. > > On Mon, Nov 25, 2013 at 11:34:44AM -0800, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > --- > > FAQ | 44 > > 1 file changed, 44 ins

[ovs-dev] [PATCH V2 3/3] bfd: Make bfd decay test robust.

2013-12-16 Thread Alex Wang
With ovs multithreading implementation, the bfd decay test becomes fragile due to its high dependency on timing sequence. This commit removes these dependencies and makes the test robust. Signed-off-by: Alex Wang --- v1 -> v2: - rebase master. --- tests/bfd.at | 143 +-

Re: [ovs-dev] [PATCH 1/2] connmgr: Fix attempt to take mutex recursively when exiting fail-open.

2013-12-16 Thread Ben Pfaff
Ethan, will you review this? It fixes a crash. On Mon, Nov 25, 2013 at 02:14:33PM -0800, Ben Pfaff wrote: > If one configured a controller which does not exist, waited for the switch > to enter fail-open mode, and then deleted the controller, then > ofproto_set_controllers() would take ofproto_mu

Re: [ovs-dev] [PATCH] vtep: add "Arp_sources" tables

2013-12-16 Thread Bruce Davie
On Dec 16, 2013, at 9:28 AM, Ben Pfaff wrote: > On Mon, Nov 25, 2013 at 08:19:50AM -0800, Bruce Davie wrote: >> Add two new tables to the VTEP schema in support of distributed L3. >> Each table contains MAC addresses to be used by VTEPs (both hardware >> and software) when issuing ARP requests

Re: [ovs-dev] [PATCH] FAQ: Explain how to add QoS features to Open vSwitch.

2013-12-16 Thread Gurucharan Shetty
On Mon, Dec 16, 2013 at 9:25 AM, Ben Pfaff wrote: > This needs a review. > > On Thu, Nov 21, 2013 at 05:03:13PM -0800, Ben Pfaff wrote: >> Signed-off-by: Ben Pfaff Looks good. >> --- >> FAQ | 13 + >> 1 file changed, 13 insertions(+) >> >> diff --git a/FAQ b/FAQ >> index 2912ae3..a

[ovs-dev] [PATCH 3/3] bfd: Make bfd decay test robust.

2013-12-16 Thread Alex Wang
With ovs multithreading implementation, the bfd decay test becomes fragile due to its high dependency on timing sequence. This commit removes these dependencies and makes the test robust. Signed-off-by: Alex Wang --- v1 -> v2: - rebase master. --- tests/bfd.at | 143 +-

[ovs-dev] [PATCH V2 1/3] ofproto-dpif-monitor: Acquire write lock in monitor_run().

2013-12-16 Thread Alex Wang
Commit 307464a1 (ofproto-dpif-monitor: Use heap to order the mport wakeup time.) re-heapifies the heap in monitor_run(). So monitor_run() should be protected by the write lock, rather than the read lock. This commit fixes the issue. Signed-off-by: Alex Wang --- v1 -> v2: - rebase master. ---

Re: [ovs-dev] [PATCH] FAQ: Describe weak and strong ES models.

2013-12-16 Thread Ben Pfaff
This needs a review. On Mon, Nov 25, 2013 at 11:34:44AM -0800, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > FAQ | 44 > 1 file changed, 44 insertions(+) > > diff --git a/FAQ b/FAQ > index 2912ae3..df7b6ef 100644 > --- a/FAQ > +++ b/FAQ > @@

[ovs-dev] [PATCH V2 2/3] bfd: Send FINAL immediately after receiving POLL.

2013-12-16 Thread Alex Wang
Commit 307464a11 (ofproto-dpif-monitor: Use heap to order the mport wakeup time.) makes bfd only send packet at specified periodic instant. This fails to meet the RFC5880 requirement, which requires bfd send FINAL immediately after receiving POLL. This commit fixes the above issue by scheduling bf

Re: [ovs-dev] [PATCH] vtep: add "Arp_sources" tables

2013-12-16 Thread Ben Pfaff
On Mon, Nov 25, 2013 at 08:19:50AM -0800, Bruce Davie wrote: > Add two new tables to the VTEP schema in support of distributed L3. > Each table contains MAC addresses to be used by VTEPs (both hardware > and software) when issuing ARP requests on behalf of a logical router. > > Signed-off-by: Bruc

Re: [ovs-dev] [PATCH] FAQ: Explain how to add QoS features to Open vSwitch.

2013-12-16 Thread Ben Pfaff
This needs a review. On Thu, Nov 21, 2013 at 05:03:13PM -0800, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > FAQ | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/FAQ b/FAQ > index 2912ae3..a57362e 100644 > --- a/FAQ > +++ b/FAQ > @@ -723,6 +723,19 @@ A: Did you in

Re: [ovs-dev] [PATCH] rconn: Update comments on is_admitted_msg().

2013-12-16 Thread Ben Pfaff
This could use a review (should be easy). On Thu, Nov 21, 2013 at 03:03:43PM -0800, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/rconn.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/lib/rconn.c b/lib/rconn.c > index f7f90f7..6c96fe0 100644 >

Re: [ovs-dev] [PATCH] bridge: Remove superfluous "inline" from ofp12_controller_role_to_str().

2013-12-16 Thread Ben Pfaff
Yes. We're starting to accumulate a lot of those. I'm planning to work on a unified solution. On Fri, Dec 06, 2013 at 05:09:15PM -0800, Ethan Jackson wrote: > Could we add a grep for this to the make? > > Ethan > > On Fri, Dec 6, 2013 at 3:57 PM, Joe Stringer wrote: > > Acked-by: Joe Stringer

Re: [ovs-dev] [PATCH] bridge: Remove superfluous "inline" from ofp12_controller_role_to_str().

2013-12-16 Thread Ben Pfaff
Thanks, applied. On Fri, Dec 06, 2013 at 03:57:06PM -0800, Joe Stringer wrote: > Acked-by: Joe Stringer > > On 20 November 2013 16:50, Ben Pfaff wrote: > > Putting "static inline" on a function definition in a .c file does not help > > the compiler and does suppress warnings for unused function

Re: [ovs-dev] [PATCH] windows pseudorandom number generator

2013-12-16 Thread Alin Serdean
Sorry about that. I can put in the ernno for the error but the problem is CryptGenRandom does not set the error number. So it is either just print the value of GetLastError() or I use FormatMessage function to get the text from that value. Like the following: lib/entropy.c | 28

Re: [ovs-dev] [PATCH 06/12] dpif: Meter framework.

2013-12-16 Thread Ben Pfaff
On Mon, Nov 11, 2013 at 09:03:03PM -0800, Ben Pfaff wrote: > On Tue, Nov 12, 2013 at 09:19:59AM +0800, Jesse Gross wrote: > > On Tue, Nov 12, 2013 at 7:53 AM, Ben Pfaff wrote: > > > On Fri, Nov 08, 2013 at 10:54:38AM -0800, Jarno Rajahalme wrote: > > >> Add DPIF-level support for meters. Allow met

Re: [ovs-dev] [PATCH 1/3] dpif: Allow execute to modify the packet.

2013-12-16 Thread Jarno Rajahalme
Pushed, thanks! I corrected a typo in a comment (“alloed” -> “allowed”), which breaks the next patch in the series. The resolution is trivial, so I’d rather not send out a new version if not needed otherwise. Jarno On Dec 13, 2013, at 3:59 PM, Ben Pfaff wrote: > On Fri, Nov 15, 2013 at 03:

Re: [ovs-dev] [PATCHv2 1/2] bridge: Let ofprotos run once before reporting configuration complete.

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 12:02:00AM +0400, Vasiliy Tolstov wrote: > 2013/12/14 Ben Pfaff : > > Occasionally in the unit tests the following race can happen: > > > >1. ovs-vsctl updates database > >2. ovs-vswitchd reconfigures, notifies ovs-vsctl that it is complete > >3. ovs-appctl ofpro

Re: [ovs-dev] [PATCH] [RFC] Alternate approach to MPLS.

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 06:42:23PM +0900, Simon Horman wrote: > On Mon, Dec 16, 2013 at 02:55:39PM +0900, Simon Horman wrote: > > Hi Ben, > > > > On Fri, Dec 13, 2013 at 12:28:21AM -0800, Ben Pfaff wrote: > > > I've been a little frustrated with the current approach to MPLS, because > > > it > >

Re: [ovs-dev] [PATCH] [RFC] Alternate approach to MPLS.

2013-12-16 Thread Ben Pfaff
On Mon, Dec 16, 2013 at 02:55:39PM +0900, Simon Horman wrote: > On Fri, Dec 13, 2013 at 12:28:21AM -0800, Ben Pfaff wrote: > > I've been a little frustrated with the current approach to MPLS, because it > > seems quite difficult to understand. One particularly difficult bit for > > me is the varia

Re: [ovs-dev] [PATCH] V2 windefs: common include for MSVC

2013-12-16 Thread Gurucharan Shetty
On Fri, Dec 13, 2013 at 5:13 PM, Alin Serdean wrote: > This is an addition to the following patch: > http://openvswitch.org/pipermail/dev/2013-November/034001.html . > Beside the windefs.h creation more typedefs, defines and pragmas we're added. > > Signed-off-by: Alin Serdean > --- > --- > diff

Re: [ovs-dev] [PATCH] fedora-build: Remove %{build_number} from the configure line

2013-12-16 Thread Kyle Mestery (kmestery)
On Dec 14, 2013, at 11:27 AM, Gurucharan Shetty wrote: > On Fri, Dec 13, 2013 at 6:53 PM, Kyle Mestery wrote: >> Fixes the OVS builds on Fedora, which are currently broken upstream. >> >> Signed-off-by: Kyle Mestery > Thanks for fixing. > I applied this to master. > Thanks for the review and

Re: [ovs-dev] [PATCH] [RFC] Alternate approach to MPLS.

2013-12-16 Thread Simon Horman
On Mon, Dec 16, 2013 at 02:55:39PM +0900, Simon Horman wrote: > Hi Ben, > > On Fri, Dec 13, 2013 at 12:28:21AM -0800, Ben Pfaff wrote: > > I've been a little frustrated with the current approach to MPLS, because it > > seems quite difficult to understand. One particularly difficult bit for > > me

[ovs-dev] [PATCH v3 1/2] netdev_class: Pass a struct ofpbuf * to rx_recv()

2013-12-16 Thread Simon Horman
Update the netdev_class so that struct ofpbuf * is passed to rx_recv() to provide both the data and size of the data to read a packet into. On success, update struct ofpbuf size inside netdev_class rx_recv implementation and return 0. This moves logic from the caller. On error a negative error cod

[ovs-dev] [PATCH v3 2/2] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-16 Thread Simon Horman
If VLAN acceleration is used when the kernel receives a packet then the outer-most VLAN tag will not be present in the packet when it is received by netdev-linux. Rather, it will be present in auxdata. This patch uses recvmsg() instead of recv() to read auxdata for each packet and if the vlan_tid

[ovs-dev] [PATCH v3 0/2] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-16 Thread Simon Horman
If VLAN acceleration is used when the kernel receives a packet then the outer-most VLAN tag will not be present in the packet when it is received by netdev-linux. Rather, it will be present in auxdata. The purpose of this series is to obtain the vlan_tid from auxdata as appropriate and push it ont

[ovs-dev] [PATCH v3 3/3] ofproto: Honour Table Mod settings for table-miss handling

2013-12-16 Thread Simon Horman
This reworks lookup of rules for both table 0 and table action translation. The result is that Table Mod settings, which can alter the miss-behaviour of tables, including table 0, on a per-table basis may be honoured. Previous patches proposed by myself which build on earlier merged patches by And

[ovs-dev] [PATCH v3 2/3] ofproto: Add table config to struct ofproto

2013-12-16 Thread Simon Horman
Add table config to to struct ofproto and set it when a table mod message is received. This is in preparation for changing the behaviour of the switch based on table config. Cc: Andy Zhou Signed-off-by: Simon Horman --- v3 * As suggested by Ben Pfaff + Use atomic type for config field of st

[ovs-dev] [PATCH v3 0/3] ofproto: Honour Table Mod settings for table-miss handling

2013-12-16 Thread Simon Horman
This series of patches adds support for using Table Mod settings for table-miss handling. This series does not alter the default behaviour of Open vSwitch. And in particular the OpenFlow1.1 behaviour is the default regardless of which OpenFlow version is negotiated between the switch and the contr