[ovs-dev] [PATCH] fix compilation on FreeBSD/NetBSD

2013-07-30 Thread YAMAMOTO Takashi
probably this should be an autoconf magic but 1) i'm not familiar with autoconf and 2) _np functions are inheretly non-portable anyway. Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/util.c b/lib/util.c index 6a72107..d719cd3 1

Re: [ovs-dev] [PATCH] fix compilation on FreeBSD/NetBSD

2013-08-01 Thread YAMAMOTO Takashi
> On Wed, Jul 31, 2013 at 11:01:43AM +0900, YAMAMOTO Takashi wrote: >> probably this should be an autoconf magic but >> 1) i'm not familiar with autoconf and 2) _np functions >> are inheretly non-portable anyway. >> >> Signed-off-by: YAMAMOTO Takashi >

Re: [ovs-dev] [netdev 23/27] netdev-bsd: Make use of AF_LINK socket thread-safe in NetBSD.

2013-08-01 Thread YAMAMOTO Takashi
looks ok to me. YAMAMOTO Takashi > Signed-off-by: Ben Pfaff > CC: Ed Maste > CC: YAMAMOTO Takashi > --- > lib/netdev-bsd.c | 91 > +- > 1 file changed, 42 insertions(+), 49 deletions(-) > > diff --git a/li

Re: [ovs-dev] [netdev 17/27] netdev-bsd: Use xmemdup0() to simplify netdev_bsd_get_next_hop().

2013-08-01 Thread YAMAMOTO Takashi
looks ok to me. YAMAMOTO Takashi > Signed-off-by: Ben Pfaff > CC: Ed Maste > CC: YAMAMOTO Takashi > --- > lib/netdev-bsd.c |7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c > index 2e49c94.

Re: [ovs-dev] [netdev 23/27] netdev-bsd: Make use of AF_LINK socket thread-safe in NetBSD.

2013-08-06 Thread YAMAMOTO Takashi
> Thanks for this and the other review. Did you try building it? I have no. > not build-tested any of the changes in this series outside of a > GNU/Linux environment. i can try a build on netbsd more easily if you can provide a git repo url i can pull from. YAMAMOTO Takashi > &

Re: [ovs-dev] [netdev 23/27] netdev-bsd: Make use of AF_LINK socket thread-safe in NetBSD.

2013-08-07 Thread YAMAMOTO Takashi
> On Tue, Aug 06, 2013 at 10:31:57PM +0000, YAMAMOTO Takashi wrote: >> > not build-tested any of the changes in this series outside of a >> > GNU/Linux environment. >> >> i can try a build on netbsd more easily if you can provide >> a git repo url i can p

[ovs-dev] [PATCH] fix a build on netbsd-6

2013-08-07 Thread YAMAMOTO Takashi
ip.h requires in_systm.h here. Signed-off-by: YAMAMOTO Takashi --- lib/bfd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bfd.c b/lib/bfd.c index d4ac489..d1b8237 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -16,6 +16,7 @@ #include "bfd.h" #include +#include #include

Re: [ovs-dev] [rule evict v2] ofproto-dpif: Lock rules to prevent eviction.

2013-08-11 Thread YAMAMOTO Takashi
ly. destroying a rwlock which is currently held is an undefined behaviour. on NetBSD, pthread_rwlock_destroy fails in that case. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ofproto-dpif: move per-backer wait calls from wait to type_wait

2013-08-15 Thread YAMAMOTO Takashi
move per-backer wait calls (dpif_wait/udpif_wait) from ofproto_wait to ofproto_type_wait. this fixes O(N^2) behaviour (eg. poll slot consumption) for dpif-netdev where N is the number of bridges. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif.c | 4 ++-- 1 file changed, 2 insertions

Re: [ovs-dev] [PATCH] ofproto-dpif: move per-backer wait calls from wait to type_wait

2013-08-15 Thread YAMAMOTO Takashi
> On Thu, Aug 15, 2013 at 08:25:44PM +0900, YAMAMOTO Takashi wrote: >> move per-backer wait calls (dpif_wait/udpif_wait) from ofproto_wait >> to ofproto_type_wait. >> >> this fixes O(N^2) behaviour (eg. poll slot consumption) for >> dpif-netdev where N is the num

[ovs-dev] bridge/dump-flows

2013-08-15 Thread YAMAMOTO Takashi
is there any reason why ovs-appctl bridge/dump-flows reports "priority" twice for each flows? YAMAMOTO Takashi duration=45786s, priority=32768, n_packets=0, n_bytes=0, dl_dst=30:31:3a:38:30:3a,dl_type=0x88cc,actions=CONTROLLER:51 table_id=254, duration=45787s, priority=0, n_packets=0,

Re: [ovs-dev] bridge/dump-flows

2013-08-15 Thread YAMAMOTO Takashi
> On Fri, Aug 16, 2013 at 07:40:20AM +0900, YAMAMOTO Takashi wrote: >> is there any reason why ovs-appctl bridge/dump-flows reports >> "priority" twice for each flows? > > There are two possibilities. I have not looked to see which is the > case. > > On

[ovs-dev] [PATCH] ofproto-dpif-upcall: fix fail-open

2013-08-15 Thread YAMAMOTO Takashi
fix a bug introduced by commit e1ec7dd4608876283038c417065c4f9978255fa3. (ofproto-dpif: Implement multi-threaded miss handling.) Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-upcall.c | 41 ++--- 1 file changed, 22 insertions(+), 19 deletions

[ovs-dev] [PATCH] don't bother to ask dpif class delete ODPP_NONE.

2013-08-27 Thread YAMAMOTO Takashi
this fixes ofp_port_status delivery on a patch port removal. Signed-off-by: YAMAMOTO Takashi --- lib/dpif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dpif.c b/lib/dpif.c index 02cc36a..ece5dc0 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -536,6 +536,9 @@ dpif_port_del(struct

Re: [ovs-dev] [PATCH] don't bother to ask dpif class delete ODPP_NONE.

2013-08-27 Thread YAMAMOTO Takashi
> On Tue, Aug 27, 2013 at 04:10:03PM +0900, YAMAMOTO Takashi wrote: >> this fixes ofp_port_status delivery on a patch port removal. > > Can you explain further? I don't see any problems with patch port > removal. Example: > > blp@sigse

[ovs-dev] [PATCH] netdev-bsd: fix crashes

2013-08-27 Thread YAMAMOTO Takashi
fix a regression added by commit 89454bf477d1dc95357792677ccbd4d483ab42d8. "netdev: Fix deadlock when netdev_dump_queues() callback calls into netdev." Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/

Re: [ovs-dev] [PATCH] don't bother to ask dpif class delete ODPP_NONE.

2013-08-27 Thread YAMAMOTO Takashi
> On Wed, Aug 28, 2013 at 10:38:06AM +0900, YAMAMOTO Takashi wrote: >> > On Tue, Aug 27, 2013 at 04:10:03PM +0900, YAMAMOTO Takashi wrote: >> >> this fixes ofp_port_status delivery on a patch port removal. >> > >> > Can you explain further? I don'

[ovs-dev] [PATCH] stop overriding patch vport type with dummy

2013-08-28 Thread YAMAMOTO Takashi
there's little point to override patch ports, which is implmeneted purely in our userlang process these days, with a dummy implementation. this allows testing patch ports in "make sandbox" environment. Signed-off-by: YAMAMOTO Takashi --- lib/netdev-dummy.c | 3 +++ 1 file change

Re: [ovs-dev] [PATCH] don't bother to ask dpif class delete ODPP_NONE.

2013-08-29 Thread YAMAMOTO Takashi
> On Wed, Aug 28, 2013 at 02:58:02PM +0900, YAMAMOTO Takashi wrote: >> > On Wed, Aug 28, 2013 at 10:38:06AM +0900, YAMAMOTO Takashi wrote: >> >> > On Tue, Aug 27, 2013 at 04:10:03PM +0900, YAMAMOTO Takashi wrote: >> >> >> this fixes ofp

Re: [ovs-dev] [PATCH v2] ofproto-dpif-upcall: Batch upcalls.

2013-08-29 Thread YAMAMOTO Takashi
gnal = true; } handler->n_upcalls++; if (handler->need_signal && handler->n_upcalls >= FLOW_MISS_MAX_BATCH) { handler->need_signal = false; xpthread_cond_signal(&handler->wake_cond); } YAMAMOTO Takashi > Be more conservative

Re: [ovs-dev] [PATCH] ofproto-dpif: Do not dpif_port_del() patch ports in port_del().

2013-09-02 Thread YAMAMOTO Takashi
this patch looks fine and works for me. thanks. YAMAMOTO Takashi > Patch ports don't have datapath ports so it doesn't make sense to try to > call dpif_port_del() on them. If we do try, it will fail, which makes the > caller think that the port wasn't really dele

Re: [ovs-dev] [PATCH v2] ofproto-dpif-upcall: Batch upcalls.

2013-09-03 Thread YAMAMOTO Takashi
> On Fri, Aug 30, 2013 at 12:24:17PM +0900, YAMAMOTO Takashi wrote: >> > Batching reduces overheads and enables upto 4 times the upcall processing >> > performance in a specialized test case. >> > >> > Signed-off-by: Jarno Rajahalme >> > --- &

[ovs-dev] [PATCH] ofproto-dpif-upcall: reduce number of wakeup

2013-09-04 Thread YAMAMOTO Takashi
if a queue length is long (ie. non-0), the consumer thread should already be busy working on the queue. there's no need to wake it up repeatedly. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-upcall.c | 32 +--- 1 file changed, 21 insertions(+

[ovs-dev] [PATCH] lib/timeval: don't forget to initialize a rwlock

2013-09-08 Thread YAMAMOTO Takashi
Commit 31ef9f5178 (timeval: Remove CACHE_TIME scheme.) removed initialization of a rwlock which is still used for some operations. This restores it. --- lib/timeval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/timeval.c b/lib/timeval.c index 37b4353..3262397 100644 --- a/lib/timeval.c

[ovs-dev] [PATCH] fix memory leak

2013-09-19 Thread YAMAMOTO Takashi
plug upcall leak introduced by the commit "ofproto-dpif-upcall: Forward packets in order of arrival." (commit 04a19fb8f4b8ba19a9805906aac7b30b65b57206) Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-upcall.c | 5 + 1 file changed, 5 insertions(+) diff --git a/ofpro

Re: [ovs-dev] [threaded-learning v2 09/25] ofproto: Remove soon-to-be-invalid optimizations.

2013-09-23 Thread YAMAMOTO Takashi
> + OFPFC_DELETE_STRICT) != OFPROTO_POSTPONE; > } this seems wrong to me. ofproto_delete_flow is used to remove hidden rules. the new code ends up to use collect_rules_strict which skips hidden rules. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] reduce number of wakeup

2013-09-24 Thread YAMAMOTO Takashi
changes from the previous post: rebase. YAMAMOTO Takashi (1): ofproto-dpif-upcall: reduce number of wakeup ofproto/ofproto-dpif-upcall.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) -- 1.8.3.1 ___ dev

[ovs-dev] [PATCH] for ovs-appctl bridge/dump-flows, don't show "priority" twice

2013-09-24 Thread YAMAMOTO Takashi
-by: YAMAMOTO Takashi --- ofproto/ofproto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index f305710..ae39283 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -3490,7 +3490,6 @@ flow_stats_ds(struct rule *rule, struct ds *results

[ovs-dev] [PATCH] ofproto-dpif-upcall: reduce number of wakeup

2013-09-24 Thread YAMAMOTO Takashi
if a queue length is long (ie. non-0), the consumer thread should already be busy working on the queue. there's no need to wake it up repeatedly. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto-dpif-upcall.c | 29 +++-- 1 file changed, 19 insertions(+), 10 dele

[ovs-dev] [PATCH] OPENFLOW-1.1+: update for OF1.3 ONF Extentions and OF1.4

2013-09-25 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 89 +++ 1 file changed, 89 insertions(+) diff --git a/OPENFLOW-1.1+ b/OPENFLOW-1.1+ index 7a75c44..90f811f 100644 --- a/OPENFLOW-1.1+ +++ b/OPENFLOW-1.1+ @@ -168,6 +168,95 @@ didn&#

[ovs-dev] [PATCH] signals: don't assume that sys_siglist is an array

2013-10-02 Thread YAMAMOTO Takashi
this was caught by the recent __ARRAY_CHECK stuff. Signed-off-by: YAMAMOTO Takashi --- lib/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/signals.c b/lib/signals.c index f11ed05..27da5d6 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -110,7 +110,7 @@ const

[ovs-dev] 3 byte oxm fields?

2013-10-07 Thread YAMAMOTO Takashi
hi, ovs uses length==4 for the following oxm fields. why? OXM_OF_IPV6_FLABEL OXM_OF_MPLS_LABEL OXM_OF_PBB_ISID linc uses length==3 for them. it seems like a natural interpretation of the spec to me. YAMAMOTO Takashi ___ dev mailing list

Re: [ovs-dev] 3 byte oxm fields?

2013-10-07 Thread YAMAMOTO Takashi
> On Tue, Oct 08, 2013 at 02:31:30PM +0900, YAMAMOTO Takashi wrote: >> ovs uses length==4 for the following oxm fields. why? >> >> OXM_OF_IPV6_FLABEL > > OXM_OF_IPV6_FLABEL is 4 bytes in the openflow.h header from ONF, so OVS > has this right. the header is co

[ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-10-09 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 9 + 1 file changed, 9 insertions(+) diff --git a/OPENFLOW-1.1+ b/OPENFLOW-1.1+ index 90f811f..6fabde1 100644 --- a/OPENFLOW-1.1+ +++ b/OPENFLOW-1.1+ @@ -124,6 +124,15 @@ didn't compare the specs carefully yet.) [optiona

[ovs-dev] [PATCH] tests: a comment on OF1.3 table_mod

2013-10-09 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tests/ofp-print.at | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ofp-print.at b/tests/ofp-print.at index 52b84ef..87d5da8 100644 --- a/tests/ofp-print.at +++ b/tests/ofp-print.at @@ -996,6 +996,7 @@ OFPT_TABLE_MOD (OF1.2) (xid=0x2): table_id=2

Re: [ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-10-14 Thread YAMAMOTO Takashi
> On Wed, Oct 09, 2013 at 04:49:06PM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > ... > >> + This requires the following. >> + - Change the default table-miss action (in the absense of table-miss >> +entry) from p

Re: [ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-10-14 Thread YAMAMOTO Takashi
> On Tue, Oct 15, 2013 at 10:20:04AM +0900, YAMAMOTO Takashi wrote: >> > On Wed, Oct 09, 2013 at 04:49:06PM +0900, YAMAMOTO Takashi wrote: >> >> Signed-off-by: YAMAMOTO Takashi >> >> + This requires the following. >> >> + - Change

[ovs-dev] [PATCH] fix the amount of packet data sent with packet_in

2013-10-15 Thread YAMAMOTO Takashi
according to the specs, if a packet is not buffered for some reasons, we should send the entire packet, regardless of max_len. Signed-off-by: YAMAMOTO Takashi --- ofproto/connmgr.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/ofproto/connmgr.c b

[ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-10-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 7 +++ 1 file changed, 7 insertions(+) diff --git a/OPENFLOW-1.1+ b/OPENFLOW-1.1+ index 07b2660..4f30520 100644 --- a/OPENFLOW-1.1+ +++ b/OPENFLOW-1.1+ @@ -121,6 +121,13 @@ didn't compare the specs carefully yet.) [optiona

[ovs-dev] [PATCH 2/3] socket-util: try to deal with long path using a temporary symlink

2013-10-15 Thread YAMAMOTO Takashi
the existing procfs stuff is not always usable. stop skipping some relevant tests even if procfs is not available. Signed-off-by: YAMAMOTO Takashi --- lib/socket-util.c | 73 +-- python/ovs/socket_util.py | 46

[ovs-dev] [PATCH 3/3] tests: fix failure when $PKIDIR contains uuid-like string

2013-10-15 Thread YAMAMOTO Takashi
this fixes a test failure with my working directory: /disks/ea6a5743-ad5f-11e2-9410-08606e7f74e7/git/openvswitch stop filtering uuid as it's unnecessary for this specific test case. Signed-off-by: YAMAMOTO Takashi --- tests/ovsdb-server.at | 2 +- 1 file changed, 1 insertion(+), 1 del

[ovs-dev] [PATCH 1/3] tests/test-unix-socket.py: abort on an error

2013-10-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tests/test-unix-socket.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-unix-socket.py b/tests/test-unix-socket.py index 5a3f3c0..f55f6c3 100644 --- a/tests/test-unix-socket.py +++ b/tests/test-unix-socket.py @@ -40,6 +40,7 @@ def main(argv

[ovs-dev] [PATCH] socket-util: try to deal with long path using a temporary symlink

2013-10-15 Thread YAMAMOTO Takashi
the existing procfs stuff is not always usable. stop skipping some relevant tests even if procfs is not available. Signed-off-by: YAMAMOTO Takashi --- lib/socket-util.c | 76 +-- python/ovs/socket_util.py | 46

Re: [ovs-dev] [PATCH 2/3] socket-util: try to deal with long path using a temporary symlink

2013-10-15 Thread YAMAMOTO Takashi
> On Tue, Oct 15, 2013 at 04:34:18PM -0700, Ben Pfaff wrote: >> On Tue, Oct 15, 2013 at 11:38:05PM +0900, YAMAMOTO Takashi wrote: >> > the existing procfs stuff is not always usable. >> > stop skipping some relevant tests even if procfs is not available. >> >

[ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-16 Thread YAMAMOTO Takashi
As per spec, make packet-in reason for OpenFlow1.3 table-miss flow entries no_match rather than action. Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 3 --- include/openflow/openflow-common.h | 5 - lib/ofp-util.c | 3 +++ ofproto/connmgr.c

[ovs-dev] [PATCH 0/3] some non-functional changes

2013-10-16 Thread YAMAMOTO Takashi
comment fixes and cosmetic clean-up. YAMAMOTO Takashi (3): ofp-actins: consistently use a helper function ofputil_match_from_ofp11_match: fix a comment nx-match: fix comments lib/nx-match.c| 6 +++--- lib/ofp-actions.c | 2 +- lib/ofp-util.c| 4 ++-- 3 files changed, 6 insertions

[ovs-dev] [PATCH 3/3] nx-match: fix comments

2013-10-16 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/nx-match.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nx-match.c b/lib/nx-match.c index 15143f1..11cbff3 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -280,8 +280,8 @@ oxm_pull_match__(struct ofpbuf *b, bool strict

[ovs-dev] [PATCH 2/3] ofputil_match_from_ofp11_match: fix a comment

2013-10-16 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/ofp-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 173b534..2bf595a 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -296,8 +296,8 @@ ofputil_pull_ofp11_match(struct ofpbuf *buf

[ovs-dev] [PATCH 1/3] ofp-actins: consistently use a helper function

2013-10-16 Thread YAMAMOTO Takashi
no functional changes. Signed-off-by: YAMAMOTO Takashi --- lib/ofp-actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 06f9f6b..d6747b0 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -1092,7 +1092,7

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-16 Thread YAMAMOTO Takashi
> On Wed, Oct 16, 2013 at 05:24:36PM +0900, YAMAMOTO Takashi wrote: >> As per spec, make packet-in reason for OpenFlow1.3 table-miss flow >> entries no_match rather than action. >> >> Signed-off-by: YAMAMOTO Takashi > > Thanks! I really appreciate that you are

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-16 Thread YAMAMOTO Takashi
> On Thu, Oct 17, 2013 at 02:11:00PM +0900, YAMAMOTO Takashi wrote: >> > On Wed, Oct 16, 2013 at 05:24:36PM +0900, YAMAMOTO Takashi wrote: >> >> As per spec, make packet-in reason for OpenFlow1.3 table-miss flow >> >> entries no_match rather than action.

[ovs-dev] [PATCH] fix some ofpbuf usage problems in write-actions code

2013-10-17 Thread YAMAMOTO Takashi
for longer term, "nested" variants of some ofpact functions which using ofpbuf->l3 might be desirable. Signed-off-by: YAMAMOTO Takashi --- lib/ofp-actions.c | 5 - lib/ofp-parse.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/ofp-action

Re: [ovs-dev] [PATCH] socket-util: Add symlink based workaround for long pathnames.

2013-10-17 Thread YAMAMOTO Takashi
ve no workaround. */ > -VLOG_WARN_RL(&rl, "Unix socket name %s is longer than maximum " > "%d bytes", name, MAX_UN_LEN); with your new definition of MAX_UN_LEN, this should be %zu. otherwise looks good to me and worked for me. thanks! YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-17 Thread YAMAMOTO Takashi
As per spec, make packet-in reason for OpenFlow1.3 table-miss flow entries no_match rather than action. Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 3 -- include/openflow/openflow-common.h | 5 +- lib/learn.c| 6 ++- lib/learning

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-17 Thread YAMAMOTO Takashi
>> On Thu, Oct 17, 2013 at 02:11:00PM +0900, YAMAMOTO Takashi wrote: >>> > On Wed, Oct 16, 2013 at 05:24:36PM +0900, YAMAMOTO Takashi wrote: >>> >> As per spec, make packet-in reason for OpenFlow1.3 table-miss flow >>> >> entries no_match rather tha

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-17 Thread YAMAMOTO Takashi
> On Fri, Oct 18, 2013 at 01:41:20PM +0900, YAMAMOTO Takashi wrote: >> >> On Thu, Oct 17, 2013 at 02:11:00PM +0900, YAMAMOTO Takashi wrote: >> >>> > On Wed, Oct 16, 2013 at 05:24:36PM +0900, YAMAMOTO Takashi wrote: >> >>> >> As per spec,

[ovs-dev] [PATCH 0/3] multipart request fixes

2013-10-22 Thread YAMAMOTO Takashi
YAMAMOTO Takashi (3): ofproto: report correct errors for unsupported stats/multipart messages ofproto: report multipart buffer overflow OPENFLOW-1.1+: update multipart stuff OPENFLOW-1.1+ | 4 +--- lib/ofp-msgs.c| 26 -- lib/ofp-msgs.h| 1

[ovs-dev] [PATCH 1/3] ofproto: report correct errors for unsupported stats/multipart messages

2013-10-22 Thread YAMAMOTO Takashi
the correct error in that case is OFPERR_OFPBRC_BAD_STAT, not OFPERR_OFPBRC_BAD_TYPE. Signed-off-by: YAMAMOTO Takashi --- lib/ofp-msgs.c| 26 -- lib/ofp-msgs.h| 1 + ofproto/ofproto.c | 8 ++-- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a

[ovs-dev] [PATCH 2/3] ofproto: report multipart buffer overflow

2013-10-22 Thread YAMAMOTO Takashi
buffering logic if/when desirable. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto.c | 4 1 file changed, 4 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index b51b00f..515575e 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -5672,6 +5672,10 @@ handle_

[ovs-dev] [PATCH 3/3] OPENFLOW-1.1+: update multipart stuff

2013-10-22 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OPENFLOW-1.1+ b/OPENFLOW-1.1+ index 22be72c..82191e1 100644 --- a/OPENFLOW-1.1+ +++ b/OPENFLOW-1.1+ @@ -116,10 +116,8 @@ following additional work. (This is based on the

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-22 Thread YAMAMOTO Takashi
> On Fri, Oct 18, 2013 at 01:28:44PM +0900, YAMAMOTO Takashi wrote: >> As per spec, make packet-in reason for OpenFlow1.3 table-miss flow >> entries no_match rather than action. >> >> Signed-off-by: YAMAMOTO Takashi > > Thanks a lot for sending a second versi

[ovs-dev] [PATCH 2/2] ofp-print: update a printf format for the recent pin.total_len change

2013-10-23 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/ofp-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 6ff6690..e4d0303 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -109,7 +109,7 @@ ofp_print_packet_in(struct ds *string, const

[ovs-dev] [PATCH 1/2] connmgr: fix an abort

2013-10-23 Thread YAMAMOTO Takashi
fix a problem introduced by commit cfa955b083c5617212a29a03423e063ff6cb350a. (connmgr: Fix packet-in reason for OpenFlow1.3 table-miss flow entries.) ofconn might not be connected here. in that case ofputil_protocol_to_ofp_version aborts. Signed-off-by: YAMAMOTO Takashi --- ofproto/connmgr.c

[ovs-dev] [PATCH 0/2] fix problems in the recent packet-in changes

2013-10-23 Thread YAMAMOTO Takashi
YAMAMOTO Takashi (2): connmgr: fix an abort ofp-print: update a printf format for the recent pin.total_len change lib/ofp-print.c | 2 +- ofproto/connmgr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 1.8.3.1 ___ dev mailing

[ovs-dev] [PATCH 1/2] ofproto: report correct errors for unsupported stats/multipart requests

2013-10-23 Thread YAMAMOTO Takashi
the correct error in that case is OFPERR_OFPBRC_BAD_STAT, not OFPERR_OFPBRC_BAD_TYPE. currently, the only example of unsupported stats/multipart request is OFPTYPE_TABLE_FEATURES_STATS_REQUEST. Signed-off-by: YAMAMOTO Takashi --- OPENFLOW-1.1+ | 3 --- lib/ofp-msgs.c| 50

[ovs-dev] [PATCH 2/2] ofproto: report multipart buffer overflow

2013-10-23 Thread YAMAMOTO Takashi
buffering logic if/when desirable. an option question: what to do for the following messages with the same xid? especially for the last message which doesn't have the "more" flag set? it would be neater to detect and drop them. Signed-off-by: YAMAMOTO Takashi --- OPENFLO

Re: [ovs-dev] [PATCH 1/3] ofproto: report correct errors for unsupported stats/multipart messages

2013-10-23 Thread YAMAMOTO Takashi
> On Wed, Oct 23, 2013 at 03:04:21PM +0900, YAMAMOTO Takashi wrote: >> the correct error in that case is OFPERR_OFPBRC_BAD_STAT, >> not OFPERR_OFPBRC_BAD_TYPE. >> >> Signed-off-by: YAMAMOTO Takashi > > If there existed a statistics request that handle_openf

[ovs-dev] [PATCH 0/2] multipart request fixes

2013-10-23 Thread YAMAMOTO Takashi
updated after feedbacks from Ben Pfaff. YAMAMOTO Takashi (2): ofproto: report correct errors for unsupported stats/multipart requests ofproto: report multipart buffer overflow OPENFLOW-1.1+ | 4 +--- lib/ofp-msgs.c| 50 -- lib/ofp

Re: [ovs-dev] [PATCH] Fix packet-in reason for OpenFlow1.3 table-miss flow entries

2013-10-23 Thread YAMAMOTO Takashi
> On Wed, Oct 23, 2013 at 03:44:50PM +0900, YAMAMOTO Takashi wrote: >> > On Fri, Oct 18, 2013 at 01:28:44PM +0900, YAMAMOTO Takashi wrote: >> >> As per spec, make packet-in reason for OpenFlow1.3 table-miss flow >> >> entries no_match rather than action.

Re: [ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-10-31 Thread YAMAMOTO Takashi
> On Tue, Oct 15, 2013 at 05:12:22PM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi >> --- >> OPENFLOW-1.1+ | 7 +++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/OPENFLOW-1.1+ b/OPENFLOW-1.1+ >> index 07b2660..4

Re: [ovs-dev] [PATCH] OPENFLOW-1.1+: note on table-miss

2013-11-01 Thread YAMAMOTO Takashi
> On Fri, Nov 01, 2013 at 03:23:10PM +0900, YAMAMOTO Takashi wrote: >> > On Tue, Oct 15, 2013 at 05:12:22PM +0900, YAMAMOTO Takashi wrote: >> >> Signed-off-by: YAMAMOTO Takashi >> >> --- >> >> OPENFLOW-1.1+ | 7 +++ >> >> 1 file cha

[ovs-dev] [PATCH] ofproto: report the correct set of actions for group features

2013-11-04 Thread YAMAMOTO Takashi
do not report OF1.1 bits (set_dl_src etc) as group features is OF1.2+. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index b88cd81..28b21ce 100644 --- a

Re: [ovs-dev] [PATCH] ofproto: report the correct set of actions for group features

2013-11-04 Thread YAMAMOTO Takashi
> do not report OF1.1 bits (set_dl_src etc) as group features is OF1.2+. > > Signed-off-by: YAMAMOTO Takashi > --- > ofproto/ofproto.c | 21 ++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > > diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c

[ovs-dev] [PATCH] ofproto: report the correct set of actions for group features

2013-11-04 Thread YAMAMOTO Takashi
do not report OF1.1 bits (set_dl_src etc) as group features is OF1.2+. LINC seems to use 1<<31 for experimenter action type but i failed to find it in the spec. Signed-off-by: YAMAMOTO Takashi --- ofproto/ofproto.c | 20 +--- 1 file changed, 17 insertions(+), 3 del

Re: [ovs-dev] [PATCH 3/4] Add init/destroy funcs and handle Table Features msgs.

2013-11-04 Thread YAMAMOTO Takashi
xm_length should be for these properties. existing implementations seem to vary. LINC always uses 0 and ofsoftswitch13 uses "normal" value as your patch does. (eg. 6 for eth_dst) another question is if it should be doubled for the above mentioned HASMASK=1 case. probably need to ask ONF mem

Re: [ovs-dev] [PATCH v2 4/8] ofproto: Add init/destroy funcs and handle OFPMP_TABLE_FEATURES msgs.

2013-11-11 Thread YAMAMOTO Takashi
> +return handle_table_features_stats_request(ofconn, oh); > + > +/* FIXME: Change the following once they are implemented: */ > case OFPTYPE_QUEUE_GET_CONFIG_REQUEST: > return handle_queue_get_config_request(ofconn, oh); > +/* fallthrough */ this l

Re: [ovs-dev] [PATCH v2 8/8] AT: Add tests for OFPMP_TABLE_FEATURES.

2013-11-11 Thread YAMAMOTO Takashi
6_TYPE,ICMPV6_CODE,IPV6_ND_TARGET,IPV6_ND_SLL,IPV6_ND_TLL,MPLS_LABEL,MPLS_TC,MPLS_BOS,TUNNEL_ID,IPV6_EXTHDR at least for OFPTFPT_MATCH, HASMASK bit should be dumped as well because it has a defined meaning. (OpenFlow 1.3.2 p.83) YAMAMOTO Takashi _

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

2013-11-12 Thread YAMAMOTO Takashi
&= OFPTC_TABLE_MISS_MASK; > +} does this mean, call table_get_config only for the first table? YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] util: Make popcount() handle 64-bit integers, not separate popcount64().

2013-11-18 Thread YAMAMOTO Takashi
nsigned long long value); #include unsigned int popcount32(uint32_t value); unsigned int popcount64(uint64_t value); DESCRIPTION The popcount functions returns the number of bits set in value. YAMAMOTO Takashi > > Signed-off-by: Ben Pfaff > --- > lib/f

Re: [ovs-dev] [PATCH 2/2] util: Make popcount() handle 64-bit integers, not separate popcount64().

2013-11-18 Thread YAMAMOTO Takashi
> On Tue, Nov 19, 2013 at 11:20:44AM +0900, YAMAMOTO Takashi wrote: >> > Having a single function that can do popcount() on any integer type is >> > easier for callers to get right. The implementation is probably slower >> > if the caller actually provides a 32-bit

[ovs-dev] [PATCH] util: Rename popcount to count_1bits

2013-11-19 Thread YAMAMOTO Takashi
This avoids a conflict with NetBSD's strings.h/libc. (http://netbsd.gw.com/cgi-bin/man-cgi?popcount++NetBSD-current) The new name is suggested by Ben Pfaff. Signed-off-by: YAMAMOTO Takashi --- lib/flow.c| 5 +++-- lib/util.c| 16 lib/util.h

Re: [ovs-dev] [PATCH 2/2] util: Make popcount() handle 64-bit integers, not separate popcount64().

2013-11-19 Thread YAMAMOTO Takashi
> On Tue, Nov 19, 2013 at 02:49:53PM +0900, YAMAMOTO Takashi wrote: >> > On Tue, Nov 19, 2013 at 11:20:44AM +0900, YAMAMOTO Takashi wrote: >> >> > Having a single function that can do popcount() on any integer type is >> >> > easier for callers to get rig

[ovs-dev] [PATCH] util: fix a printf format

2013-11-26 Thread YAMAMOTO Takashi
revert a mistake in commit 34582733. ("Avoid printf type modifiers not supported by MSVC C runtime library.") Signed-off-by: YAMAMOTO Takashi --- lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.c b/lib/util.c index faa2cab..53c3849 100644 --- a/

[ovs-dev] [PATCH] netdev-bsd: remove an unused variable

2013-12-18 Thread YAMAMOTO Takashi
this is a leftover of commit da4a6191. ("netdev: Globally track port status changes") Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 442c384..4a16e5c 100644 --- a/lib/netdev-bsd.c +++ b/

[ovs-dev] [PATCH] AUTHORS: update my entry

2013-12-18 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index fb204a2..6a56c03 100644 --- a/AUTHORS +++ b/AUTHORS @@ -112,6 +112,7 @@ Valient Gough vgo...@pobox.com Vivien Bernet-Rollande v...@soprive.net Wei

[ovs-dev] openflow 1.1

2011-06-20 Thread YAMAMOTO Takashi
hi, is anyone working on implementing OF 1.1? particularly i'm interested in MPLS stuff. YAMAMOTO Takashi ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] openflow 1.1

2011-06-21 Thread YAMAMOTO Takashi
hi, > On Jun 20, 2011, at 8:36 PM, Ben Pfaff wrote: > >> On Tue, Jun 21, 2011 at 12:08:17PM +0900, YAMAMOTO Takashi wrote: >>> is anyone working on implementing OF 1.1? >>> particularly i'm interested in MPLS stuff. >> >> I don't know anyone w

Re: [ovs-dev] openflow 1.1

2011-06-21 Thread YAMAMOTO Takashi
hi, > On Jun 21, 2011, at 12:13 AM, YAMAMOTO Takashi wrote: > >>> I just wanted to add that OpenFlow 1.1 was a proving ground for a bunch of >>> new concepts. The ONF, which is now leading the development of the >>> OpenFlow standard, is working to f

<    1   2   3   4   5   6