Re: [ovs-dev] [idl 3/4] ovsdb-idl: Improve ovsdb_idl_txn_increment() interface.

2012-03-27 Thread Reid Price
Glanced at python, seems good On Tue, Mar 27, 2012 at 5:00 PM, Ben Pfaff wrote: > The previous interface was just bizarre. > > Signed-off-by: Ben Pfaff > --- > tests/test-ovsdb.py | 14 ++ > > > diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py > index b0e42a3..77b3a2c 1

[ovs-dev] [PATCH 4/4] Definitions for Open Flow 1.2

2012-03-27 Thread Simon Horman
This is a first pass at adding include/openflow/openflow-1.2.h to include enum and struct definitions for Open Flow 1.2 that are not already covered by Open Flow 1.1. Signed-off-by: Simon Horman --- v2 As suggested by Ben Pfaff * Use ovs_be{16,32,64} in place of uint_{16,32,64} * Only include i

[ovs-dev] [PATCH 3/4] Add some missing Open Flow 1.1 definitions

2012-03-27 Thread Simon Horman
Signed-off-by: Simon Horman --- include/openflow/openflow-1.1.h | 564 +++ 1 files changed, 564 insertions(+), 0 deletions(-) diff --git a/include/openflow/openflow-1.1.h b/include/openflow/openflow-1.1.h index d02ece3..cdcfbd0 100644 --- a/include/openflow/o

[ovs-dev] [PATCH 2/4] Add some missing Open Flow 1.0 definitions

2012-03-27 Thread Simon Horman
Signed-off-by: Simon Horman --- include/openflow/openflow-1.0.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/include/openflow/openflow-1.0.h b/include/openflow/openflow-1.0.h index 5844a96..2394cdb 100644 --- a/include/openflow/openflow-1

[ovs-dev] [PATCH 0/4 v3] Open Flow 1.2 definitions for Open vSwitch

2012-03-27 Thread Simon Horman
Hi, this short series adds enum and struct definitions for Open Flow 1.2 to Open vSwitch. Some missing Open Flow 1.0 and 1.1 definitions have also been added. None of the definitions added by this series are used yet, rather this is preliminary work that an implementation could be based on. The o

[ovs-dev] [PATCH 1/4] Add some missing common Open Flow definitions

2012-03-27 Thread Simon Horman
Signed-off-by: Simon Horman --- include/openflow/openflow-common.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 89c191b..43414f4 100644 --- a/include/openflow/

[ovs-dev] [idl 4/4] ovsdb-idl: Improve documentation.

2012-03-27 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 126 -- lib/ovsdb-idl.h | 51 - python/ovs/db/idl.py | 116 ++--- 3 files changed, 280 insertions(+), 13 deletions(-) diff --gi

[ovs-dev] [idl 3/4] ovsdb-idl: Improve ovsdb_idl_txn_increment() interface.

2012-03-27 Thread Ben Pfaff
The previous interface was just bizarre. Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 41 - lib/ovsdb-idl.h |5 +++-- python/ovs/db/idl.py | 41 +++-- tests/ovsdb-idl.at|4 ++-- tests/test-

[ovs-dev] [idl 2/4] ovsdb-idl: Simplify transaction retry.

2012-03-27 Thread Ben Pfaff
Originally the IDL transaction state machine had a return value TXN_TRY_AGAIN to signal the client to wait for a change in the database and then retry its transaction. However, this logic was incomplete, because it was possible for the database to change before the reply to the transaction RPC was

[ovs-dev] [idl 1/4] ovs-monitor-ipsec: Use same pattern as ovs-xapi-sync.

2012-03-27 Thread Ben Pfaff
This does not fix an actual bug in ovs-monitor-ipsec because it does not ever commit any changes to the database. Signed-off-by: Ben Pfaff --- debian/ovs-monitor-ipsec |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ips

[ovs-dev] [idl 0/4] IDL cleanups

2012-03-27 Thread Ben Pfaff
I guess I'm the only one really comfortable with the IDL. I hope this helps. Ben Pfaff (4): ovs-monitor-ipsec: Use same pattern as ovs-xapi-sync. ovsdb-idl: Simplify transaction retry. ovsdb-idl: Improve ovsdb_idl_txn_increment() interface. ovsdb-idl: Improve documentation. debian/ovs-m

Re: [ovs-dev] [PATCH] Avoid possibly including an old vswitch-idl.h.

2012-03-27 Thread Ben Pfaff
I didn't try it either ;-) I don't think the other files have corresponding issues. On Tue, Mar 27, 2012 at 04:07:42PM -0700, Justin Pettit wrote: > I didn't try it, but looks reasonable to me. Should we be deleting > some of the other generated files? Such as ".ann" and ".ovsidl"? > > --Justi

Re: [ovs-dev] [of1.2 errors 4/4] Add error codes for Open Flow v1.2

2012-03-27 Thread Simon Horman
On Tue, Mar 27, 2012 at 09:20:42AM -0700, Ben Pfaff wrote: > On Tue, Mar 27, 2012 at 10:23:38AM +0900, Simon Horman wrote: > > On Mon, Mar 26, 2012 at 01:59:20PM -0700, Ben Pfaff wrote: > > > From: Simon Horman > > > > > > * Where Open Flow 1.2 breaks apart error codes defined > > > in previous

Re: [ovs-dev] [PATCH] Avoid possibly including an old vswitch-idl.h.

2012-03-27 Thread Justin Pettit
I didn't try it, but looks reasonable to me. Should we be deleting some of the other generated files? Such as ".ann" and ".ovsidl"? --Justin On Mar 27, 2012, at 3:59 PM, Ben Pfaff wrote: > Codes that uses #include "vswitch-idl.h" can get an older version of this > header, because this header

[ovs-dev] [PATCH] Avoid possibly including an old vswitch-idl.h.

2012-03-27 Thread Ben Pfaff
Codes that uses #include "vswitch-idl.h" can get an older version of this header, because this header file moved from vswitchd/ to lib/ and the older generated file might still be present. This helps out two ways: * "make clean" will delete the generated files from their old locations

Re: [ovs-dev] [PATCH] Allow configuring DSCP on controller and manager connections.

2012-03-27 Thread Justin Pettit
> What if we do both that and write #include "lib/vswitch-idl.h" instead > of plain #include "vswitch-idl.h" for a while? I often don't run "make > clean" when switching branches and, really, I shouldn't have to. Sounds reasonable to me. Do you mind handling it? Thanks! --Justin _

Re: [ovs-dev] [PATCH] dpif-netdev: Correct type of struct dp_netdev_flow's 'tcp_flags' member.

2012-03-27 Thread Ben Pfaff
On Tue, Mar 27, 2012 at 10:24:30AM -0700, Jesse Gross wrote: > On Tue, Mar 27, 2012 at 10:20 AM, Ben Pfaff wrote: > > TCP flags fit in 8 bits so this type seems more appropriate. > > > > Fixes the following "sparse" warnings introduced by commit 734ec5ec1349 > > (packet: Add additional TCP flags e

Re: [ovs-dev] [PATCH] dpif-netdev: Correct type of struct dp_netdev_flow's 'tcp_flags' member.

2012-03-27 Thread Jesse Gross
On Tue, Mar 27, 2012 at 10:20 AM, Ben Pfaff wrote: > TCP flags fit in 8 bits so this type seems more appropriate. > > Fixes the following "sparse" warnings introduced by commit 734ec5ec1349 > (packet: Add additional TCP flags extraction on IPv6.): > > dpif-netdev.c:630: warning: incorrect type in

[ovs-dev] [PATCH] dpif-netdev: Correct type of struct dp_netdev_flow's 'tcp_flags' member.

2012-03-27 Thread Ben Pfaff
TCP flags fit in 8 bits so this type seems more appropriate. Fixes the following "sparse" warnings introduced by commit 734ec5ec1349 (packet: Add additional TCP flags extraction on IPv6.): dpif-netdev.c:630: warning: incorrect type in assignment (different base types) dpif-netdev.c:630:expect

Re: [ovs-dev] [of1.2 errors 4/4] Add error codes for Open Flow v1.2

2012-03-27 Thread Ben Pfaff
On Tue, Mar 27, 2012 at 10:23:38AM +0900, Simon Horman wrote: > On Mon, Mar 26, 2012 at 01:59:20PM -0700, Ben Pfaff wrote: > > From: Simon Horman > > > > * Where Open Flow 1.2 breaks apart error codes defined > > in previous versions, provide all new definitions to > > previous versions and m

Re: [ovs-dev] STT Implementation Thoughts

2012-03-27 Thread Simon Horman
On Mon, Mar 26, 2012 at 02:36:31PM +0900, Simon Horman wrote: > On Wed, Mar 21, 2012 at 12:09:09PM -0700, Jesse Gross wrote: > > On Wed, Mar 21, 2012 at 1:52 AM, Simon Horman wrote: > > > Hi Jesse, Hi all, > > > > > > I am currently investigating how STT[1] may be implemented for Open > > > vSwti