Re: [ovs-dev] [PATCH 2/2] ovs-thread: Add checking for mutex and rwlock initialization.

2014-04-24 Thread Andy Zhou
The logic looks good. 233 unit tests failed now. Apparently this patch is great doing a great job on catching uninitialized mutex and rwlocks. Assume the tests will be fixed before checking in: Acked-by: Andy Zhou ___ dev mailing list dev@openvswitch.

Re: [ovs-dev] [PATCH 1/2] lacp: Don't lock potentially uninitialized mutex in lacp_status().

2014-04-24 Thread Andy Zhou
Acked-by: Andy Zhou With a question inline. On Thu, Apr 24, 2014 at 4:59 PM, Ben Pfaff wrote: > If the 'lacp' parameter is nonnull, then we know that the file scope mutex > has been initialized, since that's done as a side effect of creating a > lacp object, but otherwise there's no guarantee.

Re: [ovs-dev] [PATCH] revalidator: Fix ukey stats cache updating.

2014-04-24 Thread Alex Wang
i'll kick an overnight run on "learning action - self-modifying flow with idle_timeout".~ (seq 1). if it survives, tmr morning, i'll ack it~~ On Thu, Apr 24, 2014 at 10:26 PM, Joe Stringer wrote: > revalidate_ukey() had a bug where it would update the ukey->stats even > if it decided not to

[ovs-dev] [PATCH 2/2] ofproto-dpif: restore bond rebalance for non-recirc bond

2014-04-24 Thread Andy Zhou
Bond rebalancing was disabled for bonds not using recirculation. The patch fixes this bug. While fixing the bug, the bond_rebalance() was also restructured slightly to move bond related logic back into ofproto/bond.c Signed-off-by: Andy Zhou --- ofproto/bond.c | 21 +++--

[ovs-dev] [PATCH 1/2] ofproto-bond: do not allow recirculation when we failed to allocate recirc_id

2014-04-24 Thread Andy Zhou
When recirc pool is exhausted, a new bond won't be allocate a new recirc_id. The bond->recirc_id will remain zero. This condition should prevent the bond from use recirculation. This check was missing before this patch. Signed-off-by: Andy Zhou --- ofproto/bond.c | 2 +- 1 file changed, 1 insert

[ovs-dev] [PATCH] revalidator: Fix ukey stats cache updating.

2014-04-24 Thread Joe Stringer
revalidate_ukey() had a bug where it would update the ukey->stats even if it decided not to push stats (as an optimisation). ukey->stats should only be updated when those stats are pushed. This bug would arise in the following situation: * A flow has been dumped before. * The flow needs to be reva

Re: [ovs-dev] [PATCH v3 00/16] Flow-Based Recirculation for MPLS

2014-04-24 Thread Simon Horman
On Tue, Apr 22, 2014 at 05:54:48PM +0900, Simon Horman wrote: > > The motivation of this series is to allow some sequences of actions > that include MPLS actions to be performed using recirculation. > Sequences of actions that could not previously be handled. > > For example pop_mpls:0x0800,dec_t

Re: [ovs-dev] [PATCH] ofp-util: compile group stats with visual studio

2014-04-24 Thread Andy Zhou
I sent a V2 based Ben's suggestion. On Thu, Apr 24, 2014 at 3:45 PM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 03:41:52PM -0700, Gurucharan Shetty wrote: >> On Thu, Apr 24, 2014 at 2:48 PM, Andy Zhou wrote: >> > Visual studio does not support 0 size array within a struct, >> > but supports flex

Re: [ovs-dev] [PATCH v2 3/3] datapath: add layer 3 flow/port support

2014-04-24 Thread Jesse Gross
On Wed, Apr 16, 2014 at 12:18 PM, Lori Jakab wrote: > On 4/16/14, 2:57 AM, Jesse Gross wrote: >> >> On Fri, Apr 11, 2014 at 4:30 AM, Lori Jakab wrote: >>> >>> On 4/11/14, 1:47 AM, Jesse Gross wrote: On Thu, Mar 20, 2014 at 4:37 AM, Lori Jakab wrote: > > On 1/6/14, 7:55 PM, Jess

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
On Thu, Apr 24, 2014 at 4:30 PM, Jarno Rajahalme wrote: > > On Apr 24, 2014, at 3:32 PM, Ben Pfaff wrote: > >> On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: >>> I suppose the other possibility is to pass some kind of flag attribute >>> with messages indicating that this is a test p

Re: [ovs-dev] [PATCH 08/10] lib/classifier: Separate cls_rule internals from the API.

2014-04-24 Thread Ethan Jackson
I haven't read this patch yet, but a high level question. Why not just hide all of struct cls_rule and make callers embed a pointer to it? We'd replace the cls_rule_init() function with a cls_rule_create() function which mallocs the rule and returns it (for example). Ethan On Fri, Apr 18, 2014

Re: [ovs-dev] [PATCH 07/10] classifier: Use array for subtables instead of a list.

2014-04-24 Thread Ethan Jackson
In the cache_push_back function, you might consider using the x2nrealloc() function. Does this actually help? I've found we spend most of our time getting the memory for the rule, not the subtable itself. Ethan On Fri, Apr 18, 2014 at 12:41 PM, Jarno Rajahalme wrote: > Using a linear array all

Re: [ovs-dev] [PATCH 06/10] lib: Add prefetch support (for GCC)

2014-04-24 Thread Ethan Jackson
I think there should be a comment explaining when to use prefetch vs prefetch_write. I certainly don't know off the top of my head. Acked-by: Ethan Jackson On Fri, Apr 18, 2014 at 12:41 PM, Jarno Rajahalme wrote: > Define OVS_PREFETCH() and OVS_PREFETCH_WRITE() using builtin prefetch > for GC

Re: [ovs-dev] [PATCH 05/10] lib/flow: Optimize minimask_has_extra() and minimask_is_catchall()

2014-04-24 Thread Ethan Jackson
Acked-by: Ethan Jackson On Fri, Apr 18, 2014 at 12:41 PM, Jarno Rajahalme wrote: > We only need to iterate over the bits masked by the 'b' in > minimask_has_extra(), since for zeroes in 'b' there can be no 'extra' > wildcards in 'a', as 'b' has already wildcarded all the bits. > > minimask_is_c

Re: [ovs-dev] [PATCH] tests: Fix race condition waiting for monitor thread.

2014-04-24 Thread Joe Stringer
Looking again, it's probably better to change the lines which look for "monitor thread created" and "..terminated" to be OVS_WAIT_UNTIL. I plan to send a fresh version. On 25 April 2014 12:34, Joe Stringer wrote: > Occasionally, test #770 "ofproto-dpif - ofproto-dpif-monitor 1" would > fail, be

Re: [ovs-dev] [PATCH 04/10] lib/classifier: Hide more of the internal data structures.

2014-04-24 Thread Ethan Jackson
So it seems to me that the only data needed in struct classifier by callers is the fat_rwlock. What if we add a classifier_rdlock() and a classifier_wrlock() function. That done, we could entirely hide struct classifier, and would need to make the distinction between it and the cls_classifier. T

[ovs-dev] [PATCH] tests: Fix race condition waiting for monitor thread.

2014-04-24 Thread Joe Stringer
Occasionally, test #770 "ofproto-dpif - ofproto-dpif-monitor 1" would fail, because the testsuite looked in the logs for evidence of a thread being created, but it checked before vswitchd was able to spawn the thread. This patch fixes the race by waiting until there is a reasonable amount of logs

Re: [ovs-dev] [PATCH 03/10] ofproto: Use classifer cursor API to collect vlan usage.

2014-04-24 Thread Ethan Jackson
Acked-by: Ethan Jackson On Fri, Apr 18, 2014 at 12:41 PM, Jarno Rajahalme wrote: > This was the only place in OVS code that accessed classifier internal > data structures directly. Use the classifier cursor API instead, so > that following patches can hide classifier internal data structures.

[ovs-dev] [v2] ofp-util: compile group stats with visual studio

2014-04-24 Thread Andy Zhou
Visual studio supports zero-size array within a struct or union, but has to be the last element. GCC does not have this restriction. Commits 644cfd84772eb7d8 and 6fdaa45a6f6c9 make use of 0 size array. Remove them so that visual studio can compile them as well. Reported-by: Gurucharan Shetty Sig

Re: [ovs-dev] [PATCH 02/10] lib: Inline functions used in classifier_lookup

2014-04-24 Thread Ethan Jackson
The first line in the commit message needs a period. As Yamamoto asked, please verify that this actually helps. If it doesn't I'd prefer not to merge it. I think we need to get rid of the hindex anyways, so I'd prefer we don't inline it now. Assuming the above is addressed: Acked-by: Ethan Jac

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Thomas F Herbert
Jesse, Ben, Jarno et. al, This message although harmless can be confusing for developers who are introducing new functionality and testing it on the datapath. When I first turned on logging and saw it, I thought it was my bug until I found saw it in the master branch. I will take no action

Re: [ovs-dev] [PATCH v4 2/2] datapath: use skb_clear_hash instead of skb_clear_rxhash.

2014-04-24 Thread Jesse Gross
On Tue, Apr 22, 2014 at 2:08 PM, Pritesh Kothari wrote: > diff --git a/datapath/linux/compat/include/linux/skbuff.h > b/datapath/linux/compat/include/linux/skbuff.h > index b0d0190..f47ccfe 100644 > --- a/datapath/linux/compat/include/linux/skbuff.h > +++ b/datapath/linux/compat/include/linux/skb

Re: [ovs-dev] [PATCH 01/10] lib/flow: Simplify miniflow accessors, add ipv6 support.

2014-04-24 Thread Ethan Jackson
In the commit message s/suppoort/support/ Out of curiosity why replace the miniflow_get inline functions with macros? > +/* Separate loops for better optimization. */ Why do we need separate loops? You think it somehow improves the branch predictor or something? Does this actually help

Re: [ovs-dev] [PATCH v4 1/2] datapath: Add support for kernel 3.14.

2014-04-24 Thread Jesse Gross
On Tue, Apr 22, 2014 at 2:08 PM, Pritesh Kothari wrote: > diff --git a/acinclude.m4 b/acinclude.m4 > index 4269620..06983cb 100644 > --- a/acinclude.m4 > +++ b/acinclude.m4 > @@ -244,6 +244,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ >OVS_GREP_IFELSE([$KSRC/include/linux/err.h], [ERR_CAST]) > >

[ovs-dev] [PATCH 2/2] ovs-thread: Add checking for mutex and rwlock initialization.

2014-04-24 Thread Ben Pfaff
With glibc, a mutex or rwlock filled with all-zero-bytes is properly initialized for use, but this is not true for any other libc that OVS supports. However, OVS gets a lot more testing with glibc than any other libc. This means that developers keep introducing bugs that do not manifest on the ma

[ovs-dev] [PATCH 1/2] lacp: Don't lock potentially uninitialized mutex in lacp_status().

2014-04-24 Thread Ben Pfaff
If the 'lacp' parameter is nonnull, then we know that the file scope mutex has been initialized, since that's done as a side effect of creating a lacp object, but otherwise there's no guarantee. Signed-off-by: Ben Pfaff --- lib/lacp.c | 18 +- 1 file changed, 9 insertions(+), 9

[ovs-dev] [PATCH V5 1/2] ofproto-dpif: Use sequence number to wake up main thread for packet-in I/O.

2014-04-24 Thread Alex Wang
This commit adds per 'struct ofproto_dpif' sequence number for packet-in I/O. Whenever ofproto_dpif_send_packet_in() is called, the calling thread will change the sequence number to wake up the main thread. Signed-off-by: Alex Wang Acked-by: Joe Stringer --- V4 -> V5: - always call seq_change(

[ovs-dev] [PATCH V5 2/2] bridge: Refactor the 'Instant' stats logic.

2014-04-24 Thread Alex Wang
This commit refactors the 'Instant' stats related logic in bridge.c by moving it into bridge_run(). This change brings the following effects: 1. bridge.c will wait on the global connectivity sequence number when there is no pending instant stats transaction. and the main thread will no lon

Re: [ovs-dev] [PATCH 2/3] ofproto: Make taking rule reference conditional on lookup.

2014-04-24 Thread Jarno Rajahalme
I removed the comments from the .h file before pushing. Jarno On Apr 23, 2014, at 4:53 PM, Ethan Jackson wrote: > Traditionally we've put function comments just in the .c file, not in > the .c and .h file as you've done for rule_dpif_lookup(). That said, > I don't know where that convention

Re: [ovs-dev] [PATCH 3/3] ofproto: Reduce taking rule references.

2014-04-24 Thread Jarno Rajahalme
Thanks for the review! The series pushed to master, Jarno On Apr 23, 2014, at 4:56 PM, Ethan Jackson wrote: > LGTM > > Acked-by: Ethan Jackson > > > On Wed, Apr 23, 2014 at 4:20 PM, Jarno Rajahalme > wrote: >> Only take reference to a looked up rule when needed. >> >> This reduces the

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jarno Rajahalme
On Apr 24, 2014, at 3:32 PM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: >> I suppose the other possibility is to pass some kind of flag attribute >> with messages indicating that this is a test probe and would silence >> logging. Existing kernels would ignore

Re: [ovs-dev] [PATCH v2.56] datapath: Add basic MPLS support to kernel

2014-04-24 Thread Simon Horman
On Thu, Apr 24, 2014 at 05:57:29PM +0900, YAMAMOTO Takashi wrote: > hi, > > > + * Due to the sample action there may be multiple possible eth types. > > + * In order to correctly validate actions all possible types are tracked > > + * and verified. This is done using struct eth_types. > > is ther

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
On Thu, Apr 24, 2014 at 4:14 PM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 4:01 PM, Jesse Gross wrote: >> On Thu, Apr 24, 2014 at 3:32 PM, Ben Pfaff wrote: >>> On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: I suppose the other possibility is to pass some kind of flag attribut

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 4:01 PM, Jesse Gross wrote: > On Thu, Apr 24, 2014 at 3:32 PM, Ben Pfaff wrote: >> On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: >>> I suppose the other possibility is to pass some kind of flag attribute >>> with messages indicating that this is a test probe

Re: [ovs-dev] [PATCH] ovs-ctl: Install manpage.

2014-04-24 Thread Gurucharan Shetty
On Fri, Apr 11, 2014 at 11:18 AM, Ben Pfaff wrote: > It seems that it is useful to admins after all. > > Reported-by: Brian Candler > Signed-off-by: Ben Pfaff > --- > debian/openvswitch-switch.manpages |1 + > rhel/openvswitch-fedora.spec.in|3 ++- > utilities/automake.mk

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
On Thu, Apr 24, 2014 at 3:32 PM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: >> I suppose the other possibility is to pass some kind of flag attribute >> with messages indicating that this is a test probe and would silence >> logging. Existing kernels would igno

Re: [ovs-dev] [PATCH V4 3/3] bridge: Remove the 'Instant' stats.

2014-04-24 Thread Alex Wang
Thanks for the review, Joe Replies inline, On 18 April 2014 08:32, Alex Wang wrote: > >> This commit removes the 'Instant' stats related logic in bridge.c. >> Instead, the corresponding status is updated immediately after the >> global connectivity sequence number changes. >> > > Could you updat

Re: [ovs-dev] [PATCH 1/2] netdev: Initialize netdev_class_mutex.

2014-04-24 Thread Ben Pfaff
On Tue, Apr 22, 2014 at 02:15:11PM -0700, Gurucharan Shetty wrote: > This code path currently does not initialize > netdev_class_mutex. > dummy_enable > ->netdev_dummy_register >->netdev_register_provider > ->ovs_mutex_lock(&netdev_class_mutex) > > ovsdb-server on windows crashes without

Re: [ovs-dev] [PATCH 2/2] ofproto: Don't destroy mutex before its use.

2014-04-24 Thread Ben Pfaff
On Tue, Apr 22, 2014 at 02:15:12PM -0700, Gurucharan Shetty wrote: > Currently, we are calling guarded_list_destroy() > to destroy a mutex and then go ahead and use it through > delete_group > ->delete_group__ >->handle_flow_mod__ > ->run_rule_executes > ->guarded_list_pop_all > > Th

Re: [ovs-dev] [PATCH] ofp-util: compile group stats with visual studio

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 03:41:52PM -0700, Gurucharan Shetty wrote: > On Thu, Apr 24, 2014 at 2:48 PM, Andy Zhou wrote: > > Visual studio does not support 0 size array within a struct, > > but supports flexible array. For example, char p[0] is not supported, > > but char p[] is O.K. GCC supports b

Re: [ovs-dev] [PATCH] ofp-util: compile group stats with visual studio

2014-04-24 Thread Gurucharan Shetty
On Thu, Apr 24, 2014 at 2:48 PM, Andy Zhou wrote: > Visual studio does not support 0 size array within a struct, > but supports flexible array. For example, char p[0] is not supported, > but char p[] is O.K. GCC supports both. > > Flexible array can not directly replace a zero sized array. > http

Re: [ovs-dev] [PATCH] FAQ: Explain what to do when building against a too-new kernel.

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 02:52:30PM -0700, Gurucharan Shetty wrote: > On Thu, Apr 24, 2014 at 1:31 PM, Ben Pfaff wrote: > > Also add references to this FAQ from INSTALL and configure. > > > > Signed-off-by: Ben Pfaff > Acked-by: Gurucharan Shetty Thanks, applied to master. __

Re: [ovs-dev] [PATCH] FAQ: Explain what to do when building against a too-new kernel.

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 02:51:45PM -0700, Jesse Gross wrote: > On Thu, Apr 24, 2014 at 1:31 PM, Ben Pfaff wrote: > > diff --git a/INSTALL b/INSTALL > > index f43c65b..71ce963 100644 > > --- a/INSTALL > > +++ b/INSTALL > > @@ -164,10 +164,6 @@ Prerequisites section, follow the procedure below to >

Re: [ovs-dev] [PATCH V4 2/3] ofproto-dpif: Use sequence number to wake up main thread for packet-in I/O.

2014-04-24 Thread Alex Wang
Realized that we should always seq_change() in the ofproto_dpif_send_packet_in() Will send another version, should be very straight forward, On Thu, Apr 24, 2014 at 5:54 AM, Joe Stringer wrote: > Good to see this as a separate change. > > Acked-by: Joe Stringer > > > On 18 April 2014 08:32, A

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 02:57:28PM -0700, Jesse Gross wrote: > I suppose the other possibility is to pass some kind of flag attribute > with messages indicating that this is a test probe and would silence > logging. Existing kernels would ignore this so they would still log > but the behavior would

Re: [ovs-dev] [PATCH V4 1/3] bfd/cfm: Check status change before update status to database.

2014-04-24 Thread Alex Wang
Applied, thx~ On Thu, Apr 24, 2014 at 5:54 AM, Joe Stringer wrote: > Acked-by: Joe Stringer > > > On 18 April 2014 08:32, Alex Wang wrote: > >> This commit adds boolean flag in bfd/cfm module for checking >> status change. If there is no status change, the current >> update to OVS database wi

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
The cleanest way seems to be to just reduce the default log level for these messages so they don't pop up normally. I think we talked about this before and were concerned about debugging when problems show up at runtime other than developer testing. I suppose the other possibility is to pass some

Re: [ovs-dev] [PATCH] FAQ: Explain what to do when building against a too-new kernel.

2014-04-24 Thread Gurucharan Shetty
On Thu, Apr 24, 2014 at 1:31 PM, Ben Pfaff wrote: > Also add references to this FAQ from INSTALL and configure. > > Signed-off-by: Ben Pfaff Acked-by: Gurucharan Shetty > --- > FAQ | 35 ++- > INSTALL |8 > acinclude.m4 |2 +- >

Re: [ovs-dev] [PATCH] FAQ: Explain what to do when building against a too-new kernel.

2014-04-24 Thread Jesse Gross
On Thu, Apr 24, 2014 at 1:31 PM, Ben Pfaff wrote: > diff --git a/INSTALL b/INSTALL > index f43c65b..71ce963 100644 > --- a/INSTALL > +++ b/INSTALL > @@ -164,10 +164,6 @@ Prerequisites section, follow the procedure below to > build. > To use a specific C compiler for compiling Open vSwitch use

[ovs-dev] [PATCH] ofp-util: compile group stats with visual studio

2014-04-24 Thread Andy Zhou
Visual studio does not support 0 size array within a struct, but supports flexible array. For example, char p[0] is not supported, but char p[] is O.K. GCC supports both. Flexible array can not directly replace a zero sized array. http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html lists the diffe

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Andy Zhou
I am sure it can be done and most likely involving some netlink changes. Since netlink message design is your forte, any suggestions? On Thu, Apr 24, 2014 at 2:22 PM, Jesse Gross wrote: > That's a good point, I didn't think about that. I wonder if there is a > way to avoid the error message in t

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
That's a good point, I didn't think about that. I wonder if there is a way to avoid the error message in these cases since it's likely to cause confusion given that it is logged by default. On Thu, Apr 24, 2014 at 1:57 PM, Andy Zhou wrote: > Whenever we instantiate a new ofproto (i.e. bridge), we

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Andy Zhou
Whenever we instantiate a new ofproto (i.e. bridge), we probe datapath to detect if it supports MPLS, and if yes, how many labels it can support. The probing produces similar error messages on my system. It should only appear when you add the bridge, but not afterwards. On Thu, Apr 24, 2014 at 12

[ovs-dev] giving up on backlog--please ask me to review any outstanding patches

2014-04-24 Thread Ben Pfaff
After getting back from my vacation on Monday, I've found myself unable to properly keep track of which patches people would like me to review. Therefore, if you have an outstanding patch or patch series, and think I should review it, please send me a pointer. _

[ovs-dev] [PATCH] FAQ: Explain what to do when building against a too-new kernel.

2014-04-24 Thread Ben Pfaff
Also add references to this FAQ from INSTALL and configure. Signed-off-by: Ben Pfaff --- FAQ | 35 ++- INSTALL |8 acinclude.m4 |2 +- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/FAQ b/FAQ index 6b4be43..c43b0c

Re: [ovs-dev] [PATCH] Modify the check for identfying STP BPDUs to avoid conflicts with IEEE 802.1QBG/LLDP

2014-04-24 Thread Ben Pfaff
Thanks for checking. I applied this to master. On Thu, Apr 24, 2014 at 01:12:27PM -0700, Padmanabhan Krishnan wrote: > This works for my requirement of passing LLDP frames with NCB. Good to go > from my side. > > > Thanks, > Paddu > > On Thursday, April 24, 2014 11:16 AM, Padmanabhan Krishnan

Re: [ovs-dev] [PATCH] Modify the check for identfying STP BPDUs to avoid conflicts with IEEE 802.1QBG/LLDP

2014-04-24 Thread Padmanabhan Krishnan
This works for my requirement of passing LLDP frames with NCB. Good to go from my side. Thanks, Paddu On Thursday, April 24, 2014 11:16 AM, Padmanabhan Krishnan wrote: Sure, this looks better. Wasn't aware of the define for FLOW_DL_TYPE_NONE. I was searching for the define for minimum ethe

Re: [ovs-dev] [PATCH v2] daemon: Move some common code to daemon.c

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 09:41:00AM -0700, Gurucharan Shetty wrote: > We have some common code between daemon-unix.c and > daemon-windows.c. Move them to daemon.c > > Signed-off-by: Gurucharan Shetty I didn't trying building this but at a glance the change from v1 is what I expected. Acked-by: B

Re: [ovs-dev] [PATCH 3/3] daemon: Move some common code to daemon.c

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 10:26:26AM -0700, Gurucharan Shetty wrote: > On Thu, Apr 24, 2014 at 9:26 AM, Ben Pfaff wrote: > > On Thu, Apr 24, 2014 at 08:31:04AM -0700, Gurucharan Shetty wrote: > >> We have some common code between daemon-unix.c and > >> daemon-windows.c. Move them to daemon.c > >> >

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Thomas F Herbert
On 4/24/2014 1:47 PM, Jesse Gross wrote: On Thu, Apr 24, 2014 at 8:38 AM, Thomas F Herbert wrote: Hi, I think there is a problem with parsing out the OVS ATTRIBUTE nesting in the NL message in the datapath and I am having trouble finding the cause. I think the nl msg is built up wrong in the c

Re: [ovs-dev] [PATCH] Modify the check for identfying STP BPDUs to avoid conflicts with IEEE 802.1QBG/LLDP

2014-04-24 Thread Padmanabhan Krishnan
Sure, this looks better. Wasn't aware of the define for FLOW_DL_TYPE_NONE. I was searching for the define for minimum ethertype. Now i do see ETH_TYPE_MIN. Let me apply this patch, test and will update this thread. Thanks, Paddu Ben Pfaff blp at nicira.com  Thu Apr 24 10:15:24 PDT 2014

Re: [ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Jesse Gross
On Thu, Apr 24, 2014 at 8:38 AM, Thomas F Herbert wrote: > Hi, > > I think there is a problem with parsing out the OVS ATTRIBUTE nesting in the > NL message in the datapath and I am having trouble finding the cause. I > think the nl msg is built up wrong in the case of the vlan push action. > > I

Re: [ovs-dev] [PATCH 3/3] daemon: Move some common code to daemon.c

2014-04-24 Thread Gurucharan Shetty
On Thu, Apr 24, 2014 at 9:26 AM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 08:31:04AM -0700, Gurucharan Shetty wrote: >> We have some common code between daemon-unix.c and >> daemon-windows.c. Move them to daemon.c >> >> Signed-off-by: Gurucharan Shetty > > "sparse" reports: > > ../lib/daemo

[ovs-dev] [PATCH v2] daemon: Move some common code to daemon.c

2014-04-24 Thread Gurucharan Shetty
We have some common code between daemon-unix.c and daemon-windows.c. Move them to daemon.c Signed-off-by: Gurucharan Shetty --- lib/automake.mk |1 + lib/daemon-private.h | 25 + lib/daemon-unix.c| 38 -- lib/daemon-win

Re: [ovs-dev] [PATCH] Modify the check for identfying STP BPDUs to avoid conflicts with IEEE 802.1QBG/LLDP

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 01:12:43AM -0700, Padmanabhan Krishnan wrote: > Apart from STP, EVB extension of LLDP as well as IEEE 802.1QBG > use the Nearest Customer Bridge (NCB) DMAC which > has a value of 0180.c200.. If a flow is programmed for > LLDP or QBG packets specifying the NCB DMAC and et

Re: [ovs-dev] [PATCH 3/3] daemon: Move some common code to daemon.c

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 08:31:04AM -0700, Gurucharan Shetty wrote: > We have some common code between daemon-unix.c and > daemon-windows.c. Move them to daemon.c > > Signed-off-by: Gurucharan Shetty "sparse" reports: ../lib/daemon-unix.c:42:6: warning: symbol 'detach' was not declared. Sho

Re: [ovs-dev] [PATCH 1/3] daemon: Rename daemon.c as daemon-unix.c

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 08:31:02AM -0700, Gurucharan Shetty wrote: > An upcoming commit re-introduces daemon.c to have > common functions across daemon-unix.c and daemon-windows.c > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailin

Re: [ovs-dev] [PATCH 2/3] daemon: Close standard file descriptors after detach for windows.

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 08:31:03AM -0700, Gurucharan Shetty wrote: > In the unit tests, we check for some logs stored in stderr. In case > of windows, unit tests fail because the child writes additional information > into stderr because it does not have it closed. This commit > closes standard file

Re: [ovs-dev] [PATCH] ofproto: Inline trivial functions.

2014-04-24 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 09:09:03AM -0700, Jarno Rajahalme wrote: > rule_dpif_is_internal is among the top ten OVS internal functions in > recent perf reports. Inline it and some other equally trivial > functions. > > This change removes rule_is_internal(), since the fact that a table is > an inte

[ovs-dev] [PATCH 3/3] daemon: Move some common code to daemon.c

2014-04-24 Thread Gurucharan Shetty
We have some common code between daemon-unix.c and daemon-windows.c. Move them to daemon.c Signed-off-by: Gurucharan Shetty --- lib/daemon-unix.c| 37 +++-- lib/daemon-windows.c | 40 ++-- lib/daemon.c | 33 +++

[ovs-dev] [PATCH 2/3] daemon: Close standard file descriptors after detach for windows.

2014-04-24 Thread Gurucharan Shetty
In the unit tests, we check for some logs stored in stderr. In case of windows, unit tests fail because the child writes additional information into stderr because it does not have it closed. This commit closes standard file descriptors for windows too. Because the functions related to closing fil

[ovs-dev] [PATCH 1/3] daemon: Rename daemon.c as daemon-unix.c

2014-04-24 Thread Gurucharan Shetty
An upcoming commit re-introduces daemon.c to have common functions across daemon-unix.c and daemon-windows.c Signed-off-by: Gurucharan Shetty --- lib/automake.mk |2 +- lib/{daemon.c => daemon-unix.c} |2 +- lib/daemon-windows.c|2 +- 3 files changed, 3 in

[ovs-dev] [PATCH] ofproto: Inline trivial functions.

2014-04-24 Thread Jarno Rajahalme
rule_dpif_is_internal is among the top ten OVS internal functions in recent perf reports. Inline it and some other equally trivial functions. This change removes rule_is_internal(), since the fact that a table is an internal one is defined within ofproto-dpif, not ofproto. Signed-off-by: Jarno R

Re: [ovs-dev] [patch net-next RFC v3 10/10] openvswitch: add support for datapath hardware offload

2014-04-24 Thread John Fastabend
On 4/24/2014 8:46 AM, Jiri Pirko wrote: Thu, Apr 24, 2014 at 04:54:19PM CEST, john.fastab...@gmail.com wrote: On 04/17/2014 05:15 AM, Jiri Pirko wrote: Benefit from the possibility to work with flows in switch devices and use the swdev api to offload flow datapath. Signed-off-by: Jiri Pirko -

Re: [ovs-dev] [patch net-next RFC v3 10/10] openvswitch: add support for datapath hardware offload

2014-04-24 Thread Jiri Pirko
Thu, Apr 24, 2014 at 04:54:19PM CEST, john.fastab...@gmail.com wrote: >On 04/17/2014 05:15 AM, Jiri Pirko wrote: >>Benefit from the possibility to work with flows in switch devices and >>use the swdev api to offload flow datapath. >> >>Signed-off-by: Jiri Pirko >>--- > > >[...] > >> >>@@ -840,13 +

[ovs-dev] Datapath kern log msg key attribute error

2014-04-24 Thread Thomas F Herbert
Hi, I think there is a problem with parsing out the OVS ATTRIBUTE nesting in the NL message in the datapath and I am having trouble finding the cause. I think the nl msg is built up wrong in the case of the vlan push action. I first saw the problem while testing my patch for 802.1ad. However

Re: [ovs-dev] [patch net-next RFC v3 10/10] openvswitch: add support for datapath hardware offload

2014-04-24 Thread John Fastabend
On 04/17/2014 05:15 AM, Jiri Pirko wrote: Benefit from the possibility to work with flows in switch devices and use the swdev api to offload flow datapath. Signed-off-by: Jiri Pirko --- [...] @@ -840,13 +841,15 @@ static int ovs_flow_cmd_new_or_set(struct sk_buff *skb, struct genl_info *

Re: [ovs-dev] [PATCH V4 3/3] bridge: Remove the 'Instant' stats.

2014-04-24 Thread Joe Stringer
There's a few comments inline. On 18 April 2014 08:32, Alex Wang wrote: > This commit removes the 'Instant' stats related logic in bridge.c. > Instead, the corresponding status is updated immediately after the > global connectivity sequence number changes. > Could you update the commit message

Re: [ovs-dev] [PATCH V4 2/3] ofproto-dpif: Use sequence number to wake up main thread for packet-in I/O.

2014-04-24 Thread Joe Stringer
Good to see this as a separate change. Acked-by: Joe Stringer On 18 April 2014 08:32, Alex Wang wrote: > This commit adds per 'struct ofproto_dpif' sequence number for > packet-in I/O. Whenever a packet-in is inserted into the 'pins' > queue, the inserting thread will change the sequence num

Re: [ovs-dev] [PATCH V4 1/3] bfd/cfm: Check status change before update status to database.

2014-04-24 Thread Joe Stringer
Acked-by: Joe Stringer On 18 April 2014 08:32, Alex Wang wrote: > This commit adds boolean flag in bfd/cfm module for checking > status change. If there is no status change, the current > update to OVS database will skip the bfd/cfm session. > > In the experiment with 5K bfd sessions, when on

Re: [ovs-dev] [PATCH v2.56] datapath: Add basic MPLS support to kernel

2014-04-24 Thread YAMAMOTO Takashi
hi, > + * Due to the sample action there may be multiple possible eth types. > + * In order to correctly validate actions all possible types are tracked > + * and verified. This is done using struct eth_types. is there any real-world use cases of these actions inside a sample? otherwise, how abou

[ovs-dev] [PATCH] Modify the check for identfying STP BPDUs to avoid conflicts with IEEE 802.1QBG/LLDP

2014-04-24 Thread Padmanabhan Krishnan
Apart from STP, EVB extension of LLDP as well as IEEE 802.1QBG use the Nearest Customer Bridge (NCB) DMAC which has a value of 0180.c200.. If a flow is programmed for LLDP or QBG packets specifying the NCB DMAC and ethertype, the userspace still drops the frame thinking it's a STP frame. STP BP