Re: [ovs-dev] [PATCH] netdev-bsd: Update for recent ofpbuf api changes

2014-04-08 Thread Ben Pfaff
Looks good, thank you. On Apr 8, 2014 9:00 PM, "YAMAMOTO Takashi" wrote: > Leftovers from commit commit 1f317cb5. > ("ofpbuf: Introduce access api for base, data and size.") > > This fixes regressons introduced by commit 3f976e12. > ("lib/ofpbuf: Rename private fields to discourage direct use.")

[ovs-dev] [PATCH] netdev-bsd: Update for recent ofpbuf api changes

2014-04-08 Thread YAMAMOTO Takashi
Leftovers from commit commit 1f317cb5. ("ofpbuf: Introduce access api for base, data and size.") This fixes regressons introduced by commit 3f976e12. ("lib/ofpbuf: Rename private fields to discourage direct use.") Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 12 ++-- 1 file ch

Re: [ovs-dev] [PATCH] dpif: Wildcard bond output port with recirculation

2014-04-08 Thread Andy Zhou
Thanks for the review. I am happy about the simple solution also. Pushed to the master. On Tue, Apr 8, 2014 at 5:15 PM, Ben Pfaff wrote: > On Mon, Apr 07, 2014 at 10:32:31PM -0700, Andy Zhou wrote: >> This patch took advantage of the recirculation infrastructure >> introduced in commit adcf00ba35

Re: [ovs-dev] [PATCH v2] openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash

2014-04-08 Thread Jesse Gross
On Fri, Apr 4, 2014 at 9:20 PM, wei zhang wrote: > At 2014-04-05 07:05:59,"Jesse Gross" wrote: >>On Tue, Apr 1, 2014 at 5:23 PM, Wei Zhang wrote: >>> >>> v2 -> v1: use the same logic of the gre_rcv() to distinguish which packet is >>> intended to us! >> >>As a tip on kernel process: if you put t

Re: [ovs-dev] [PATCH] dpif: Wildcard bond output port with recirculation

2014-04-08 Thread Ben Pfaff
On Mon, Apr 07, 2014 at 10:32:31PM -0700, Andy Zhou wrote: > This patch took advantage of the recirculation infrastructure > introduced in commit adcf00ba35a0, allowing megaflows to be generated > when the flow output to bond ports. > > Without recirculation, it is necessary flows output to Bond p

Re: [ovs-dev] [PATCH] ovs-dev.py: Update repository location.

2014-04-08 Thread Ben Pfaff
Applied to master, thanks! On Tue, Apr 08, 2014 at 04:46:19PM -0700, Justin Pettit wrote: > Acked-by: Justin Pettit > > > > On April 8, 2014 at 4:43:09 PM, Ben Pfaff (b...@nicira.com) wrote: > > The Open vSwitch repository has moved to Github. > > > > CC: Ethan Jackson > > Signed-off-by: Ben

Re: [ovs-dev] [PATCH] ovs-dev.py: Update repository location.

2014-04-08 Thread Justin Pettit
Acked-by: Justin Pettit On April 8, 2014 at 4:43:09 PM, Ben Pfaff (b...@nicira.com) wrote: > The Open vSwitch repository has moved to Github. > > CC: Ethan Jackson > Signed-off-by: Ben Pfaff > --- > utilities/ovs-dev.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --g

[ovs-dev] [PATCH] ovs-dev.py: Update repository location.

2014-04-08 Thread Ben Pfaff
The Open vSwitch repository has moved to Github. CC: Ethan Jackson Signed-off-by: Ben Pfaff --- utilities/ovs-dev.py |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 3f32e58..f73899b 100755 --- a/utilities/ovs-dev.py ++

[ovs-dev] [PATCH 09/10] datapath: Allow masks for set actions.

2014-04-08 Thread Jarno Rajahalme
Masked set actions allow more megaflow wildcarding. All other key types than the tunnel key that can be set, can now be set with a mask. It is not clear wether masked set is useful for skb_priority. However, we already use the LSB of pkt_mark for IPSec in tunnels, so it might be useful to be able

[ovs-dev] [PATCH 08/10] openvswithch.h: Clarify use of key attributes.

2014-04-08 Thread Jarno Rajahalme
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 --- include/linux/openvswitch.h |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/incl

[ovs-dev] Masked set actions. (Re: [PATCH 00/10] Maksed set actions.)

2014-04-08 Thread Jarno Rajahalme
Sorry for the typo in subject :-) Jarno On Apr 8, 2014, at 4:38 PM, Jarno Rajahalme wrote: > Currently, if any field in IP header is set with a set action, all the > IP header fields need to be matched exactly in the megaflow. This > series adds support for masked set actions, requiring only

[ovs-dev] [PATCH 01/10] lib/ofp-actions: Silently discard set ip ecn/ttl actions on OpenFlow10.

2014-04-08 Thread Jarno Rajahalme
It is better to not abort(). Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 5a3bf70..ce14004 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -2589,6 +2589,8 @@ o

[ovs-dev] [PATCH 02/10] ofproto: Fix wildcard masking with nw_tos.

2014-04-08 Thread Jarno Rajahalme
Later patches rely on the DSCP and ECN masks to be properly set when the fields are read. Also, avoid reading nw_tos if tunnel's inner packet is not IP. Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c |2 +- ofproto/tunnel.c | 37 ---

[ovs-dev] [PATCH 10/10] Clarify tunnel wildcarding.

2014-04-08 Thread Jarno Rajahalme
It would seem that we should set the 'tun_dst' in 'wc' when calling tnl_port_should_receive(), as it is reading that flow field. However, tnl_port_should_receive() returns true, if the flow has tunnel metadata. If there is no tunnel metadata, then there is nothing to mask, so we do not set the 'i

[ovs-dev] [PATCH 04/10] ofproto/xlate: Fix set field unwildcarding.

2014-04-08 Thread Jarno Rajahalme
If the field does not exist, nothing is set. However, we must unwildcard the bits we used to make the decision, and we need not unwildcard the field and it's prerequisities, if nothing is set. Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c | 17 - 1 file chang

[ovs-dev] [PATCH 06/10] ofproto: Probe for masked set action support.

2014-04-08 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c |8 - ofproto/ofproto-dpif-xlate.h |3 +- ofproto/ofproto-dpif.c | 70 +- 3 files changed, 78 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofpr

[ovs-dev] [PATCH 07/10] lib/odp: Use masked set actions.

2014-04-08 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- lib/odp-util.c | 397 +- lib/odp-util.h |5 +- ofproto/ofproto-dpif-xlate.c | 12 +- tests/ofproto-dpif.at| 49 +++--- tests/tunnel.at |8 +- 5 files changed, 3

[ovs-dev] [PATCH 03/10] Tests: Fix ofproto/trace and expose megaflows when having a set action.

2014-04-08 Thread Jarno Rajahalme
ofproto/trace incorrectly reported the megaflow based on the modified flow, rather than the original flow key. Now the original flow key is stored before any modifications and is used for reporting the megaflow. Also, flow reporting is suppressed only for resubmit flows, so that the final flow wi

[ovs-dev] [PATCH 05/10] lib/odp: Masked set action execution and printing.

2014-04-08 Thread Jarno Rajahalme
Masked set actions add a mask, immediately following the netlink attribute data, within the netlink attribute itself. Thus the key attribute size for a masked set action is exactly double of the non-masked set action. Signed-off-by: Jarno Rajahalme --- lib/odp-execute.c | 241 +

[ovs-dev] [PATCH 00/10] Maksed set actions.

2014-04-08 Thread Jarno Rajahalme
Currently, if any field in IP header is set with a set action, all the IP header fields need to be matched exactly in the megaflow. This series adds support for masked set actions, requiring only the header bits actually read or set to be matched exactly by the resulting megaflow. As an example,

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

2014-04-08 Thread Pritesh Kothari
Signed-off-by: Pritesh Kothari --- v2: Use OVS_GREP_IFELSE instead of upstream kernel versions as Thomas suggested. --- FAQ |2 +- NEWS |2 +- acinclude.m4 |

Re: [ovs-dev] [openflow-discuss] Quick experimenting with OVS on OpenWrt

2014-04-08 Thread Ben Pfaff
On Tue, Apr 8, 2014 at 3:51 PM, Nicholas Bastin wrote: > If you have the rev. 2 (blue) hardware, that is more of an unknown (I don't > have one of these to look at or tinker with) - the 9558 has a 720Mhz MIPS > core, so that's better, but I found images of a different AP that uses this > chip on t

Re: [ovs-dev] [openflow-discuss] Quick experimenting with OVS on OpenWrt

2014-04-08 Thread Nicholas Bastin
On Tue, Apr 8, 2014 at 4:29 PM, Alison Chan wrote: > I was able to take the router back up to the lab (I had been testing > it with laptops in my office). With two gigabit ethernet hosts on the > data plane, throughput (tcp iperf) is 450~460 Mbit/s. I will test > things a bit more tomorrow (e.g.

Re: [ovs-dev] [PATCH] datapath: Fix tracking of flags seen in TCP flows.

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 02:33:55PM -0700, Jesse Gross wrote: > On Mon, Apr 7, 2014 at 3:35 PM, Ben Pfaff wrote: > > Flow statistics need to take into account the TCP flags from the packet > > currently being processed (in 'key'), not the TCP flags matched by the > > flow found in the kernel flow t

Re: [ovs-dev] [PATCH] datapath: Fix tracking of flags seen in TCP flows.

2014-04-08 Thread Jesse Gross
On Mon, Apr 7, 2014 at 3:35 PM, Ben Pfaff wrote: > Flow statistics need to take into account the TCP flags from the packet > currently being processed (in 'key'), not the TCP flags matched by the > flow found in the kernel flow table (in 'flow'). > > This bug made the Open vSwitch userspace fin_ti

Re: [ovs-dev] [openflow-discuss] Quick experimenting with OVS on OpenWrt

2014-04-08 Thread Alison Chan
Thanks Ben. I just subscribed to dev@ovs list. I was able to take the router back up to the lab (I had been testing it with laptops in my office). With two gigabit ethernet hosts on the data plane, throughput (tcp iperf) is 450~460 Mbit/s. I will test things a bit more tomorrow (e.g. adding 802.11

Re: [ovs-dev] [PATCH 1/2] ofproto/ofproto-dpif: Use ofpbuf API to access 'data' and 'size'.

2014-04-08 Thread Jarno Rajahalme
Thanks for review, pushed to master. Jarno On Apr 8, 2014, at 10:22 AM, Ben Pfaff wrote: > On Tue, Apr 08, 2014 at 08:59:03AM -0700, Jarno Rajahalme wrote: >> A recent commit reintroduced some direct use of the ofpbuf 'data' and >> 'size'. Use the access API instead. >> >> Signed-off-

Re: [ovs-dev] [PATCH 2/2] lib/ofpbuf: Rename private fields to discourage direct use.

2014-04-08 Thread Jarno Rajahalme
Thanks for review! Pushed to master, Jarno On Apr 8, 2014, at 10:12 AM, Alex Wang wrote: > Really like this one! > > For both: > Acked-by: Alex Wang > > > On Tue, Apr 8, 2014 at 8:59 AM, Jarno Rajahalme wrote: > Direct use of 'data', 'base', and 'size' will break DPDK builds. Try

Re: [ovs-dev] [PATCH v2] bridge: don't bring up internal ports by default.

2014-04-08 Thread Gurucharan Shetty
> >> Also, if someone programmatically creates bridges using OVSDB, he is >> now forced to add those bridges to some startup script. I don't think >> it is feasible. > > Good point, but how you handle the networking configuration in this > case? For instance, when the new bridge needs an IP address

[ovs-dev] [PATCH 2/2] dpif-netdev: Use existing flow for computing dp hash

2014-04-08 Thread Andy Zhou
--- lib/dpif-netdev.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 9fc51db..9ad9386 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2151,10 +2151,7 @@ dp_execute_cb(void *aux_, struct ofpbuf *packet,

[ovs-dev] [PATCH 1/2] recirc: preserve packet metadata fields for recirculation

2014-04-08 Thread Andy Zhou
Packet metadata fields may be modified when execute post recirculation actions. Current implementation only preserves recirc_id and dp_hash, but not other fields. With this patch, a copy of metadata is supplied instead of the original metadata for recirculation to preserve the original value. ---

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

2014-04-08 Thread Pritesh Kothari (pritkoth)
On Apr 8, 2014, at 8:54 AM, Thomas Graf wrote: >> #endif >> diff --git a/datapath/linux/compat/include/linux/skbuff.h >> b/datapath/linux/compat/include/linux/skbuff.h >> index de0c56a..812ed00 100644 >> --- a/datapath/linux/compat/include/linux/skbuff.h >> +++ b/datapath/linux/compat/include/

Re: [ovs-dev] [PATCH] lib/classifier: Use a prefix tree to optimize ports wildcarding.

2014-04-08 Thread Jarno Rajahalme
Ethan, I have not worked on this since, so this is the current version. Jarno On Apr 8, 2014, at 12:04 PM, Ethan Jackson wrote: > Should I review this version of the patch? Or do you have a non-RFC > version ready? > > Ethan > > On Mon, Mar 10, 2014 at 6:44 PM, Jarno Rajahalme > wrote: >

Re: [ovs-dev] [PATCH v2] bridge: don't bring up internal ports by default.

2014-04-08 Thread Flavio Leitner
On Tue, Apr 08, 2014 at 11:10:01AM -0700, Gurucharan Shetty wrote: > On Mon, Mar 31, 2014 at 1:19 PM, Ben Pfaff wrote: > > On Tue, Mar 25, 2014 at 02:50:17PM -0300, Flavio Leitner wrote: > >> It should be an administrator task to bring up devices as they > >> are configured properly. > >> > >> Cur

Re: [ovs-dev] [PATCH] lib/classifier: Use a prefix tree to optimize ports wildcarding.

2014-04-08 Thread Ethan Jackson
Should I review this version of the patch? Or do you have a non-RFC version ready? Ethan On Mon, Mar 10, 2014 at 6:44 PM, Jarno Rajahalme wrote: > Intended to send this as an RFC, > > Jarno > > On Mar 10, 2014, at 6:43 PM, Jarno Rajahalme wrote: > >> This should optimize port masks for megafl

Re: [ovs-dev] [PATCH 11/11] ofproto-dpif.at: Fix a race in "idle_age and hard_age increase over time"

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 10:39:42AM +0900, YAMAMOTO Takashi wrote: > > On Sun, Apr 06, 2014 at 11:30:13AM +0900, YAMAMOTO Takashi wrote: > >> Signed-off-by: YAMAMOTO Takashi > > > > Acked-by: Ben Pfaff > > > > Thanks a lot for fixing all these tests! Most of them do not > > regularly fail for m

Re: [ovs-dev] [PATCH] recirculation: Some cosmetic fixes

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 09:46:51AM +0900, YAMAMOTO Takashi wrote: > > Pravin, this patch includes a change to , will > > you look at that part? > > thanks for review. > > does that file need special treatments? It's part of the ABI for the kernel module, so I generally think it's good to get the

Re: [ovs-dev] [PATCH v2] ofproto-dpif: Always wait for ovs-ofctl exit in test-suite

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 11:17:32AM -0700, Ben Pfaff wrote: > On Tue, Apr 08, 2014 at 09:35:20AM +0900, Simon Horman wrote: > > Uniformly wait for calls to ovs-ofctl exit using > > OVS_APP_EXIT_AND_WAIT() in the test-suite. > > > > Signed-off-by: Simon Horman > > > > v2 > > * Always use OVS_APP_E

Re: [ovs-dev] [PATCH v2] ofproto-dpif: Always wait for ovs-ofctl exit in test-suite

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 09:35:20AM +0900, Simon Horman wrote: > Uniformly wait for calls to ovs-ofctl exit using > OVS_APP_EXIT_AND_WAIT() in the test-suite. > > Signed-off-by: Simon Horman > > v2 > * Always use OVS_APP_EXIT_AND_WAIT(ovs-ofctl) instead of > OVS_WAIT_UNTIL([ovs-appctl -t ovs-of

Re: [ovs-dev] Commit "ofproto-dpif.at: Wait for the monitor's pidfile disappears where necessary" breaks test 700

2014-04-08 Thread Lori Jakab
On 4/8/14, 3:34 AM, Simon Horman wrote: [ Added CC to dev@openvswitch.org which was strangely missing even though I recived the post via the list. Is the list configuration broken somehow? ] Not sure, I don't receive all messages from dev@ and thought it was a problem on our side, but di

Re: [ovs-dev] [PATCH v2] bridge: don't bring up internal ports by default.

2014-04-08 Thread Gurucharan Shetty
On Mon, Mar 31, 2014 at 1:19 PM, Ben Pfaff wrote: > On Tue, Mar 25, 2014 at 02:50:17PM -0300, Flavio Leitner wrote: >> It should be an administrator task to bring up devices as they >> are configured properly. >> >> Currently, Fedora is deleting the bridges when the interface is >> brought down. T

Re: [ovs-dev] [PATCH] datapath: Fix tracking of flags seen in TCP flows.

2014-04-08 Thread Ben Pfaff
Jesse, I believe that Pravin is traveling today. Will you review this? On Mon, Apr 07, 2014 at 03:35:26PM -0700, Ben Pfaff wrote: > Flow statistics need to take into account the TCP flags from the packet > currently being processed (in 'key'), not the TCP flags matched by the > flow found in the

Re: [ovs-dev] [openflow-discuss] Quick experimenting with OVS on OpenWrt

2014-04-08 Thread Ben Pfaff
[adding ovs-dev since there might be interest there] On Tue, Apr 08, 2014 at 11:56:28AM -0400, Alison Chan wrote: > Hi everyone, > > I was able to get OpenVswitch running on one of our TL-WR1043ND > routers running OpenWrt Attitude Adjustment. I was expecting somewhat > better performance than Pa

Re: [ovs-dev] [PATCH 1/2] ofproto/ofproto-dpif: Use ofpbuf API to access 'data' and 'size'.

2014-04-08 Thread Ben Pfaff
On Tue, Apr 08, 2014 at 08:59:03AM -0700, Jarno Rajahalme wrote: > A recent commit reintroduced some direct use of the ofpbuf 'data' and > 'size'. Use the access API instead. > > Signed-off-by: Jarno Rajahalme Acked-by: Ben Pfaff ___ dev mailing list

Re: [ovs-dev] [PATCH 2/2] lib/ofpbuf: Rename private fields to discourage direct use.

2014-04-08 Thread Alex Wang
Really like this one! For both: Acked-by: Alex Wang On Tue, Apr 8, 2014 at 8:59 AM, Jarno Rajahalme wrote: > Direct use of 'data', 'base', and 'size' will break DPDK builds. Try > to wean us off the habit by renaming the fields. > > Signed-off-by: Jarno Rajahalme > --- > lib/ofpbuf.h | 18

Re: [ovs-dev] [PATCH 1/4] datapath: Move table destroy to dp-rcu callback.

2014-04-08 Thread Thomas Graf
On 04/08/2014 12:00 AM, Pravin wrote: diff --git a/datapath/flow_table.c b/datapath/flow_table.c index 159572b..75c1b82 100644 --- a/datapath/flow_table.c +++ b/datapath/flow_table.c @@ -259,11 +259,11 @@ skip_flows: __table_instance_destroy(ti); } -void ovs_flow_tbl_destroy(st

[ovs-dev] [PATCH 1/2] ofproto/ofproto-dpif: Use ofpbuf API to access 'data' and 'size'.

2014-04-08 Thread Jarno Rajahalme
A recent commit reintroduced some direct use of the ofpbuf 'data' and 'size'. Use the access API instead. Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c in

[ovs-dev] [PATCH 2/2] lib/ofpbuf: Rename private fields to discourage direct use.

2014-04-08 Thread Jarno Rajahalme
Direct use of 'data', 'base', and 'size' will break DPDK builds. Try to wean us off the habit by renaming the fields. Signed-off-by: Jarno Rajahalme --- lib/ofpbuf.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index ea863d

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

2014-04-08 Thread Thomas Graf
On 04/07/2014 07:54 PM, Pritesh Kothari wrote: diff --git a/datapath/linux/compat/include/linux/etherdevice.h b/datapath/linux/compat/include/linux/etherdevice.h index 556729d..88f8ee3 100644 --- a/datapath/linux/compat/include/linux/etherdevice.h +++ b/datapath/linux/compat/include/linux/etherd

Re: [ovs-dev] [PATCH] datapath: Fix tracking of flags seen in TCP flows.

2014-04-08 Thread Jarno Rajahalme
Thanks for fixing this, Jarno Acked-by: Jarno Rajahalme On Apr 7, 2014, at 3:35 PM, Ben Pfaff wrote: > Flow statistics need to take into account the TCP flags from the packet > currently being processed (in 'key'), not the TCP flags matched by the > flow found in the kernel flow table (in '

Re: [ovs-dev] [PATCH 04/11] ofproto-dpif.at: Fix some races in megaflow tests

2014-04-08 Thread YAMAMOTO Takashi
> On 8 Apr 2014 12:56, "YAMAMOTO Takashi" wrote: > >> > On 7 April 2014 20:12, YAMAMOTO Takashi wrote: >> > >> >> > I've been looking at some races in the megaflow testcases recently as >> >> well, >> >> > with a slightly different approach, could you a look at my patch >> below? >> >> > >> >> >