Re: [ovs-dev] SubmittingPatches: Fix typo in 'Patch' section

2014-03-17 Thread Ben Pfaff
On Tue, Mar 18, 2014 at 10:19:44AM +0530, Anshuman Manral wrote: > I am using outlook web client and used 'plain text' to send the > patch. Do you have any suggestions on best way to send patch? Are > attachments better? It's best to use "git send-email", but an attachment is better than a patch t

Re: [ovs-dev] SubmittingPatches: Fix typo in 'Patch' section

2014-03-17 Thread Anshuman Manral
Thanks Ben For both the patches Strange as I had emailed to myself and applied and it worked fine!! I am using outlook web client and used 'plain text' to send the patch. Do you have any suggestions on best way to send patch? Are attachments better? Regards Anshuman > Date: Mon, 17 Mar 2014

Re: [ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-17 Thread Joe Stringer
Thanks, I'll roll these in when I rebase and repost. On Wed, Mar 12, 2014 at 12:32 PM, Ben Pfaff wrote: > On Thu, Mar 06, 2014 at 05:20:30PM -0800, Joe Stringer wrote: > > This patch adds a new object called 'struct xlate_cache' which can be > > set in 'struct xlate_in', and passed to xlate_act

Re: [ovs-dev] [RFC 0/9] Cache the modules affected by xlate_actions().

2014-03-17 Thread Joe Stringer
On Wed, Mar 12, 2014 at 12:47 PM, Ben Pfaff wrote: > I applied patches 1 through 4 to master. > Great, thanks. > I think I'm happy with patches 5 through 7, but I want Ethan's > feedback on them. > Likewise. I've responded to Ethan's initial query, and we'll see how the discussion goes. > Y

Re: [ovs-dev] [RFC 8/9] revalidator: Only revalidate high-throughput flows.

2014-03-17 Thread Joe Stringer
On Fri, Mar 7, 2014 at 2:45 PM, Ethan Jackson wrote: > I'm surprised its only 10%, do you have a sense of why? Perhaps when > running TCP_CRR we delete the flow the first time we see it, and we > need to do xlate_actions() to generate the list of things to push > stats to anyways? If this is wh

[ovs-dev] [PATCH V4 4/5] dpif-linux: Implement the API functions to allow multiple handler threads read upcall.

2014-03-17 Thread Alex Wang
Signed-off-by: Alex Wang --- V3 -> V4: - add check of handler_id range. V2 -> V3: - use OVS_DP_ATTR_USER_FEATURES to inform datapath about the type of OVS_VPORT_ATTR_UPCALL_PID attribute. - close epoll fd when destroying all channels. PATCH -> V2: - rebase. major changes since RFC: - free th

[ovs-dev] [PATCH V4 5/5] ofproto-dpif-upcall: Remove the dispatcher thread.

2014-03-17 Thread Alex Wang
With the foundation laid in previous commits, this commit removes the 'dispatcher' thread by allowing 'handler' threads to read upcalls directly from dpif. This commit significantly simplifies the flow miss handling code and brings slight improvement to flow setup rate. Note: - the flow setup rat

[ovs-dev] [PATCH V4 2/5] dpif-netdev: Implement the API functions to allow multiple handler threads read upcall.

2014-03-17 Thread Alex Wang
This commit implements the API functions to allow multiple handler threads read upcall. Also, this commit removes the handling priority of DPIF_UC_MISS over DPIF_UC_ACTION. So, both misses will be put to the same queue. The decision is based on the fact that a lot has changed since the age when

[ovs-dev] [PATCH V4 3/5] datapath: Allow each vport to have an array of 'port_id's.

2014-03-17 Thread Alex Wang
In order to allow handlers directly read upcalls from datapath, we need to support per-handler netlink socket for each vport in datapath. This commit makes this happen. Also, it is guaranteed backward and forward compatibility with previous branch. Signed-off-by: Alex Wang --- V3 -> V4: - defi

[ovs-dev] [PATCH V4 1/5] dpif: Change dpif API to allow multiple handler threads read upcall.

2014-03-17 Thread Alex Wang
This commit changes the API in 'dpif-provider.h' to allow multiple handler threads call dpif_recv() simultaneously. Signed-off-by: Alex Wang --- V3 -> V4: - refines the port_get_pid() comments as suggested. V2 -> V3: - detach the channel refreshing from recv_set(). Note: the recv_set() still

[ovs-dev] [PATCH V4 0/5] Remove the dispatcher thread.

2014-03-17 Thread Alex Wang
I have received many good reviews. I think it is good to apply the suggestions and rebase the whole series. So everyone can have a good new start point. V3 -> V4: - Implement the recv_set() in dpif-netdev. - Add check to the range of handler_id in recv() and recv_wait(). - Use reciprocal_div() t

Re: [ovs-dev] [PATCH V2] datapath: compat: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Alex Wang
Applied, thx~ On Mon, Mar 17, 2014 at 5:03 PM, Alex Wang wrote: > Thanks a lot for the review, ;D > > >> > +#endif /* _LINUX_RECIPROCAL_DIV_WRAPPER_H */ >> > diff --git a/datapath/linux/compat/reciprocal_div.c >> b/datapath/linux/compat/reciprocal_div.c >> > index 7ec7528..8027214 100644 >> > -

Re: [ovs-dev] [PATCH V2] datapath: compat: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Alex Wang
Thanks a lot for the review, ;D > > +#endif /* _LINUX_RECIPROCAL_DIV_WRAPPER_H */ > > diff --git a/datapath/linux/compat/reciprocal_div.c > b/datapath/linux/compat/reciprocal_div.c > > index 7ec7528..8027214 100644 > > --- a/datapath/linux/compat/reciprocal_div.c > > +++ b/datapath/linux/compat/r

Re: [ovs-dev] [PATCH V2] datapath: compat: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Pravin Shelar
On Mon, Mar 17, 2014 at 3:34 PM, Alex Wang wrote: > The reciprocal division code used in datapath is flawed. The bug > has been fixed in the linux kernel repo in commit 809fa972fd( > reciprocal_divide: update/correction of the algorithm). > > This commit downstreams the reciprocal_div.{c,h} from

Re: [ovs-dev] [PATCH] dpif-netdev: init atomic flag dp->destroyed

2014-03-17 Thread Andy Zhou
Thanks, pushed to master. On Mon, Mar 17, 2014 at 3:37 PM, Ben Pfaff wrote: > On Mon, Mar 17, 2014 at 10:14:22PM -0700, Andy Zhou wrote: > > It is better to explicitly initialize the dp->destroy than to rely > > on xzalloc(). > > > > Signed-off-by: Andy Zhou > > Acked-by: Ben Pfaff >

Re: [ovs-dev] [bond megaflow v2 1/5] ofproto-dpif: Added Per backer recirculation ID management

2014-03-17 Thread Ben Pfaff
On Tue, Mar 11, 2014 at 04:56:17PM -0700, Andy Zhou wrote: > Recirculation ID needs to be unique per datapath. Its usage will be > tracked by the backer that corresponds to the datapath. > > In theory, Recirculation ID can be any uint32_t value, except 0. This > implementation limits to a smaller

Re: [ovs-dev] [PATCH] dpif-netdev: init atomic flag dp->destroyed

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 10:14:22PM -0700, Andy Zhou wrote: > It is better to explicitly initialize the dp->destroy than to rely > on xzalloc(). > > Signed-off-by: Andy Zhou Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitc

[ovs-dev] [PATCH V2] datapath: compat: Downstream the reciprocal_div.{c,h}.

2014-03-17 Thread Alex Wang
The reciprocal division code used in datapath is flawed. The bug has been fixed in the linux kernel repo in commit 809fa972fd( reciprocal_divide: update/correction of the algorithm). This commit downstreams the reciprocal_div.{c,h} from the linux kernel repo. Signed-off-by: Alex Wang --- PATCH

Re: [ovs-dev] Help for java (bindings?) development

2014-03-17 Thread Ben Pfaff
On Sat, Mar 08, 2014 at 01:09:05PM +0100, Pasquale Dir wrote: > I'd need to create some java apis who would allow to interact with > openvswitch, creating bridges, adding ports, creating gre tunnels...in > short: the exact same thing ovs-vsctl does. > > As c code seems fairly complex I write here

Re: [ovs-dev] SubmittingPatches: Fix typo in 'Patch' section

2014-03-17 Thread Ben Pfaff
This patch didn't apply as-is (it is corrupted), but I made a similar fix to SubmittingPatches and applied it. On Sun, Mar 16, 2014 at 03:27:26AM +0530, Anshuman Manral wrote: > From ff045ce5933c32bd426fc1d81873a5179fb6c74b Mon Sep 17 00:00:00 2001 > From: Anshuman Manral > Date: Sun, 16 Mar 2014

Re: [ovs-dev] INSTALL: Correct 'step number' in 'Startup' section

2014-03-17 Thread Ben Pfaff
This patch didn't apply as-is (it is corrupted), but I made a similar fix to INSTALL and applied it. On Sun, Mar 16, 2014 at 03:05:46AM +0530, Anshuman Manral wrote: > From d3c5335882452d78871fcd5dc09adb806d7ce6a6 Mon Sep 17 00:00:00 2001 > From: Anshuman Manral > Date: Sun, 16 Mar 2014 02:17:41

Re: [ovs-dev] [PATCH 2/2] stream: Call WSAStartup() before calling any winsock functions.

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 02:55:09PM -0700, Gurucharan Shetty wrote: > On Mon, Mar 17, 2014 at 2:10 PM, Ben Pfaff wrote: > > On Mon, Mar 17, 2014 at 01:13:32PM -0700, Gurucharan Shetty wrote: > >> The WSAStartup function initiates use of the Winsock DLL by a process. > >> The function should be call

Re: [ovs-dev] [PATCH 1/2] socket-util: Fix dscp error check for Windows.

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 02:33:34PM -0700, Gurucharan Shetty wrote: > On Mon, Mar 17, 2014 at 2:08 PM, Ben Pfaff wrote: > > On Mon, Mar 17, 2014 at 01:13:31PM -0700, Gurucharan Shetty wrote: > >> Signed-off-by: Gurucharan Shetty > > > > Does Windows have an ENOPROTOOPT? If not, can we #define ENO

Re: [ovs-dev] [PATCH] reciprocal-divide: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Alex Wang
Thanks Pravin for the review~, make all-recursive > make[1]: Entering directory `/home/pravin/ovs/openvswitch' > Making all in datapath > make[2]: Entering directory `/home/pravin/ovs/openvswitch/datapath' > Making all in linux > make[3]: Entering directory `/home/pravin/ovs/openvswitch/datapath

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 10:39:01AM +0200, Alexandru Copot wrote: > On Mon, Mar 17, 2014 at 7:08 AM, Ben Pfaff wrote: > > On Mon, Mar 03, 2014 at 03:22:32PM +0200, Alexandru Copot wrote: > >> This defines the version number for OpenFlow 1.4 so that the switch > >> can actually use it. The ovsdb sch

Re: [ovs-dev] [PATCH 2/2] stream: Call WSAStartup() before calling any winsock functions.

2014-03-17 Thread Gurucharan Shetty
On Mon, Mar 17, 2014 at 2:10 PM, Ben Pfaff wrote: > On Mon, Mar 17, 2014 at 01:13:32PM -0700, Gurucharan Shetty wrote: >> The WSAStartup function initiates use of the Winsock DLL by a process. >> The function should be called before any winsock related functions >> are called. >> >> Since, we use

Re: [ovs-dev] Netflow5 records' init_time

2014-03-17 Thread Ben Pfaff
Somehow a lot of ovs-* mail has ended up in my spam folder lately. I just now fished this out. On Tue, Mar 11, 2014 at 11:56:02AM +0200, Lior Neudorfer wrote: > I've recompiled openvswitch without the "nf_flow->created = 0" code, and > start_time looks good. > Any reason why this line should stay

[ovs-dev] [PATCH] netflow: Correctly track flow creation time.

2014-03-17 Thread Ben Pfaff
'created' is supposed to be the time the flow was created, but it was getting reset to zero on every expiration, causing the flow start time to be wonky after the first active expiration on a flow. Reported-by: Lior Neudorfer Signed-off-by: Ben Pfaff --- ofproto/netflow.c |1 - 1 file chang

Re: [ovs-dev] [PATCH 1/2] socket-util: Fix dscp error check for Windows.

2014-03-17 Thread Gurucharan Shetty
On Mon, Mar 17, 2014 at 2:08 PM, Ben Pfaff wrote: > On Mon, Mar 17, 2014 at 01:13:31PM -0700, Gurucharan Shetty wrote: >> Signed-off-by: Gurucharan Shetty > > Does Windows have an ENOPROTOOPT? If not, can we #define ENOPROTOOPT > WSAENOPROTOOPT? Windows has both ENOPROTOOPT (errno.h) and WSAENOP

Re: [ovs-dev] [PATCH 2/2] stream: Call WSAStartup() before calling any winsock functions.

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 01:13:32PM -0700, Gurucharan Shetty wrote: > The WSAStartup function initiates use of the Winsock DLL by a process. > The function should be called before any winsock related functions > are called. > > Since, we use stream-fd-windows through pstream_open or stream_open > a

Re: [ovs-dev] [PATCH 1/2] socket-util: Fix dscp error check for Windows.

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 01:13:31PM -0700, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty Does Windows have an ENOPROTOOPT? If not, can we #define ENOPROTOOPT WSAENOPROTOOPT? ___ dev mailing list dev@openvswitch.org http://openvswitch.org/m

Re: [ovs-dev] [log backtrace v2] backtrace: add log_backtrace_*()

2014-03-17 Thread Andy Zhou
Thanks, pushed with the incremental patch folded in. On Mon, Mar 17, 2014 at 1:56 PM, Ben Pfaff wrote: > Yes, that looks good, thanks. > > On Mon, Mar 17, 2014 at 01:56:08PM -0700, Andy Zhou wrote: > > Thanks for pointing them out. How about the following incremental > changes > > to address b

Re: [ovs-dev] [PATCH 7/9] windefs: srandom() and random() for windows.

2014-03-17 Thread Ben Pfaff
On Mon, Mar 17, 2014 at 01:51:44PM -0700, Gurucharan Shetty wrote: > On Mon, Mar 17, 2014 at 1:37 PM, Ben Pfaff wrote: > > On Fri, Mar 14, 2014 at 08:18:44AM -0700, Gurucharan Shetty wrote: > >> Windows does not have a srandom() and random(). But it does > >> have a srand() and rand(). We use thes

Re: [ovs-dev] [log backtrace v2] backtrace: add log_backtrace_*()

2014-03-17 Thread Ben Pfaff
Yes, that looks good, thanks. On Mon, Mar 17, 2014 at 01:56:08PM -0700, Andy Zhou wrote: > Thanks for pointing them out. How about the following incremental changes > to address both issues? > > diff --git a/lib/backtrace.c b/lib/backtrace.c > index 3ff3fce..9b7c52b 100644 > --- a/lib/backtrace.

Re: [ovs-dev] [log backtrace v2] backtrace: add log_backtrace_*()

2014-03-17 Thread Andy Zhou
Thanks for pointing them out. How about the following incremental changes to address both issues? diff --git a/lib/backtrace.c b/lib/backtrace.c index 3ff3fce..9b7c52b 100644 --- a/lib/backtrace.c +++ b/lib/backtrace.c @@ -15,9 +15,9 @@ */ #include +#include #include "backtrace.h" -#inclu

Re: [ovs-dev] [PATCH] reciprocal-divide: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Pravin Shelar
Subject prefix should start with datapath for kernel patches. You can use "compat" to specify extra context. On Sat, Mar 15, 2014 at 5:13 PM, Alex Wang wrote: > The reciprocal division code used in datapath is flawed. The bug > has been fixed in the linux kernel repo in commit 809fa972fd( > reci

Re: [ovs-dev] [PATCH 7/9] windefs: srandom() and random() for windows.

2014-03-17 Thread Gurucharan Shetty
On Mon, Mar 17, 2014 at 1:37 PM, Ben Pfaff wrote: > On Fri, Mar 14, 2014 at 08:18:44AM -0700, Gurucharan Shetty wrote: >> Windows does not have a srandom() and random(). But it does >> have a srand() and rand(). We use these functions in sflow code. >> >> Signed-off-by: Gurucharan Shetty > > How

Re: [ovs-dev] [log backtrace v2] backtrace: add log_backtrace_*()

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 02:24:33PM -0700, Andy Zhou wrote: > log_backtrace() and log_backtrace_msg() logs the back trace into > the log file. It may be most useful when debugging unit tests. > "backtrace.h" documents the usage. It is not being called directly > in the code, but rather as a handy to

Re: [ovs-dev] [PATCH 9/9] BUILD.Windows: Update compilable utilities.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:46AM -0700, Gurucharan Shetty wrote: > We can now compile a few OVS userspace components on Windows. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org

Re: [ovs-dev] [PATCH 8/9] system-stats: Port for Windows.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:45AM -0700, Gurucharan Shetty wrote: > This does not provide us all the functionality that > is available in Linux. But should be a start. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@

Re: [ovs-dev] [PATCH 7/9] windefs: srandom() and random() for windows.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:44AM -0700, Gurucharan Shetty wrote: > Windows does not have a srandom() and random(). But it does > have a srand() and rand(). We use these functions in sflow code. > > Signed-off-by: Gurucharan Shetty How do these functions get called? As far as I can tell, they

Re: [ovs-dev] [PATCH 6/9] strsep: Copy from netbsd.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:43AM -0700, Gurucharan Shetty wrote: > Windows does not have a strsep. > > Signed-off-by: Gurucharan Shetty Do we have anything that might define HAVE_STRSEP? If not, the test for it is confusing. Acked-by: Ben Pfaff _

Re: [ovs-dev] [PATCH 5/9] sflow: Include the windefs.h header for windows.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:42AM -0700, Gurucharan Shetty wrote: > sflow.h uses u_int32_t that needs windefs.h for compilation > in visual studio. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http

Re: [ovs-dev] [PATCH 4/9] ofproto: Don't use DELETE inside enumerator list.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:41AM -0700, Gurucharan Shetty wrote: > Visual studio does not like it. It is mostly a keyword. > > Signed-off-by: Gurucharan Shetty Weird. Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.o

Re: [ovs-dev] [PATCH 3/9] ovs-ofctl: Use fcntl instead of sys/fcntl.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:40AM -0700, Gurucharan Shetty wrote: > Windows does not have a sys/fcntl.h > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/9] windows/unistd: Add definitions for STD*_FILENO.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:39AM -0700, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/9] windefs: Include the library advapi32.

2014-03-17 Thread Ben Pfaff
On Fri, Mar 14, 2014 at 08:18:38AM -0700, Gurucharan Shetty wrote: > advapi32 is needed by multiple functions > So include it in a common place. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://o

[ovs-dev] [PATCH] dpif-netdev: init atomic flag dp->destroyed

2014-03-17 Thread Andy Zhou
It is better to explicitly initialize the dp->destroy than to rely on xzalloc(). Signed-off-by: Andy Zhou --- lib/dpif-netdev.c |1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 54b8f50..3bbfd2a 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev

[ovs-dev] [PATCH 2/2] stream: Call WSAStartup() before calling any winsock functions.

2014-03-17 Thread Gurucharan Shetty
The WSAStartup function initiates use of the Winsock DLL by a process. The function should be called before any winsock related functions are called. Since, we use stream-fd-windows through pstream_open or stream_open add the WSAStartup() call there. The current version of the Windows Sockets spe

[ovs-dev] [PATCH 1/2] socket-util: Fix dscp error check for Windows.

2014-03-17 Thread Gurucharan Shetty
Signed-off-by: Gurucharan Shetty --- lib/socket-util.c |8 1 file changed, 8 insertions(+) diff --git a/lib/socket-util.c b/lib/socket-util.c index 4c79cd6..daf406f 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -120,14 +120,22 @@ set_dscp(int fd, uint8_t dscp) succe

Re: [ovs-dev] [PATCH] FAQ: Add question about meter support.

2014-03-17 Thread Ben Pfaff
Thanks, applied to master. On Mon, Mar 17, 2014 at 06:06:10PM +, Pritesh Kothari (pritkoth) wrote: > Acked-by: Pritesh Kothari > > On Mar 15, 2014, at 9:20 AM, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > --- > > FAQ | 7 +++ > > 1 file changed, 7 insertions(+) > > > > diff --g

Re: [ovs-dev] [PATCH] socket-util: Fix definition of LINUX.

2014-03-17 Thread Ben Pfaff
Thanks! I applied this. On Mon, Mar 17, 2014 at 06:10:13PM +, Pritesh Kothari (pritkoth) wrote: > Acked-by: Pritesh Kothari > > On Mar 14, 2014, at 4:00 PM, Ben Pfaff wrote: > > > Reported-by: Mukesh Hira > > Signed-off-by: Ben Pfaff > > --- > > lib/socket-util.c |4 ++-- > > 1 file

Re: [ovs-dev] [PATCH] socket-util: Fix definition of LINUX.

2014-03-17 Thread Pritesh Kothari (pritkoth)
Acked-by: Pritesh Kothari On Mar 14, 2014, at 4:00 PM, Ben Pfaff wrote: > Reported-by: Mukesh Hira > Signed-off-by: Ben Pfaff > --- > lib/socket-util.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/socket-util.c b/lib/socket-util.c > index 4c79cd6..aeda54

Re: [ovs-dev] [PATCH] FAQ: Add question about meter support.

2014-03-17 Thread Pritesh Kothari (pritkoth)
Acked-by: Pritesh Kothari On Mar 15, 2014, at 9:20 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > FAQ | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/FAQ b/FAQ > index f46170c..a54bbf9 100644 > --- a/FAQ > +++ b/FAQ > @@ -774,6 +774,13 @@ A: With the Linux kernel, the

[ovs-dev] [RFC 4/4] monitor: Add generic monitor library.

2014-03-17 Thread Alex Wang
This commit abstracts the tunnel monitoring logic in 'ofproto-dpif-monitor' into a generic 'monitor' library. The 'monitor' library is designed to allow user monitor using multiple protocols (e.g. bfd/cfm) together. Also, it employs heap to order the sessions for efficiency. The code in the 'ofp

[ovs-dev] [RFC 0/4] Generic BFD and monitor library.

2014-03-17 Thread Alex Wang
To facilitates the code review, I break the original libbfd patch into series. Also, the ofproto-dpif-monitor logic is abstracted into a generic monitor library module. This marks a step forward in making Open Vswitch library functions easily applicable outside the project. Alex Wang (4): bfd:

[ovs-dev] [RFC 3/4] bfd: Add logging function to BFD state machine.

2014-03-17 Thread Alex Wang
This commit requires user define logging functions in bfd-aux.h. Code is added in bfd.c to log the variable and operation status. Signed-off-by: Alex Wang --- lib/bfd-aux.h | 60 - lib/bfd.c | 49

[ovs-dev] [RFC 2/4] bfd: Remove the inclusion of Open Vswitch specific library.

2014-03-17 Thread Alex Wang
This commit removes the '#include' of Open Vswitch specific library in 'bfd.c'. Instead, an auxiliary header 'bfd-aux.h' is created to allow user of generic BFD state machine to define those platform dependent functions. Signed-off-by: Alex Wang --- lib/automake.mk |1 + lib/bfd-aux.h |

Re: [ovs-dev] [PATCH] reciprocal-divide: Downstream the reciprocal_div.{c, h}.

2014-03-17 Thread Thomas Graf
On 03/16/2014 01:13 AM, Alex Wang wrote: The reciprocal division code used in datapath is flawed. The bug has been fixed in the linux kernel repo in commit 809fa972fd( reciprocal_divide: update/correction of the algorithm). This commit downstreams the reciprocal_div.{c,h} from the linux kernel

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-17 Thread Alexandru Copot
On Mon, Mar 17, 2014 at 7:08 AM, Ben Pfaff wrote: > On Mon, Mar 03, 2014 at 03:22:32PM +0200, Alexandru Copot wrote: >> This defines the version number for OpenFlow 1.4 so that the switch >> can actually use it. The ovsdb schema is also modified. >> >> Signed-off-by: Alexandru Copot >> Cc: Daniel