[ovs-dev] [PATCH] bfd: Optimize BFD for Megaflows.

2013-08-05 Thread Gurucharan Shetty
The current situation is that whenever any packet enters the userspace, bfd_should_process_flow() looks at the UDP destination port to figure out whether that is a BFD packet. This means that UDP destination port cannot be wildcarded for all the other flows too. To optimize BFD for megaflows, we i

Re: [ovs-dev] could not open network device

2013-08-05 Thread Ben Pfaff
I don't know what to say, other than what I already said. Here it is again. I imagine that you don't have a network device named port1. Try adding one that you do (eth0?). On Sun, Aug 04, 2013 at 06:48:01AM +0530, f 62 wrote: > Ben, > > Here is the procedure I followed. > > 1. Created brid

Re: [ovs-dev] [PATCH 2/2] feature: Add ovs-ofctl parse-ofpraw command.

2013-08-05 Thread Ben Pfaff
On Sun, Aug 04, 2013 at 08:14:31PM -0700, Alex Wang wrote: > This commit adds a new commmand "ovs-ofctl parse-ofpraw" to ovs. > It allows user to parse undecoded raw OpenFlow messages into human > readable form. It can parse the output log of "ovs-appctl log/controller" > command. > > Signed-off-b

Re: [ovs-dev] [PATCH 2/2] feature: Add ovs-ofctl parse-ofpraw command.

2013-08-05 Thread Alex Wang
Thanks Ben for point that out, I'd very much like to review it. On Mon, Aug 5, 2013 at 10:37 AM, Ben Pfaff wrote: > On Sun, Aug 04, 2013 at 08:14:31PM -0700, Alex Wang wrote: > > This commit adds a new commmand "ovs-ofctl parse-ofpraw" to ovs. > > It allows user to parse undecoded raw OpenFlo

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Ben Pfaff
After some consultation with Andy, this is the commit message I ended up with. Jesse, Andy, is this correct? --8<--cut here-->8-- From: Andy Zhou Date: Sat, 3 Aug 2013 12:23:15 -0700 Subject: [PATCH] odp-util: Always export the priority and skb_ma

Re: [ovs-dev] [PATCH 1/8] ofproto-dpif-xlate: Maintain a pointer to struct dpif.

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:03PM -0700, Ethan Jackson wrote: > This allows us to move some minor functionality from ofproto-dpif to > ofproto-dpif-xlate, where it's easier to ensure it's thread safe. > > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Jesse Gross
On Mon, Aug 5, 2013 at 11:06 AM, Ben Pfaff wrote: > After some consultation with Andy, this is the commit message I ended > up with. Jesse, Andy, is this correct? > > --8<--cut here-->8-- > > From: Andy Zhou > Date: Sat, 3 Aug 2013 12:23:15 -0700 >

Re: [ovs-dev] [PATCH 2/8] ofproto-dpif: Guard rule statistics with a mutex.

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:04PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson In rule_destruct(), I think it would be better to destroy the mutex following complete_operation(). Who knows, that function might want to eventually look at the statistics. Acked-by: Ben Pfaff __

Re: [ovs-dev] [PATCH] ovs-ofctl: Add "ofp-parse" command for printing OpenFlow from a file.

2013-08-05 Thread Alex Wang
Looks good to me, tested with the ofp log snooped from controller. On Tue, Jul 23, 2013 at 11:13 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff --- > NEWS |2 + > utilities/ovs-ofctl.8.in |8 ++ > utilities/ovs-ofctl.c| 55 >

Re: [ovs-dev] [PATCH 3/8] ofproto-dpif: Hide rule_dpif_miss_rule().

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:05PM -0700, Ethan Jackson wrote: > It's simple to hide it than to make it thread safe and ensure it stays > that way in the long term. > > Signed-off-by: Ethan Jackson I don't like how this duplicates logic in two places. Could we have this code in just one place p

Re: [ovs-dev] [PATCH] bfd: Optimize BFD for Megaflows.

2013-08-05 Thread Ethan Jackson
This looks good to me. My only comment is that I'd prefer we store BFD_ETH_DST as an array of uint8_t in packets.h like we do for eth_addr_stp and eth_addr_lacp. Acked-by: Ethan Jackson On Mon, Aug 5, 2013 at 12:47 AM, Gurucharan Shetty wrote: > The current situation is that whenever any pack

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Ben Pfaff
On Mon, Aug 05, 2013 at 11:22:49AM -0700, Jesse Gross wrote: > This information is factually correct but it's not really related to > the change in this commit. > > The problem here is very simple: the current protocol allows a default > value of zero if either mark or priority is not specified (t

Re: [ovs-dev] [PATCH 4/8] ofproto-dpif: Make vlan splinters thread safe.

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:06PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson I wonder whether a rwlock is warranted here. Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 5/8] ofproto-dpif-xlate: Cleanup lookup functions.

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:07PM -0700, Ethan Jackson wrote: > This patch allows the lookup functions to take NULL as an argument as > a convenience. > > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http:

Re: [ovs-dev] [PATCH 2/8] ofproto-dpif: Guard rule statistics with a mutex.

2013-08-05 Thread Ethan Jackson
Good point, I made the change. Ethan On Mon, Aug 5, 2013 at 11:29 AM, Ben Pfaff wrote: > On Sat, Aug 03, 2013 at 06:42:04PM -0700, Ethan Jackson wrote: >> Signed-off-by: Ethan Jackson > > In rule_destruct(), I think it would be better to destroy the mutex > following complete_operation(). Who

Re: [ovs-dev] [PATCH 4/8] ofproto-dpif: Make vlan splinters thread safe.

2013-08-05 Thread Ethan Jackson
> I wonder whether a rwlock is warranted here. Probably. Ill leave that for when we go back and optimize. Ethan X-CudaMail-Whitelist-To: dev@openvswitch.org ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Andy Zhou
Ben's original commit message gives more background to the netlink protocol changes we have been making. It would be nice to keep them as well. On Mon, Aug 5, 2013 at 12:34 PM, Ben Pfaff wrote: > On Mon, Aug 05, 2013 at 11:22:49AM -0700, Jesse Gross wrote: > > This information is factually corr

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Jesse Gross
On Mon, Aug 5, 2013 at 12:34 PM, Ben Pfaff wrote: > On Mon, Aug 05, 2013 at 11:22:49AM -0700, Jesse Gross wrote: >> This information is factually correct but it's not really related to >> the change in this commit. >> >> The problem here is very simple: the current protocol allows a default >> val

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Jesse Gross
Those problems are different and not related to this change so it is confusing to have it here. On Mon, Aug 5, 2013 at 12:42 PM, Andy Zhou wrote: > Ben's original commit message gives more background to the netlink protocol > changes we have been making. It would be nice to keep them as well. > >

Re: [ovs-dev] [PATCH] BFD: Populate ToS field in BFD packets.

2013-08-05 Thread Pavithra Ramesh
Signed-off-by: Pavithra Ramesh Thanks, Pavithra - Original Message - From: "Ethan Jackson" To: "Pavithra Ramesh" Cc: dev@openvswitch.org Sent: Sunday, August 4, 2013 11:10:04 AM Subject: Re: [ovs-dev] [PATCH] BFD: Populate ToS field in BFD packets. This looks good, can I have your sig

Re: [ovs-dev] [PATCH] BFD: Edit the unit test time/stop command

2013-08-05 Thread Pavithra Ramesh
I just saw this. Sorry about the delay! Signed-off-by: Pavithra Ramesh Thanks, Pavithra - Original Message - From: "Ethan Jackson" To: "Pavithra Ramesh" Cc: dev@openvswitch.org Sent: Thursday, August 1, 2013 12:41:00 PM Subject: Re: [ovs-dev] [PATCH] BFD: Edit the unit test time/stop

Re: [ovs-dev] [PATCH 6/8] ofproto-dpif-xlate: Take responsibility for ofproto_receive().

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:08PM -0700, Ethan Jackson wrote: > ofproto_receive() is a slightly odd function which doesn't fit > perfectly in either ofproto-dpif or ofproto-dpif-xlate. However, it's > much easier to reason about its thread safety in ofproto-dpif-xlate, > so this patch moves it th

Re: [ovs-dev] [netdev 20/27] netdev: Make netdev_from_name() take a reference to its returned netdev.

2013-08-05 Thread Andy Zhou
looks good. Acked-by: Andy Zhou On Thu, Aug 1, 2013 at 2:29 PM, Ben Pfaff wrote: > This API change is necessary for thread safety, to be added in an upcoming > commit. Otherwise, the client would not be able to safely use the returned > netdev because it could already have been destroyed. >

Re: [ovs-dev] [PATCH 6/8] ofproto-dpif-xlate: Take responsibility for ofproto_receive().

2013-08-05 Thread Ethan Jackson
Thanks, I've merged those patches which didn't have comments. Ethan On Mon, Aug 5, 2013 at 12:54 PM, Ben Pfaff wrote: > On Sat, Aug 03, 2013 at 06:42:08PM -0700, Ethan Jackson wrote: >> ofproto_receive() is a slightly odd function which doesn't fit >> perfectly in either ofproto-dpif or ofproto-

Re: [ovs-dev] [netdev 19/27] netdev: Make netdev_get_devices() take a reference to each netdev.

2013-08-05 Thread Andy Zhou
On Thu, Aug 1, 2013 at 2:29 PM, Ben Pfaff wrote: > This API change is necessary for thread safety, to be added in an upcoming > commit. Otherwise, the client would not be able to actually use any of > the returned netdevs because they could already have been destroyed. > > Signed-off-by: Ben Pfa

Re: [ovs-dev] [PATCH] BFD: Populate ToS field in BFD packets.

2013-08-05 Thread Ethan Jackson
No problem. Thanks for writing these patches up. I've merged them Ethan On Mon, Aug 5, 2013 at 12:48 PM, Pavithra Ramesh wrote: > Signed-off-by: Pavithra Ramesh > > Thanks, > Pavithra > > - Original Message - > From: "Ethan Jackson" > To: "Pavithra Ramesh" > Cc: dev@openvswitch.org

Re: [ovs-dev] [netdev 18/27] netdev-provider: Remove unused function netdev_assert_class().

2013-08-05 Thread Andy Zhou
Acked-by: Andy Zhou On Thu, Aug 1, 2013 at 2:29 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/netdev-provider.h |6 -- > 1 file changed, 6 deletions(-) > > diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h > index 137b659..19230a1 100644 > --- a/lib/netdev-pro

Re: [ovs-dev] [PATCH] bfd: Optimize BFD for Megaflows.

2013-08-05 Thread Gurucharan Shetty
On Mon, Aug 5, 2013 at 12:25 PM, Ethan Jackson wrote: > This looks good to me. My only comment is that I'd prefer we store > BFD_ETH_DST as an array of uint8_t in packets.h like we do for > eth_addr_stp and eth_addr_lacp. > > Okay. I made the change and applied it to master and 1.12 > Acked-by

Re: [ovs-dev] [PATCH 7/8] ofproto-dpif: Make packet_ins thread safe.

2013-08-05 Thread Ben Pfaff
On Sat, Aug 03, 2013 at 06:42:09PM -0700, Ethan Jackson wrote: > This patch makes packet_ins thread safe by handing responsibility for > them to ofproto-dpif. > > Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff We have a couple of instances of code like this: if (ofproto->n_pins) {

Re: [ovs-dev] [netdev 16/27] netdev-linux: Move variable declaration inward in netdev_linux_cache_cb().

2013-08-05 Thread Andy Zhou
Acked-by: Andy Zhou On Thu, Aug 1, 2013 at 2:29 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > lib/netdev-linux.c |4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c > index 29daef8..ba0d863 100644 > --- a/lib/netdev

Re: [ovs-dev] [PATCH] cfm: update remote opstate only when a CCM is received.

2013-08-05 Thread Ethan Jackson
Thanks Paul. As part of this patch, I moved your name to the list of people who've contributed code in the AUTHORS file. Acked-by: Ethan Jackson On Fri, Aug 2, 2013 at 4:12 PM, Paul Ingram wrote: > The remote opstate for a CFM interface is presumed to be up unless a CCM is > received which si

[ovs-dev] [PATCH 1/4] bfd: Implement BFD decay.

2013-08-05 Thread Alex Wang
When there is no incoming data traffic at the interface for a period, BFD decay allows the bfd session to increase the min_rx. This is helpful in that some interfaces usually idle for long time. And cpu consumption can be reduced by processing fewer bfd control packets. Signed-off-by: Alex Wang -

[ovs-dev] [PATCH 4/4] bfd: Add unit tests for BFD decay.

2013-08-05 Thread Alex Wang
This commit adds unit tests for BFD decay feature. Signed-off-by: Alex Wang --- tests/bfd.at | 189 +++--- 1 file changed, 180 insertions(+), 9 deletions(-) diff --git a/tests/bfd.at b/tests/bfd.at index c54fff0..c1f78d2 100644 --- a/tests/bf

[ovs-dev] [PATCH 3/4] bfd: Fix the print format.

2013-08-05 Thread Alex Wang
This commit truncates the trailing whitespace in the 'flag' field out 'bfd/show' output. This is for the string matching in bfd unit test. Signed-off-by: Alex Wang --- lib/bfd.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bfd.c b/lib/bfd.c index 0a0089b..0af0eeb

[ovs-dev] [PATCH 2/4] bfd: Implements forwarding_if_rx

2013-08-05 Thread Alex Wang
This commit adds a new boolean option "forwarding_if_rx" to bfd. When forwarding_if_rx is true and BFD state is down, the forwarding field in "ovs-appctl bfd/show" output will still be true as long as there are incoming packets received. This is for indicating the link liveness when the link is co

Re: [ovs-dev] [PATCH 2/3] odp-util: Always export the priority and skb_mark netline attributes.

2013-08-05 Thread Ben Pfaff
On Mon, Aug 05, 2013 at 12:46:43PM -0700, Jesse Gross wrote: > On Mon, Aug 5, 2013 at 12:34 PM, Ben Pfaff wrote: > > On Mon, Aug 05, 2013 at 11:22:49AM -0700, Jesse Gross wrote: > >> This information is factually correct but it's not really related to > >> the change in this commit. > >> > >> The

Re: [ovs-dev] [PATCH] ovs-ofctl: Add "ofp-parse" command for printing OpenFlow from a file.

2013-08-05 Thread Alex Wang
Also, here is a test, if it is needed, ;D + +AT_SETUP([ovs-ofctl ofp-parse]) + +# Test the echo request/reply messages (0 payload). +AT_CHECK([echo -n -e \\x1\\x2\\x0\\x8\\x0\\x0\\x0\\x0\\x1\\x3\\x0\\x8\\x0\\x0\\x0\\x0 > binary_ofp_msg]) + +AT_CHECK([ovs-ofctl ofp-parse binary_ofp_msg], [0], [dnl

Re: [ovs-dev] [PATCH 1/4] bfd: Implement BFD decay.

2013-08-05 Thread Ethan Jackson
On Mon, Aug 5, 2013 at 2:04 PM, Alex Wang wrote: > When there is no incoming data traffic at the interface for a period, > BFD decay allows the bfd session to increase the min_rx. This is > helpful in that some interfaces usually idle for long time. And cpu > consumption can be reduced by processi

Re: [ovs-dev] [PATCH 4/4] bfd: Add unit tests for BFD decay.

2013-08-05 Thread Ethan Jackson
Let's just fold this into the bfd decay patch? I haven't read it yet. Ethan On Mon, Aug 5, 2013 at 2:04 PM, Alex Wang wrote: > This commit adds unit tests for BFD decay feature. > > Signed-off-by: Alex Wang > --- > tests/bfd.at | 189 > +++

Re: [ovs-dev] [PATCH 4/4] bfd: Add unit tests for BFD decay.

2013-08-05 Thread Alex Wang
Sure, I'll do that. On Mon, Aug 5, 2013 at 3:52 PM, Ethan Jackson wrote: > Let's just fold this into the bfd decay patch? I haven't read it yet. > > Ethan > > On Mon, Aug 5, 2013 at 2:04 PM, Alex Wang wrote: > > This commit adds unit tests for BFD decay feature. > > > > Signed-off-by: Alex Wa

Re: [ovs-dev] OF1.1+ Groups

2013-08-05 Thread Casey Barker
Hi Ben, I've had a "mostly working" implementation of groups for several months, but sadly not enough time in my schedule for a proper upstreaming effort. I don't expect to have time for at least a few more weeks. Would it help if I sent my ofproto and action bucket changes? Those were the most i

Re: [ovs-dev] [PATCH 1/4] bfd: Implement BFD decay.

2013-08-05 Thread Alex Wang
Thanks Ethan for the review. I'll add 'in_decay' flag and set bfd->min_rx to decay_min_rx, when receiving the FINAL packet. On Mon, Aug 5, 2013 at 3:35 PM, Ethan Jackson wrote: > On Mon, Aug 5, 2013 at 2:04 PM, Alex Wang wrote: > > When there is no incoming data traffic at the interface for a

Re: [ovs-dev] [PATCH 2/2] bfd: Implements forwarding_if_rx

2013-08-05 Thread Ethan Jackson
Thanks for writing this up, it's pretty close. In bfd_check_rx() the assertion makes me uncomfortable. I'd prefer we warn and reset bfd->rx_packets instead. Im worried that we could hit the assertion transiently during a configuration change. I'd prefer we don't use the bfd->detect_time for thi

[ovs-dev] [PATCH] ofproto: Include classifier wildcards in trace output.

2013-08-05 Thread Jesse Gross
When tracing a flow, it shows the "relevant fields" that were used to determine the results. However, this currently only includes fields that are used for computing the actions but not the flow lookup. This can be confusing so this patch includes the wildcards from the classifer lookup as well. S

Re: [ovs-dev] [PATCH 1/4] bfd: Implement BFD decay.

2013-08-05 Thread Ethan Jackson
> I'll add 'in_decay' flag and set bfd->min_rx to decay_min_rx, when receiving > the FINAL packet. It should be sufficient to set bfd->poll_min_rx to the appropriate value in the bfd_poll() function. The poll_min_rx is automatically copied to the min_rx field when the FINAL packet comes in. Etha

[ovs-dev] Please join the Open vSwitch Virtual Hackathon Sep. 6 and 7

2013-08-05 Thread Ben Pfaff
Open vSwitch Virtual Hackathon, Sep. 6-7, 2013 == What? - Our goal is to spend two days working hard to complete and polish Open vSwitch support for OpenFlow 1.1 and later. Open vSwitch already has significant support for these later protocols, but

Re: [ovs-dev] [PATCH v2.35 5/6] lib: Push MPLS tags in the OpenFlow 1.3 ordering

2013-08-05 Thread Joe Stringer
Hi Ben, I realise that you've agreed to let Jesse review the datapath patch first, but I wondered if I could get a little broad feedback on the approach on the userspace side. The general background to this patch is that we aim to keep the datapath interface for MPLS actions simple. As such, when

[ovs-dev] testing/benchmarking OVS

2013-08-05 Thread Zi Shen Lim
Hello, We added OVS into our continuous integration loop. https://ci.linaro.org/jenkins/view/lng-ci/job/openvswitch-arm-native-build/ Currently, we pull from master branch and natively build & run the testsuite on an ARM Cortex-A15 system. All 1280 tests were successful (SSL tests were skipped).

Re: [ovs-dev] OF1.1+ Groups

2013-08-05 Thread Simon Horman
Hi Casey, I'll let Ben answer for himself but from my point of view I think it would be helpful for you to send what you have and I would be more than happy to look at helping move things forwards from where you have got up to. On Mon, Aug 05, 2013 at 03:55:20PM -0700, Casey Barker wrote: > Hi Be