Re: [ovs-dev] [PATCH] socket-util-unix: Fix umask race in bind_unix_socket().

2014-08-08 Thread YAMAMOTO Takashi
t know any >> other general solution. I tested the workaround only on Linux. >> >> CC: YAMAMOTO Takashi >> Signed-off-by: Ben Pfaff > > I'd appreciate a review of this. sorry for being irresponsive. the patch you pushed seems good to me. YAMAMOTO Takash

Re: [ovs-dev] [PATCH] datapath: Avoid using stack larger than 1024.

2014-08-08 Thread YAMAMOTO Takashi
datapath.o > /home/jesse/openvswitch/datapath/linux/datapath.c: In function > ‘ovs_flow_cmd_set’: can you avoid non-ascii chars in commit messages? thank you. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ofproto-dpif-xlate: Suppress some warnings on non-Linux OSes

2014-09-15 Thread YAMAMOTO Takashi
These warnings were introduced by commit 7d031d7e511aeea8dd45348922fe8e3bbdd2956e ("ofproto-dpif-xlate: Work around Linux netdev_max_backlog limit.") and found by --enable-Werror build on NetBSD. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-xlate.c | 4 +++- 1 file

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

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

[ovs-dev] [PATCH 2/4] ovsdb-server.at: Fix races

2016-05-17 Thread YAMAMOTO Takashi
As ovsdb-server creates pid file before unixctl socket, waiting for pid file creation is not enough. Fix the race by retrying with "version" command before assuming the server is up. Signed-off-by: YAMAMOTO Takashi --- tests/ovsdb-server.at | 4 1 file changed, 4 insertions(+)

[ovs-dev] [PATCH 1/4] dpif: Remove a warning

2016-05-17 Thread YAMAMOTO Takashi
ic warning. But currently it doesn't make much sense as dp_unregister_provider is only used for --enabled-dummy. Signed-off-by: YAMAMOTO Takashi --- lib/dpif.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/dpif.c b/lib/dpif.c index 5037ac6..2abd1e2 100644 --- a/lib/dpif.c +++ b/

[ovs-dev] [PATCH 3/4] ovn-controller-vtep.at: Pre-sort output before feeding to "sort -d"

2016-05-17 Thread YAMAMOTO Takashi
NetBSD's "sort -d" preserves the order of lines which doesn't have alphanumeric and blanks. eg. empty lines and []. It means it sometimes preserve unstable order of the list output. Also, simply remove -d option where the expected output doesn't include []. Signed

[ovs-dev] [PATCH 4/4] utilities: Tweak python shebangs to use env

2016-05-17 Thread YAMAMOTO Takashi
) Workaround the issue by using env command for shebangs for these scripts. Noticed with the recent tunnel-push-pop.at tests using ovs-pcap command. Signed-off-by: YAMAMOTO Takashi --- utilities/ovs-check-dead-ifs.in | 2 +- utilities/ovs-dpctl-top.in | 2 +- utilities/ovs-l3ping.in

[ovs-dev] [PATCH] netdev-native-tnl: Fix a build error on NetBSD 7.0

2016-05-19 Thread YAMAMOTO Takashi
netinet/ip6.h is not a standalone header there. Signed-off-by: YAMAMOTO Takashi --- lib/netdev-native-tnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netdev-native-tnl.c b/lib/netdev-native-tnl.c index 2e181f2..123f3b2 100644 --- a/lib/netdev-native-tnl.c +++ b/lib/netdev-native

[ovs-dev] [PATCH] ovs-numa: Fix a compilation error

2016-06-07 Thread YAMAMOTO Takashi
Fix the following error on NetBSD 7.0. ../lib/ovs-numa.c: In function 'ovs_numa_set_cpu_mask': ../lib/ovs-numa.c:555:9: error: array subscript has type 'char' [-Werror=char-subscripts] Signed-off-by: YAMAMOTO Takashi --- lib/ovs-numa.c | 2 +- 1 file change

[ovs-dev] [PATCH] ovn.at: Use = instead of == for test

2016-07-05 Thread YAMAMOTO Takashi
== is a GNU extension which might not be available. Signed-off-by: YAMAMOTO Takashi --- tests/ovn.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index feb68d3..3436417 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -839,7 +839,7 @@ for is

[ovs-dev] [PATCH 4/4] ofproto/trace: Fix "unchanged" output for Final flow

2016-03-18 Thread YAMAMOTO Takashi
Clear actset_output so that it can be compared via flow_equal. Note: trace->key has actset_output == 0. Found by OVS flow tests under development for Neutron. [1] [1] https://review.openstack.org/#/c/235155/10/neutron/tests/functional/agent/test_ovs_flows.py@399 Signed-off-by: YAMAMOTO Taka

[ovs-dev] [PATCH 1/4] INSTALL.NetBSD.md: Update for six

2016-03-19 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- INSTALL.NetBSD.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/INSTALL.NetBSD.md b/INSTALL.NetBSD.md index 1c571cf..5a1f703 100644 --- a/INSTALL.NetBSD.md +++ b/INSTALL.NetBSD.md @@ -8,6 +8,7 @@ In that case, you need at least the

[ovs-dev] [PATCH 3/4] vlog.at: Avoid using GNU sed extension

2016-03-19 Thread YAMAMOTO Takashi
. The matching process tries each alternative in turn, from left to right, and the first one that succeeds is used. It is a GNU extension. Signed-off-by: YAMAMOTO Takashi --- tests/vlog.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vlog.at b/

[ovs-dev] [PATCH 2/4] ovs_strerror, ovs_format_message: Always use "Success" for errno 0

2016-03-19 Thread YAMAMOTO Takashi
So that testsuite can compare log messages including the string. Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 20 tests/ofproto-macros.at | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/util.c b/lib/util.c index f06dee5..36abeed

[ovs-dev] [PATCH 2/3] ovn.at: Avoid using "printf -v"

2016-10-18 Thread YAMAMOTO Takashi
It seems like a non-portable bash extension. Signed-off-by: YAMAMOTO Takashi --- tests/ovn.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index caf9f98..da0291f 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -3618,8 +3618,8 @@ test_dhcp

[ovs-dev] [PATCH 3/3] ovn-controller.at: Stop hardcoding a list of iface types

2016-10-18 Thread YAMAMOTO Takashi
The list of supported iface types hardcoded in the test is wrong on NetBSD. (or any userland-only ports I guess) Instead of adding another case for NetBSD following WIN32, just get the list from ovsdb. Signed-off-by: YAMAMOTO Takashi --- tests/ovn-controller.at | 8 +--- 1 file changed, 1

[ovs-dev] [PATCH 1/3] Fix parent_pid on NetBSD

2016-10-18 Thread YAMAMOTO Takashi
Fix recently introduced parent_pid macro on NetBSD 7.0. On NetBSD, procfs status file looks like the following. n7% cat /proc/$$/status zsh 18509 12970 18509 18509 5,8 ctty,sldr 1476344459,639266 0,15575 0,15575 pause 1000 100,100,0 n7% Signed-off-by: YAMAMOTO Takashi --- tests

Re: [ovs-dev] [PATCH 08/11] netdev: Initialize netdev_class_mutex.

2014-04-19 Thread YAMAMOTO Takashi
> ovsdb-server on windows crashes without it. > > Signed-off-by: Gurucharan Shetty why is it necessary on windows? YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Don't use stack garbage

2014-04-19 Thread YAMAMOTO Takashi
applied, thanks. > Acked-by: Jarno Rajahalme > > On Apr 17, 2014, at 7:19 PM, YAMAMOTO Takashi wrote: > >> Catched by "learning action - self-modifying flow with hard_timeout" >> test case. >> >> The bug introduced by commit b256dc52. >>

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Don't use stack garbage

2014-04-19 Thread YAMAMOTO Takashi
> Thanks for catching this. It is also used later on to set xin.may_learn, > does that matter too? yes, it matters too. YAMAMOTO Takashi > > > On 19 April 2014 03:22, Jarno Rajahalme wrote: > >> Acked-by: Jarno Rajahalme >> >> On Apr 17, 2014, at

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

2014-04-20 Thread YAMAMOTO Takashi
> +hash = mhash_finish(hash, 13); /* No need to match byte length here. > */ is it worth being special? YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-04-20 Thread YAMAMOTO Takashi
do these inlining yield measurable improvements? YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

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

2014-04-21 Thread YAMAMOTO Takashi
> > On Apr 20, 2014, at 7:49 PM, YAMAMOTO Takashi wrote: > >>> +hash = mhash_finish(hash, 13); /* No need to match byte length >>> here. */ >> >> is it worth being special? >> > > I知 not exactly sure what you ask here, but in gene

[ovs-dev] [PATCH] hmap_random_node: Improve distribution

2014-04-21 Thread YAMAMOTO Takashi
Improve random distribution for an hmap with a small number of nodes with the expense of the increased cpu cost. It would be a fair trade-off because the situation is rather common for bond, which is currently the only consumer of this API in tree. Signed-off-by: YAMAMOTO Takashi --- lib/hmap.c

Re: [ovs-dev] [PATCH] hmap_random_node: Improve distribution

2014-04-22 Thread YAMAMOTO Takashi
> On Tue, Apr 22, 2014 at 01:47:32PM +0900, YAMAMOTO Takashi wrote: >> Improve random distribution for an hmap with a small number of nodes >> with the expense of the increased cpu cost. >> It would be a fair trade-off because the situation is rather common >> for bond,

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

2014-04-24 Thread YAMAMOTO Takashi
wise, how about just rejecting such combinations? it doesn't seem to worth the code complexity to me. (sorry if it has been already discussed. it's the first time for me to seriously read this long-lived patch.) YAMAMOTO Takashi ___ d

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 ver

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

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

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

2014-04-27 Thread YAMAMOTO Takashi
the commands that check for > creation/termination of threads to wait until they see the messages > instead. > > Signed-off-by: Joe Stringer Reviewed-by: YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v4] ofproto: per-table statistics

2014-04-29 Thread YAMAMOTO Takashi
r.py match checks >> to pass. > > I'm not sure that atomic_uint64 is portable to all platforms (notably I > think some 32-bit platforms don't have atomic 64-bit ints). I'd feel > more comfortable using atomic_ulong. this is not the first use of them. cf. udpif::n_flo

Re: [ovs-dev] [PATCH] Enable OpenFlow 1.0, 1.1, 1.2, and 1.3 by default.

2014-04-29 Thread YAMAMOTO Takashi
.3 enables OpenFlow 1.0, 1.1, 1.2, and 1.3 by default > + in ovs-vswitchd. In Open vSwitch 1.10 through 2.2, OpenFlow 1.1, > + 1.2, and 1.3 must be enabled manually. The following command > + enables OpenFlow 1.0, 1.1, 1.2, and 1.3 on bridge br0: > >

[ovs-dev] [PATCH] ofproto-dpif-xlate: Fix in_port=controller case for NORMAL action

2014-04-29 Thread YAMAMOTO Takashi
The problem mentioned by Simon Horman in the following mail. http://openvswitch.org/pipermail/dev/2014-April/039492.html Cc: Simon Horman Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-xlate.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix in_port=controller case for NORMAL action

2014-04-30 Thread YAMAMOTO Takashi
> On Wed, Apr 30, 2014 at 10:24:46AM +0900, YAMAMOTO Takashi wrote: >> The problem mentioned by Simon Horman in the following mail. >> http://openvswitch.org/pipermail/dev/2014-April/039492.html >> >> Cc: Simon Horman >> Signed-off-by: YAMAMOTO Takashi > >

Re: [ovs-dev] [PACKET_OUT v2] ofproto-dpif: treat non-datapath ports as local port for OFPT_PACKET_OUT

2014-05-01 Thread YAMAMOTO Takashi
as (ofproto, ofp port) and thus can be used even when odp port is not available? if a translation detects the condition (ie. recirculation is necessary but in_port does not have the corresponding odp port), it can use the userspace variant with SLOW_ACTION instead of normal RECIRC. YAMAMOTO Takas

Re: [ovs-dev] [PATCH/RFC] ofproto-dpif: Make bonding balance test more robust

2014-05-01 Thread YAMAMOTO Takashi
> It is my observation that when sending 91 packets to a mode=balance > bond interface with three underlying ports in some cases not all ports > receive at least 7 packets. This causes the test to fail. was it with or without commit e58f91a1? YAMAMOTO Takashi > > It may

Re: [ovs-dev] [PACKET_OUT v2] ofproto-dpif: treat non-datapath ports as local port for OFPT_PACKET_OUT

2014-05-01 Thread YAMAMOTO Takashi
> On Wed, Apr 30, 2014 at 11:59 PM, YAMAMOTO Takashi > wrote: >>>> Something like this (I have not tested either scenario): >>>> >>>> I think this will fail to match but that may not be obvious to users: >>>> packet_out: in_port=CONTROL

Re: [ovs-dev] [PATCH 1/3] netdev: Reuse netdev_ref() in netdev_rxq_open().

2014-05-01 Thread YAMAMOTO Takashi
> netdev_rxq_open() open-codes much of netdev_ref(), so re-use that > function instead. > > Signed-off-by: Joe Stringer Reviewed-by: YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/3] netdev: Safely increment refcount in netdev_open().

2014-05-01 Thread YAMAMOTO Takashi
> netdev_open() would previously increment a netdev's refcount without > holding a lock for it. This commit shifts the locking to protect it. > > Found by inspection. > > Signed-off-by: Joe Stringer Reviewed-by: YAMAMOTO Takashi _

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix in_port=controller case for NORMAL action

2014-05-01 Thread YAMAMOTO Takashi
> On Thu, May 01, 2014 at 03:54:22PM +0900, YAMAMOTO Takashi wrote: >> > On Wed, Apr 30, 2014 at 10:24:46AM +0900, YAMAMOTO Takashi wrote: >> >> The problem mentioned by Simon Horman in the following mail. >> >> http://openvswitch.org/pipermail/dev/2014-Apri

[ovs-dev] [PATCH 3/3] ovs-vswitchd.at: Avoid using GNU sed extensions

2014-05-02 Thread YAMAMOTO Takashi
Introduced by commit 12eb035b. ("bridge: Allow users to configure statistics update to OVSDB.") Cc: Alex Wang Signed-off-by: YAMAMOTO Takashi --- tests/ovs-vswitchd.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ovs-vswitchd.at b/tests/ovs-vswitch

[ovs-dev] [PATCH 2/3] ovs-vswitchd.at: Fix a comment typo

2014-05-02 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tests/ovs-vswitchd.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ovs-vswitchd.at b/tests/ovs-vswitchd.at index a90477d..9f9721b 100644 --- a/tests/ovs-vswitchd.at +++ b/tests/ovs-vswitchd.at @@ -39,7 +39,7 @@ AT_SETUP([ovs

[ovs-dev] [PATCH 1/3] bridge: Fix a NULL dereference

2014-05-02 Thread YAMAMOTO Takashi
Introduced by commit 12eb035b. ("bridge: Allow users to configure statistics update to OVSDB.") Cc: Alex Wang Signed-off-by: YAMAMOTO Takashi --- vswitchd/bridge.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c ind

[ovs-dev] [PATCH 3/3] route-table-bsd: Remove unused vlog definition

2014-05-02 Thread YAMAMOTO Takashi
e *const THIS_MODULE = &VLM_##MODULE Signed-off-by: YAMAMOTO Takashi --- lib/route-table-bsd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/route-table-bsd.c b/lib/route-table-bsd.c index d02c76f..f14fea0 100644 --- a/lib/route-table-bsd.c +++ b/lib/route-table-bsd.c @@

[ovs-dev] [PATCH 1/3] netdev-bsd: Sprinkle ALIGNED_CAST where appropriate

2014-05-02 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index ef1e649..8291182 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -548,7 +548,7 @@ struct pcap_arg { static void

[ovs-dev] [PATCH 2/3] route-table-bsd: Sprinkle ALIGNED_CAST where appropriate

2014-05-02 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/route-table-bsd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/route-table-bsd.c b/lib/route-table-bsd.c index 4cdf2ac..d02c76f 100644 --- a/lib/route-table-bsd.c +++ b/lib/route-table-bsd.c @@ -29,6 +29,7 @@ #include

[ovs-dev] [PATCH] FAQ: Add an entry about local ports

2014-05-02 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- FAQ | 6 ++ 1 file changed, 6 insertions(+) diff --git a/FAQ b/FAQ index 86b48a2..519060a 100644 --- a/FAQ +++ b/FAQ @@ -431,6 +431,12 @@ A: First, why do you want to do this? Two connected bridges are not ports will not work with the userspace

[ovs-dev] [PATCH 1/4] util: Disallow zero-sized xmalloc_cacheline

2014-05-02 Thread YAMAMOTO Takashi
xmalloc_cacheline API is relatively new. It's better not to inherit the kludge from xmalloc. This kind of kludge rather hurts these days. Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.c b/lib/util.c index 1ebe22a..464d730 1

[ovs-dev] [PATCH 3/4] configure.ac: Check posix_memalign

2014-05-02 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 9672cb0..16bc6a6 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,7 @@ OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE(8) OVS_CHECK_POSIX_AIO

[ovs-dev] [PATCH 4/4] util: Use posix_memalign for xmalloc_cacheline if available

2014-05-02 Thread YAMAMOTO Takashi
A malloc library is expected to provide a better implementation using the knowledge of its internal details. Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 17 + 1 file changed, 17 insertions(+) diff --git a/lib/util.c b/lib/util.c index 464d730..37d2ba0 100644 --- a/lib

[ovs-dev] [PATCH 2/4] Add ax_func_posix_memalign.m4

2014-05-02 Thread YAMAMOTO Takashi
This file was obtained from: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_func_posix_memalign.m4 Signed-off-by: YAMAMOTO Takashi --- m4/ax_func_posix_memalign.m4 | 50 1 file changed, 50 insertions(+) create mode

Re: [ovs-dev] [PATCH 1/4] util: Disallow zero-sized xmalloc_cacheline

2014-05-04 Thread YAMAMOTO Takashi
> On Sat, May 03, 2014 at 09:01:01AM +0900, YAMAMOTO Takashi wrote: >> xmalloc_cacheline API is relatively new. It's better >> not to inherit the kludge from xmalloc. This kind of >> kludge rather hurts these days. >> >> Signed-off-by: YAMAMOTO Takashi &

[ovs-dev] [PATCH] util: Use posix_memalign for xmalloc_cacheline if available

2014-05-04 Thread YAMAMOTO Takashi
A malloc library is expected to provide a better implementation using the knowledge of its internal details. ax_func_posix_memalign.m4 was obtained from: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_func_posix_memalign.m4 Signed-off-by: YAMAMOTO Takashi

[ovs-dev] [PATCH] Use posix_memalign if possible

2014-05-04 Thread YAMAMOTO Takashi
changes from the previous: - drop the controversial part (size=0 case behaviour) - squash patches YAMAMOTO Takashi (1): util: Use posix_memalign for xmalloc_cacheline if available configure.ac | 1 + lib/util.c | 16 ++ m4

[ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-04 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- FAQ | 13 + 1 file changed, 13 insertions(+) diff --git a/FAQ b/FAQ index fc21af4..716c1de 100644 --- a/FAQ +++ b/FAQ @@ -676,6 +676,19 @@ A: On Linux kernels before 3.11, the OVS GRE module and Linux GRE module can then reload the OVS module

[ovs-dev] [PATCH 1/2] FAQ: Expand tabs

2014-05-04 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- FAQ | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/FAQ b/FAQ index 519060a..fc21af4 100644 --- a/FAQ +++ b/FAQ @@ -275,8 +275,8 @@ A: The following commands configure br0 with eth0 and tap0 as trunk

Re: [ovs-dev] [PATCH 3/3] ovs-vswitchd.at: Avoid using GNU sed extensions

2014-05-04 Thread YAMAMOTO Takashi
applied to master and 2.2, thanks. YAMAMOTO Takashi > Thanks a lot for the fix, YAMAMOTO, > > @@ > > Just reminder, this also requires backport to branch-2.2. > > > On Fri, May 2, 2014 at 4:49 PM, Ben Pfaff wrote: > >> On Sat, May 03, 2014 at 08:10:0

Re: [ovs-dev] [PATCH] FAQ: Add an entry about local ports

2014-05-04 Thread YAMAMOTO Takashi
> On Sat, May 03, 2014 at 08:13:20AM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > Acked-by: Ben Pfaff applied, thanks. YAMAMOTO Takashi > ___ > dev mailing list > dev@openvswitch.org > htt

Re: [ovs-dev] [PATCH 1/3] netdev-bsd: Sprinkle ALIGNED_CAST where appropriate

2014-05-04 Thread YAMAMOTO Takashi
> On Sat, May 03, 2014 at 08:12:01AM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > Acked-by: Ben Pfaff applied, thanks. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH-branch-2.1] netdev: Safely increment refcount in netdev_open().

2014-05-04 Thread YAMAMOTO Takashi
> netdev_open() would previously increment a netdev's refcount without > holding a lock for it. This commit shifts the locking to protect it. > > Found by inspection. > > Signed-off-by: Joe Stringer Acked-by: YAMAMOTO Takashi > --- > lib/netdev.c |

[ovs-dev] [PATCH] Fix dot2pic make dependencies

2014-05-04 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- vswitchd/automake.mk | 2 +- vtep/automake.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index c45d01d..c445302 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -30,7

Re: [ovs-dev] [PATCH] Fix dot2pic make dependencies

2014-05-05 Thread YAMAMOTO Takashi
> On Mon, May 05, 2014 at 09:39:02AM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > I'm surprised it makes any difference. i occasionally see the failure with make -j32. YAMAMOTO Takashi > > Acked-by: Ben Pfaff _

Re: [ovs-dev] [PATCH 1/4] util: Disallow zero-sized xmalloc_cacheline

2014-05-05 Thread YAMAMOTO Takashi
> On Mon, May 05, 2014 at 08:32:34AM +0900, YAMAMOTO Takashi wrote: >> > On Sat, May 03, 2014 at 09:01:01AM +0900, YAMAMOTO Takashi wrote: >> >> xmalloc_cacheline API is relatively new. It's better >> >> not to inherit the kludge from xmalloc. This kin

Re: [ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-05 Thread YAMAMOTO Takashi
> On Mon, May 05, 2014 at 09:13:53AM +0900, YAMAMOTO Takashi wrote: >> +Q: Open vSwitch does not seem to obey my packet filter rules. >> + >> +A: It's by design. Open vSwitch interacts with packets at a lower layer >> + than typical packet-filter implementations

Re: [ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-06 Thread YAMAMOTO Takashi
> On Tue, May 06, 2014 at 09:02:06AM +0900, YAMAMOTO Takashi wrote: >> > On Mon, May 05, 2014 at 09:13:53AM +0900, YAMAMOTO Takashi wrote: >> >> +Q: Open vSwitch does not seem to obey my packet filter rules. >> >> + >> >> +A: It's by design.

Re: [ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-06 Thread YAMAMOTO Takashi
> On Wed, May 07, 2014 at 08:09:08AM +0900, YAMAMOTO Takashi wrote: >> > On Tue, May 06, 2014 at 09:02:06AM +0900, YAMAMOTO Takashi wrote: >> >> > On Mon, May 05, 2014 at 09:13:53AM +0900, YAMAMOTO Takashi wrote: >> >> >> +Q: Open vSwitch

Re: [ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-06 Thread YAMAMOTO Takashi
thanks for explanation. > Will you push this, then? i will push it later, with your co-authored-by. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] FAQ: Mention packet filter incompatibility

2014-05-06 Thread YAMAMOTO Takashi
g the" > >> you want to use ebtables rules.) On NetBSD, you might want to >> consider to use bridge(4) with BRIDGE_IPF option. > > Same with this "to use". (The one right above it is fine.) > > --Justin thank you. i'll incorporate. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] Fix dot2pic make dependencies

2014-05-06 Thread YAMAMOTO Takashi
>> On Mon, May 05, 2014 at 09:39:02AM +0900, YAMAMOTO Takashi wrote: >>> Signed-off-by: YAMAMOTO Takashi >> >> I'm surprised it makes any difference. > > i occasionally see the failure with make -j32. > > YAMAMOTO Takashi > >> >> A

Re: [ovs-dev] [PATCH] util: Use posix_memalign for xmalloc_cacheline if available

2014-05-06 Thread YAMAMOTO Takashi
> On Mon, May 05, 2014 at 08:33:37AM +0900, YAMAMOTO Takashi wrote: >> A malloc library is expected to provide a better implementation >> using the knowledge of its internal details. >> >> ax_func_posix_memalign.m4 was obtained from: >> http://git.savannah.gnu.org

[ovs-dev] [PATCH] FAQ: Mention packet filter incompatibility

2014-05-06 Thread YAMAMOTO Takashi
Co-authored-by: Ben Pfaff Signed-off-by: YAMAMOTO Takashi --- FAQ | 30 ++ 1 file changed, 30 insertions(+) diff --git a/FAQ b/FAQ index fc21af4..d3632f9 100644 --- a/FAQ +++ b/FAQ @@ -676,6 +676,36 @@ A: On Linux kernels before 3.11, the OVS GRE module and Linux

Re: [ovs-dev] PATCH 1/1 : netdev-dpdk / add dpdk rings to netdev-dpdk

2014-05-06 Thread YAMAMOTO Takashi
> This patch enables the client dpdk rings within the netdev-dpdk. It adds > a new dpdk device called dpdkr (other naming suggestions?). how about dpdkring? YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/m

Re: [ovs-dev] [PATCH 2/2] bond: fix dead lock bug

2014-05-06 Thread YAMAMOTO Takashi
> The bug fixed by the last patch exposes this one. > > Signed-off-by: Andy Zhou Reviewed-by: YAMAMOTO Takashi > --- > ofproto/bond.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/ofproto/bond.c b/ofproto/bond.c > index c522ea3..803

Re: [ovs-dev] [PATCH 1/2] bond: fix a bug that disabled bond stats collection

2014-05-06 Thread YAMAMOTO Takashi
> Bug #1229225 > > Signed-off-by: Andy Zhou Reviewed-by: YAMAMOTO Takashi > --- > ofproto/bond.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ofproto/bond.c b/ofproto/bond.c > index c1a8448..c522ea3 100644 > --- a/ofproto/bond.c >

Re: [ovs-dev] [PATCH] bond: raise minimal bond distribution per interface

2014-05-07 Thread YAMAMOTO Takashi
> Yamamoto san, would you please take a look? i'll take a look later. YAMAMOTO Takashi > > On Wed, May 7, 2014 at 11:10 AM, Ben Pfaff wrote: >> On Tue, May 06, 2014 at 10:46:45PM -0700, Andy Zhou wrote: >>> Raise the minimal per interface packet distribution f

Re: [ovs-dev] [PATCH] FAQ: Mention packet filter incompatibility

2014-05-07 Thread YAMAMOTO Takashi
> Acked-by: Pritesh Kothari thanks. applied. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] bond: raise minimal bond distribution per interface

2014-05-07 Thread YAMAMOTO Takashi
the > whole number of 24. the patch itself looks ok (thus acked-by) but i have a question on the commit message. why can the average number be larger than the expected number? the total number of packets for a run is expected to be exactly 256, isn't it? Acked-by: YAMAMOTO Takashi Te

Re: [ovs-dev] [PATCH] bond: raise minimal bond distribution per interface

2014-05-07 Thread YAMAMOTO Takashi
n that case, packet distribution would be 1:1:2. your value is safe enough for the distribution. YAMAMOTO Takashi > > On Wed, May 7, 2014 at 6:18 PM, YAMAMOTO Takashi > wrote: >>> Raise the minimal per interface packet distribution from 7 to 24. >>> >>> With 25

Re: [ovs-dev] [PATCH] bond: raise minimal bond distribution per interface

2014-05-07 Thread YAMAMOTO Takashi
> On Wed, May 7, 2014 at 7:01 PM, YAMAMOTO Takashi > wrote: >>> Sorry I was not clear in the commit message. It is the average of the >>> first interface. I will make it clear before pushing. >> >> thanks for clarification. >> i think the average is n

[ovs-dev] [PATCH 3/3] dot2pic: Stop assuming the path of the interpreter

2014-05-07 Thread YAMAMOTO Takashi
On NetBSD, perl is usually installed as /usr/pkg/bin/perl. Signed-off-by: YAMAMOTO Takashi --- vswitchd/automake.mk | 2 +- vtep/automake.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index b75322f..fd291ef 100644 --- a

[ovs-dev] [PATCH 1/3] Revert commit 74622b44b ("Fix dot2pic make dependencies")

2014-05-07 Thread YAMAMOTO Takashi
It turned out to be non-problem. Signed-off-by: YAMAMOTO Takashi --- vswitchd/automake.mk | 2 +- vtep/automake.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index c445302..c45d01d 100644 --- a/vswitchd/automake.mk

[ovs-dev] [PATCH 2/3] dot2pic: Use "> $@; mv $@.tmp $@" notation to make this reliably fail

2014-05-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- vswitchd/automake.mk | 3 ++- vtep/automake.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vswitchd/automake.mk b/vswitchd/automake.mk index c45d01d..b75322f 100644 --- a/vswitchd/automake.mk +++ b/vswitchd/automake.mk @@ -31,7

Re: [ovs-dev] [PATCH] bond: raise minimal bond distribution per interface

2014-05-07 Thread YAMAMOTO Takashi
hould we simply do "random_uin32() % #slaves", instead of > hmap_random_node(), so that we can avoid your 2nd case? it sounds like an improvement, yes. (if there's a handy array of slaves.) YAMAMOTO Takashi > > On Wed, May 7, 2014 at 8:07 PM, YAMAMOTO Takashi > wrote:

Re: [ovs-dev] [PATCH] Makefiles: Fix invocation of dot2pic when builddir != srcdir.

2014-05-08 Thread YAMAMOTO Takashi
sorry, i didn't know builddir can be different from srcdir. > CC: YAMAMOTO Takashi > Signed-off-by: Ben Pfaff > --- > vswitchd/automake.mk | 2 +- > vtep/automake.mk | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/vswitchd/autom

Re: [ovs-dev] [PATCH v2] Makefiles: Fix invocation of dot2pic when builddir != srcdir.

2014-05-08 Thread YAMAMOTO Takashi
> CC: YAMAMOTO Takashi > Signed-off-by: Ben Pfaff thanks! Reviewed-by: YAMAMOTO Takashi > --- > v1->v2: Add missing slash. > > vswitchd/automake.mk | 2 +- > vtep/automake.mk | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [ovs-dev] [PATCH] Makefiles: Fix invocation of dot2pic when builddir != srcdir.

2014-05-08 Thread YAMAMOTO Takashi
> On Fri, May 09, 2014 at 01:26:03PM +0900, YAMAMOTO Takashi wrote: >> sorry, i didn't know builddir can be different from srcdir. > > I guess not everyone builds that way but I like to have multiple > builddirs so that I can easily do both Clang and GCC builds off a single

[ovs-dev] [PATCH 1/2] acinclude.m4: Expand tabs

2014-05-09 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- acinclude.m4 | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index e8a8a2e..104d4e4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -35,8 +35,8 @@ AC_DEFUN

[ovs-dev] [PATCH 2/2] acinclude.m4: Fix a typo in a help message

2014-05-09 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- acinclude.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index 104d4e4..230c033 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -163,7 +163,7 @@ dnl Configure DPDK source tree AC_DEFUN([OVS_CHECK_DPDK

Re: [ovs-dev] [PATCH] INSTALL: Describe how to use a separate build directory.

2014-05-09 Thread YAMAMOTO Takashi
> Looks good. Thanks! > > Acked-by: Andy Zhou Acked-by: YAMAMOTO Takashi btw, --enable-Werror CC=clang doesn't work. (clang complains about -g for linking) is it only for me? a workaround is LDFLAGS=-Qunused-argument. YAMAMOTO Takashi > > > > On Fri, May 9,

Re: [ovs-dev] [PATCH 1/2] acinclude.m4: Expand tabs

2014-05-09 Thread YAMAMOTO Takashi
> On Fri, May 09, 2014 at 07:51:05PM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > Acked-by: Ben Pfaff thank you. applied both. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswi

[ovs-dev] [PATCH 2/7] ofproto-dpif.at: Use OVS_APP_EXIT_AND_WAIT where appropriate

2014-05-12 Thread YAMAMOTO Takashi
Leftover of commit 0c473314. ("ofproto-dpif.at: Wait for the monitor's pidfile disappears where necessary") Signed-off-by: YAMAMOTO Takashi --- tests/ofproto-dpif.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.a

[ovs-dev] [PATCH 4/7] ofproto-dpif: Whitespace fixes

2014-05-12 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index e50b4fe..926f3d6 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1241,13 +1241,13

[ovs-dev] [PATCH 0/7] repost of trivial patches

2014-05-12 Thread YAMAMOTO Takashi
this is a repost of trivial patches which failed to get reviewed in a few weeks but still are valid. what's the recommended procedure for unreviewed patches? - drop - push (i suspect this is the right thing to do for trivial ones like these) - repost (this is what i'm doing) YAMAMO

[ovs-dev] [PATCH 6/7] ofproto-dpif.h: Fix a comment

2014-05-12 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h index d4ad624..679a41e 100644 --- a/ofproto/ofproto-dpif.h +++ b/ofproto/ofproto-dpif.h @@ -81,8 +81,8 @@ extern

[ovs-dev] [PATCH 3/7] ofproto-dpif.at: Fix races in dpif/dump-flows test

2014-05-12 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tests/ofproto-dpif.at | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 14293a5..84453d8 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -3677,15 +3677,17

[ovs-dev] [PATCH 7/7] ofproto-dpif.at: Fix a race in "ofproto-dpif - patch ports" test

2014-05-12 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tests/ofproto-dpif.at | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 84453d8..4dcaf63 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -3817,6 +3817,7 @@ done AT_CHECK([ovs-appctl time

[ovs-dev] [PATCH 5/7] dpif-netdev: Remove unused members

2014-05-12 Thread YAMAMOTO Takashi
Simplify code and update comments after commit 61e7deb1. ("dpif-netdev: Use RCU to protect data.") Signed-off-by: YAMAMOTO Takashi --- lib/dpif-netdev.c | 37 - 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/lib/dpif-netdev.c

[ovs-dev] [PATCH 1/7] ofproto-dpif.at: Fix some races

2014-05-12 Thread YAMAMOTO Takashi
These races were exposed on my environment by commit c2a77f33. ("tests/ofproto-dpif: Use vlog to test dpif behaviour.") Signed-off-by: YAMAMOTO Takashi --- tests/ofproto-dpif.at | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/ofproto-dpif.

Re: [ovs-dev] [PATCH 1/7] ofproto-dpif.at: Fix some races

2014-05-12 Thread YAMAMOTO Takashi
> On Mon, May 12, 2014 at 11:49:03PM +0900, YAMAMOTO Takashi wrote: >> These races were exposed on my environment by commit c2a77f33. >> ("tests/ofproto-dpif: Use vlog to test dpif behaviour.") >> >> Signed-off-by: YAMAMOTO Takashi > > Acked-by: Be

Re: [ovs-dev] [PATCH 1/7] ofproto-dpif.at: Fix some races

2014-05-12 Thread YAMAMOTO Takashi
ctl" call that can (somehow) wait until the > processing of previously received packets has completed. it would be great if it can be done without affecting non-test cases. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

  1   2   3   4   5   6   >