Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a bug.

2014-04-25 Thread Alex Wang
On Fri, Apr 25, 2014 at 5:47 PM, Joe Stringer wrote: > Thanks for fixing this, Alex. I think there was a bit of mixup the last > time I rebased. > Np, actually, I will have another patch to add assert (!udpif->handlers && !udpif->revalidators) ___ dev m

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a bug.

2014-04-25 Thread Joe Stringer
Thanks for fixing this, Alex. I think there was a bit of mixup the last time I rebased. On 26 April 2014 07:33, Alex Wang wrote: > Applied, thx a lot, > > Now, let's fix the build (unittest) issue~~~ > > > On Fri, Apr 25, 2014 at 11:31 AM, Gurucharan Shetty wrote: > >> On Fri, Apr 25, 2014 at 1

[ovs-dev] [PATCH v5] datapath: Add support for kernel 3.14.

2014-04-25 Thread Pritesh Kothari
Signed-off-by: Pritesh Kothari --- v5: move skb_clear_rxhash() from compat.h to skbuff.h, simplify skb_get_hash() integration, fix random.h order in acinclude.m4, move pcpu_sw_netstats to netdevice.h. v4: rebase for changes in datapath/actions.c and datapath/vport.c, split patch in

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

2014-04-25 Thread Alex Wang
Acked-by: Alex Wang And applied, On Fri, Apr 25, 2014 at 3:12 PM, Alex Wang wrote: > It is even harder to reproduce the new failure, rarer than the flow-dumps > one. Just ran into this once in my life... > > More importantly, the flow-dumps pkt counts are sync'ed in the failed case. > > Fro

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

2014-04-25 Thread Alex Wang
It is even harder to reproduce the new failure, rarer than the flow-dumps one. Just ran into this once in my life... More importantly, the flow-dumps pkt counts are sync'ed in the failed case. >From my understanding, this new issue, relates to reading stats from netdev-dummy, which is different

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

2014-04-25 Thread thomas.morin
Hi Jesse, 2014-04-25, Jesse Gross: >> Practically speaking, making your layer 3 port code work for >> MPLS-over-GRE is not entirely trivial: >> - on emission, compose_output_action__ pops the Ethernet header before >> push_mpls is called (which is done during commit_odp_actions) ; this >> does not

Re: [ovs-dev] [PATCH v2 7/8] openvswitch.h: Clarify use of key attributes.

2014-04-25 Thread Jesse Gross
On Fri, Apr 11, 2014 at 4:29 PM, Jarno Rajahalme wrote: > Key attributes relating to actual packet headers are ignored for > OVS_PACKET_CMD_EXECUTE as the header key attributes are retrieved > from the packet itself. > > Signed-off-by: Jarno Rajahalme Acked-by: Jesse Gross _

Re: [ovs-dev] [PATCH v2 1/8] openvswitch.h: Note that 64 bit ints are 4-aligned.

2014-04-25 Thread Jesse Gross
On Fri, Apr 11, 2014 at 4:29 PM, Jarno Rajahalme wrote: > In general, all Netlink 64-bit data may be 4-byte aligned, due to > netlink header and attributes being 4-aligned. > > To avoid unaligned access the data should be copied out of the netlink > attribute before access. > > Signed-off-by: Jarn

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

2014-04-25 Thread Jesse Gross
On Thu, Apr 17, 2014 at 2:54 AM, wrote: > Hi Lori, all, > > While I've attempted to adapt the layer 3 port patch to GRE tunneling, > and obtained nice results for IP-over-GRE (as I reported last week), > I've had a harder time reusing this framework for -over-GRE, in > particular for MPLS-over-GR

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

2014-04-25 Thread Pritesh Kothari (pritkoth)
On Apr 25, 2014, at 12:36 PM, Jesse Gross wrote: > On Fri, Apr 25, 2014 at 12:16 PM, Pritesh Kothari (pritkoth) > wrote: >> Hi Jesse, >> diff --git a/datapath/linux/compat/include/linux/etherdevice.h b/datapath/linux/compat/include/linux/etherdevice.h index 556729d..c6e8e

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

2014-04-25 Thread Jesse Gross
On Fri, Apr 25, 2014 at 1:06 AM, YAMAMOTO Takashi wrote: >> 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 >>>

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

2014-04-25 Thread Jesse Gross
Jarno and I just talked and agreed that it's probably finally time to introduce some capabilities attributes. This would allow us to avoid probing altogether and therefore avoid the logging issues. On Fri, Apr 25, 2014 at 11:59 AM, Andy Zhou wrote: > How about we skip logging each unexpected key

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

2014-04-25 Thread Jesse Gross
On Fri, Apr 25, 2014 at 12:16 PM, Pritesh Kothari (pritkoth) wrote: > Hi Jesse, > >>> >>> diff --git a/datapath/linux/compat/include/linux/etherdevice.h >>> b/datapath/linux/compat/include/linux/etherdevice.h >>> index 556729d..c6e8e92 100644 >>> --- a/datapath/linux/compat/include/linux/etherdev

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a bug.

2014-04-25 Thread Alex Wang
Applied, thx a lot, Now, let's fix the build (unittest) issue~~~ On Fri, Apr 25, 2014 at 11:31 AM, Gurucharan Shetty wrote: > On Fri, Apr 25, 2014 at 11:04 AM, Alex Wang wrote: > > Commit 7d170098 (ofproto-dpif-upcall: Remove the flow_dumper thread.) > > initialized the memory barrier inside t

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

2014-04-25 Thread Pritesh Kothari (pritkoth)
Hi Jesse, >> >> diff --git a/datapath/linux/compat/include/linux/etherdevice.h >> b/datapath/linux/compat/include/linux/etherdevice.h >> index 556729d..c6e8e92 100644 >> --- a/datapath/linux/compat/include/linux/etherdevice.h >> +++ b/datapath/linux/compat/include/linux/etherdevice.h >> @@ -34,6

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

2014-04-25 Thread Andy Zhou
How about we skip logging each unexpected key attributes once? We can use a u64 bit fields to keep track the flow key attributes in the kernel module. On Thu, Apr 24, 2014 at 6:30 PM, Jesse Gross wrote: > On Thu, Apr 24, 2014 at 4:30 PM, Jarno Rajahalme > wrote: >> >> On Apr 24, 2014, at 3:32

Re: [ovs-dev] [PATCH 1/2] lacp: Ensure that mutex is initialized when used in lacp_status().

2014-04-25 Thread Andy Zhou
Looks great. Thanks! On Fri, Apr 25, 2014 at 9:56 AM, Ben Pfaff wrote: > If 'lacp' is NULL, then lacp_create() might not have been called to > indirectly initialize the mutex via lacp_init(), so call lacp_init() > from lacp_status(). > > Signed-off-by: Ben Pfaff > Acked-by: Andy Zhou > --- > l

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a bug.

2014-04-25 Thread Gurucharan Shetty
On Fri, Apr 25, 2014 at 11:04 AM, Alex Wang wrote: > Commit 7d170098 (ofproto-dpif-upcall: Remove the flow_dumper thread.) > initialized the memory barrier inside the udpif_start_threads() function. > However, the udpif_start_threads() function does not check the number of > revalidator threads sp

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

2014-04-25 Thread Ben Pfaff
On Fri, Apr 25, 2014 at 01:40:13PM +0900, Simon Horman wrote: > I'd like to clarify the status of this series. > > I believe that as it stands it is ready for review. > And that the dependencies I list above only affect the reliability > of tests added in the last patch of the series: they address

[ovs-dev] Job Vacancies at Atlas Petroleum Ltd

2014-04-25 Thread Louisa Masson
Interested candidates should forward their resumes/CV (Specifying position of interest) with verifiable reference(s) as word attached document to E-Mail: jobcare...@shqiptar.eu Yours SincerelyShqiptar Recruitment Agency___ dev mailing list dev@openvs

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a bug.

2014-04-25 Thread Alex Wang
Commit 7d170098 (ofproto-dpif-upcall: Remove the flow_dumper thread.) initialized the memory barrier inside the udpif_start_threads() function. However, the udpif_start_threads() function does not check the number of revalidator threads specified in udpif. So, when the number is zero, it causes th

[ovs-dev] [PATCH] bridge: Add test that ports that disappear get added back to the datapath.

2014-04-25 Thread Ben Pfaff
The test added in this commit would have caught the bug fixed by commit 96be8de595150 (bridge: When ports disappear from a datapath, add them back.). With that commit reverted, the new test fails. Signed-off-by: Ben Pfaff --- lib/dpif-netdev.c | 61 ---

Re: [ovs-dev] [PATCHv13] ofproto-dpif-upcall: Remove the flow_dumper thread.

2014-04-25 Thread Alex Wang
Found the bug, i introduced it, so sorry, On Fri, Apr 25, 2014 at 9:45 AM, Gurucharan Shetty wrote: > Alex wanted the backtrace: > at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > #1 0x76d13bab in __GI_abort () at abort.c:91 > #2 0x004f08b0 in ovs_abort_valist (err_no=22, >

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

2014-04-25 Thread Ben Pfaff
On Fri, Apr 25, 2014 at 08:50:10AM -0700, Gurucharan Shetty wrote: > On Fri, Apr 25, 2014 at 8:46 AM, Ben Pfaff wrote: > > On Thu, Apr 24, 2014 at 11:27:47PM -0700, Andy Zhou wrote: > >> The logic looks good. 233 unit tests failed now. Apparently this > >> patch is great doing a great job on catc

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

2014-04-25 Thread Ben Pfaff
v1->v2: In patch 1, always initialize the lacp mutex, instead of avoiding the need to initialize it. Ben Pfaff (2): lacp: Ensure that mutex is initialized when used in lacp_status(). ovs-thread: Add checking for mutex and rwlock initialization. lib/lacp.c | 18 +++---

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

2014-04-25 Thread Ben Pfaff
These should have been marked v2. Sorry. On Fri, Apr 25, 2014 at 09:56:22AM -0700, Ben Pfaff wrote: > v1->v2: In patch 1, always initialize the lacp mutex, instead of avoiding >the need to initialize it. > > Ben Pfaff (2): > lacp: Ensure that mutex is initialized when used in lacp_status()

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

2014-04-25 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: Ensure that mutex is initialized when used in lacp_status().

2014-04-25 Thread Ben Pfaff
If 'lacp' is NULL, then lacp_create() might not have been called to indirectly initialize the mutex via lacp_init(), so call lacp_init() from lacp_status(). Signed-off-by: Ben Pfaff Acked-by: Andy Zhou --- lib/lacp.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) d

Re: [ovs-dev] [PATCHv13] ofproto-dpif-upcall: Remove the flow_dumper thread.

2014-04-25 Thread Gurucharan Shetty
Alex wanted the backtrace: at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x76d13bab in __GI_abort () at abort.c:91 #2 0x004f08b0 in ovs_abort_valist (err_no=22, format=0x55714f "%s failed", args=0x7fffdf58) at lib/util.c:306 #3 0x004f0883 in ovs_abort (err_

Re: [ovs-dev] [PATCHv13] ofproto-dpif-upcall: Remove the flow_dumper thread.

2014-04-25 Thread Gurucharan Shetty
With this patch, ovs-vswitchd now crashes with the following error during upgrades. ovs-vswitchd: pthread_barrier_init failed (Invalid argument) ovs-vswitchd: fork child died before signaling startup (killed (Aborted), core dumped) Note that this happens when ovs-vswitchd is started with: other_c

[ovs-dev] [PATCH] ofproto: Inline actions in struct rule_actions.

2014-04-25 Thread Jarno Rajahalme
Allocate struct rule_actions and the space for the actions at once. This reduces one memory indirection and helps reduce cache misses visible in perf annotations. Fix some old comments referring to ref count, since we now use RCU for this. Enforce constness of the actions throughout the code. Si

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

2014-04-25 Thread Gurucharan Shetty
On Fri, Apr 25, 2014 at 8:46 AM, Ben Pfaff wrote: > On Thu, Apr 24, 2014 at 11:27:47PM -0700, Andy Zhou wrote: >> 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 fix

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

2014-04-25 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 11:27:47PM -0700, Andy Zhou wrote: > 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: I did my testing with one of Guru

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

2014-04-25 Thread Ben Pfaff
On Thu, Apr 24, 2014 at 11:03:16PM -0700, Andy Zhou wrote: > 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 s

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

2014-04-25 Thread Alex Wang
found this in the morning, will keep investigating, ./learn.at:362: (ovs-ofctl dump-ports br0 2; ovs-ofctl dump-ports br0 3) | sed 's/ (xid=0x[0-9a-fA-F]*)//' --- - 2014-04-25 01:25:43.022048477 -0700 +++ /root/openvswitch/tests/testsuite.dir/at-groups/328/stdout 2014-04-25 01:25:43.01771189

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

2014-04-25 Thread thomas.morin
Hi Jesse, (inlined below) Jesse Gross : >> >> In general, I think it would be a good idea for the flow key to >> have >> a >> field >> specifying the layer 3 protocol, when an ethernet header is not >> present. > > That makes

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

2014-04-25 Thread Lori Jakab
On 4/25/14, 5:19 AM, Jesse Gross wrote: +noethernet: if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, output->eth.type)) goto nla_put_failure; Does it still make sense to send the EtherType? It's not present in the packet and I believe that the information is contain

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

2014-04-25 Thread YAMAMOTO Takashi
> 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. >> >

Re: [ovs-dev] [PATCH v3 07/16] ofproto-dpif: Bonding with in_port that isn't present in the datapath

2014-04-25 Thread Andy Zhou
Simon, I thought this test exposed a bug that is fixed with this patch series. However, when I apply this patch alone against current master, it passed fine. (I tried many times). So I must misunderstand the intention of the test, or why current master failed to address packet out. Would you p