Re: [ovs-dev] [PATCH RFC 3/5] ofproto/bundles: Use staging area for port_mod messages

2014-05-20 Thread Alexandru Copot
On Mon, May 19, 2014 at 11:14 PM, Ben Pfaff wrote: > On Fri, May 09, 2014 at 07:35:21PM +0300, Alexandru Copot wrote: >> On Fri, May 9, 2014 at 6:42 PM, Ben Pfaff wrote: >> > On Tue, May 06, 2014 at 09:28:29PM +0300, Alexandru Copot wrote: >> >> Allow port_mod messa

Re: [ovs-dev] [of1.5 v2 07/20] ofp-util: Implement OpenFlow 1.4 port status and port desc reply messages.

2014-05-13 Thread Alexandru Copot
On Tue, May 13, 2014 at 9:55 AM, Alexandru Copot wrote: > On Tue, May 13, 2014 at 4:18 AM, Ben Pfaff wrote: >> On Sun, May 11, 2014 at 09:39:32PM +0300, Alexandru Copot wrote: >>> On Sat, May 10, 2014 at 5:40 AM, Ben Pfaff wrote: >>> > Signed-off-by: Ben Pfaff &g

Re: [ovs-dev] [of1.5 v2 07/20] ofp-util: Implement OpenFlow 1.4 port status and port desc reply messages.

2014-05-12 Thread Alexandru Copot
On Tue, May 13, 2014 at 4:18 AM, Ben Pfaff wrote: > On Sun, May 11, 2014 at 09:39:32PM +0300, Alexandru Copot wrote: >> On Sat, May 10, 2014 at 5:40 AM, Ben Pfaff wrote: >> > Signed-off-by: Ben Pfaff >> >> > >> > diff --git a/lib/ofp-msgs.h b/lib/ofp

Re: [ovs-dev] [of1.5 v2 07/20] ofp-util: Implement OpenFlow 1.4 port status and port desc reply messages.

2014-05-11 Thread Alexandru Copot
On Sat, May 10, 2014 at 5:40 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > > diff --git a/lib/ofp-msgs.h b/lib/ofp-msgs.h > index df7569e..b548f6b 100644 > --- a/lib/ofp-msgs.h > +++ b/lib/ofp-msgs.h > @@ -162,8 +162,10 @@ enum ofpraw { > > /* OFPT 1.0 (12): struct ofp_port_status, stru

Re: [ovs-dev] [PATCH RFC 3/5] ofproto/bundles: Use staging area for port_mod messages

2014-05-09 Thread Alexandru Copot
On Fri, May 9, 2014 at 6:42 PM, Ben Pfaff wrote: > On Tue, May 06, 2014 at 09:28:29PM +0300, Alexandru Copot wrote: >> Allow port_mod messages in a bundle and apply them to copies >> of struct ofport. The final state is commited to the original >> data structure and n

Re: [ovs-dev] [of1.5 6/9] ofp-util: Implement OpenFlow 1.4 port status and port desc reply messages.

2014-05-08 Thread Alexandru Copot
On Thu, May 8, 2014 at 9:56 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > build-aux/extract-ofp-msgs | 1 + > include/openflow/openflow-1.4.h| 41 +++- > include/openflow/openflow-common.h | 3 +- > lib/ofp-msgs.h | 14 ++-- > lib/ofp-util.

[ovs-dev] [PATCH RFC 2/5] ofproto: Export update_port_config() for future use

2014-05-06 Thread Alexandru Copot
This function is needed by the OF1.4 bundles. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/ofproto.c | 2 +- ofproto/ofproto.h | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index cf3f271..6b25b9b 100644 --- a

[ovs-dev] [PATCH RFC 3/5] ofproto/bundles: Use staging area for port_mod messages

2014-05-06 Thread Alexandru Copot
Allow port_mod messages in a bundle and apply them to copies of struct ofport. The final state is commited to the original data structure and notifications are sent. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/bundles.c | 189

[ovs-dev] [PATCH RFC 1/5] ofproto: Refactor handle_port_mod() by extracting validity check

2014-05-06 Thread Alexandru Copot
This will be later used by OF1.4 bundles to check added messages. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/ofproto.c | 33 +++-- ofproto/ofproto.h | 5 + 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/ofproto/ofproto.c b

[ovs-dev] [PATCH RFC 5/5] ofproto.at: Add bundles tests for queuing and port_mod

2014-05-06 Thread Alexandru Copot
These tests verify that echo requests and barriers are processed when bundles are open, while queuing other messages for later processing. The port_mod tests verify that changes to ports are correctly reflected after applying bundles. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- tests

[ovs-dev] [PATCH RFC 4/5] ofproto/connmgr: Queue messages while bundles are active

2014-05-06 Thread Alexandru Copot
When at least one OF1.4 bundle is open, only bundle related messages are processed by the switch. The rest are queued and processed after the bundles are done. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/connmgr.c | 124 ++ 1

[ovs-dev] [PATCH RFC 0/5] OF1.4 Bundles with port-mod messages

2014-05-06 Thread Alexandru Copot
f a single bundle at a time. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Alexandru Copot (5): ofproto: Refactor handle_port_mod() by extracting validity check ofproto: Export update_port_config() for future use ofproto/bundles: Use staging area for port_mod messages ofproto/conn

[ovs-dev] [PATCH v6] Add basic implementation for OpenFlow 1.4 bundles

2014-05-01 Thread Alexandru Copot
This is only the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. We also enable OF1.4 for all the tests. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v6: * return error code for invalid inner message size v5

[ovs-dev] [PATCH v5 1/2] Add basic implementation for OpenFlow 1.4 bundles

2014-05-01 Thread Alexandru Copot
This is only the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. We also enable OF1.4 for all the tests. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v5: * fold tests patch * add ofputil_encode_bundle_add

[ovs-dev] [PATCH v5 2/2] ofp-print: Enable printing OF1.4 version

2014-05-01 Thread Alexandru Copot
Also fix some tests that can now properly print packets with the new protocol version. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/ofp-print.c| 3 +++ tests/ofp-print.at | 6 +++--- tests/ofp-util.at | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib

[ovs-dev] [PATCH v4 1/3] Add basic implementation for OpenFlow 1.4 bundles

2014-04-23 Thread Alexandru Copot
This is only the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot --- v4: * adjust copyright * fix style issues * remove all locking * delete bundles in ofconn_destroy() v3: * rebase

[ovs-dev] [PATCH v4 3/3] ofp-print: Enable printing OF1.4 version

2014-04-22 Thread Alexandru Copot
Also fix some tests that can now properly print packets with the new protocol version. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v4: moved version print change here --- lib/ofp-print.c| 3 +++ tests/ofp-print.at | 6 +++--- tests/ofp-util.at | 2 +- 3 files changed, 7

[ovs-dev] [PATCH v4 1/3] Add basic implementation for OpenFlow 1.4 bundles

2014-04-22 Thread Alexandru Copot
This is only the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v4: * adjust copyright * fix style issues * remove locking in ofconn * delete bundles in

[ovs-dev] [PATCH v4 2/3] tests: add some OpenFlow 1.4 bundles tests

2014-04-22 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v4: rebase v3: small fix v2: rebase --- tests/ofp-print.at | 125 ++ tests/ofproto-macros.at | 4 +- tests/ofproto.at| 234 3 files changed, 361

[ovs-dev] [PATCH v4 0/3] Initial implementation of OpenFlow 1.4 bundles

2014-04-22 Thread Alexandru Copot
This series adds the basic communication handlers for the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Alexandru Copot (3): Add basic implementation for OpenFlow 1.4 bundles tests: add some

Re: [ovs-dev] [PATCH v3 1/3] Add basic implementation for OpenFlow 1.4 bundles

2014-04-11 Thread Alexandru Copot
Thanks a lot for the feedback. You can find my answers inline. We will get back with v4 asap. On Thu, Apr 10, 2014 at 9:38 PM, Ben Pfaff wrote: > On Fri, Apr 04, 2014 at 11:58:29AM +0300, Alexandru Copot wrote: >> This is only the communication part of the bundles functionality. >

Re: [ovs-dev] [PATCH v3 3/3] tests: fix broken tests after enabling OpenFlow 1.4

2014-04-11 Thread Alexandru Copot
On Thu, Apr 10, 2014 at 10:19 PM, Ben Pfaff wrote: > On Fri, Apr 04, 2014 at 11:58:31AM +0300, Alexandru Copot wrote: >> These tests can now properly print packets with the new protocol version. >> >> Signed-off-by: Alexandru Copot >> Cc: Daniel Baluta > > I gu

Re: [ovs-dev] [PATCH v3 2/3] tests: add some OpenFlow 1.4 bundles tests

2014-04-11 Thread Alexandru Copot
On Thu, Apr 10, 2014 at 9:41 PM, Ben Pfaff wrote: > On Fri, Apr 04, 2014 at 11:58:30AM +0300, Alexandru Copot wrote: >> This also enables OF1.4 for all the tests. >> >> Signed-off-by: Alexandru Copot >> Cc: Daniel Baluta > > It's good as far as it goes,

[ovs-dev] [PATCH v3 1/3] Add basic implementation for OpenFlow 1.4 bundles

2014-04-04 Thread Alexandru Copot
This is only the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v3: * rebase * adjusted to use ofpbuf_l3() * bug fixes v2: rebase --- lib/learning-switch.c | 2

[ovs-dev] [PATCH v3 3/3] tests: fix broken tests after enabling OpenFlow 1.4

2014-04-04 Thread Alexandru Copot
These tests can now properly print packets with the new protocol version. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- tests/ofp-print.at | 6 +++--- tests/ofp-util.at | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ofp-print.at b/tests/ofp-print.at index

[ovs-dev] [PATCH v3 2/3] tests: add some OpenFlow 1.4 bundles tests

2014-04-04 Thread Alexandru Copot
This also enables OF1.4 for all the tests. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- v3: small fix v2: rebase --- tests/ofp-print.at | 125 ++ tests/ofproto-macros.at | 4 +- tests/ofproto.at| 234

[ovs-dev] [PATCH v3 0/3] Initial implementation of OpenFlow 1.4 bundles

2014-04-04 Thread Alexandru Copot
This series adds the basic communication handlers for the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Alexandru Copot (3): Add basic implementation for OpenFlow 1.4 bundles tests: add some

Re: [ovs-dev] hackathon idea list

2014-04-01 Thread Alexandru Copot
On Mar 28, 2014 11:27 PM, "Ben Pfaff" wrote: > > On Fri, Mar 28, 2014 at 09:24:42PM +0200, Alexandru Copot wrote: > > On Wed, Mar 26, 2014 at 7:11 AM, Ben Pfaff wrote: > > > > > OpenFlow 1.4 Role Status Message > > > -

Re: [ovs-dev] hackathon idea list

2014-03-28 Thread Alexandru Copot
On Wed, Mar 26, 2014 at 7:11 AM, Ben Pfaff wrote: > OpenFlow 1.4 Role Status Message > > > OpenFlow 1.4 section 7.4.4 ``Controller Role Status Message'' > defines a new message sent by a switch to notify the controller that > its role (whether it is a master or a

[ovs-dev] [PATCH v2 2/3] tests: add OpenFlow 1.4 bundles tests

2014-03-25 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- Changes since v1: * rebase * add "--enable-of14" to OVS_VSWITCHD_START --- tests/ofp-print.at | 124 + tests/ofproto-macros.at | 4 +- tests/ofproto.at

[ovs-dev] [PATCH v2 1/3] Add basic implementation for OpenFlow 1.4 bundles

2014-03-25 Thread Alexandru Copot
This patch implements the communication part of the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- Changes since v1: rebase --- lib/learning-switch.c | 2 + lib/ofp-errors.h | 52

[ovs-dev] [PATCH v2 3/3] tests: fix broken tests after enabling OpenFlow 1.4

2014-03-25 Thread Alexandru Copot
These tests can now properly print packets with the new protocol version. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- Changes since v1: rebase --- tests/ofp-print.at | 6 +++--- tests/ofp-util.at | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ofp

[ovs-dev] [PATCH v2 0/3] Initial implementation of OpenFlow 1.4 bundles

2014-03-25 Thread Alexandru Copot
This series adds the basic communication handlers for the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Alexandru Copot (3): Add basic implementation for OpenFlow 1.4 bundles tests: add OpenFlow

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-24 Thread Alexandru Copot
On Sun, Mar 23, 2014 at 11:58 PM, Ben Pfaff wrote: > I decided that the best thing to do here was to do it myself, so I > committed your patch 1/5 (with a few adjustments) followed by a patch > that disables OF1.4 unless one specifies --enable-of14 on the > ovs-vswitchd command line. This should

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-21 Thread Alexandru Copot
On Tue, Mar 18, 2014 at 12:07 AM, Ben Pfaff wrote: >> > >> > The one bit that I'm concerned about is that it allows OpenFlow 1.4 to >> > be enabled even though there are unimplemented messages that will cause >> > Open vSwitch to abort if ovs-vswitchd receives one. >> >> This was my concern too af

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-17 Thread Alexandru Copot
On Mon, Mar 17, 2014 at 7:08 AM, Ben Pfaff wrote: > On Mon, Mar 03, 2014 at 03:22:32PM +0200, Alexandru Copot wrote: >> This defines the version number for OpenFlow 1.4 so that the switch >> can actually use it. The ovsdb schema is also modified. >> >> Signed-off

[ovs-dev] [PATCH 1/5] openflow-1.4.h: Add bundle structure definitions

2014-03-13 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- include/openflow/openflow-1.4.h | 45 + 1 file changed, 45 insertions(+) diff --git a/include/openflow/openflow-1.4.h b/include/openflow/openflow-1.4.h index 332a0d3..f012e25 100644 --- a/include

Re: [ovs-dev] [PATCH 1/5] openflow-1.4.h: Add bundle structure definitions

2014-03-07 Thread Alexandru Copot
On Mon, Mar 3, 2014 at 11:52 PM, Ben Pfaff wrote: > On Mon, Mar 03, 2014 at 11:51:48PM +0200, Alexandru Copot wrote: >> On Mon, Mar 3, 2014 at 11:00 PM, Ben Pfaff wrote: >> > The above data structure isn't needed; OVS already handles experimenter >> > error cod

Re: [ovs-dev] [PATCH 1/5] openflow-1.4.h: Add bundle structure definitions

2014-03-03 Thread Alexandru Copot
On Mon, Mar 3, 2014 at 11:00 PM, Ben Pfaff wrote: > The above data structure isn't needed; OVS already handles experimenter > error codes through infrastructure in ofp-error.h. You can update that > file with any new error types or codes. > > The various generic "property" definitions here have t

[ovs-dev] [PATCH 0/5] Initial implementation of OpenFlow 1.4 bundles

2014-03-03 Thread Alexandru Copot
This series adds the basic communication handlers for the bundles functionality. The actual message pre-validation and commits are not implemented. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Alexandru Copot (5): openflow-1.4.h: Add bundle structure definitions ofproto: Allow the use

[ovs-dev] [PATCH 1/5] openflow-1.4.h: Add bundle structure definitions

2014-03-03 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- include/openflow/openflow-1.4.h | 114 1 file changed, 114 insertions(+) diff --git a/include/openflow/openflow-1.4.h b/include/openflow/openflow-1.4.h index 332a0d3..a6645b9 100644 --- a/include

[ovs-dev] [PATCH 4/5] tests: add OpenFlow 1.4 bundles tests

2014-03-03 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- tests/ofp-print.at | 124 + tests/ofproto-macros.at | 2 +- tests/ofproto.at| 234 3 files changed, 359 insertions(+), 1 deletion(-) diff --git a/tests

[ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-03 Thread Alexandru Copot
This defines the version number for OpenFlow 1.4 so that the switch can actually use it. The ovsdb schema is also modified. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- build-aux/extract-ofp-errors | 3 +- build-aux/extract-ofp-msgs | 8 +-- include/openflow/openflow

[ovs-dev] [PATCH 3/5] Add basic implementation for OpenFlow 1.4 bundles

2014-03-03 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/learning-switch.c | 2 + lib/ofp-errors.h | 52 +++ lib/ofp-msgs.h| 10 ++ lib/ofp-print.c | 95 +++ lib/ofp-util.c| 57 lib/ofp-util.h| 20 lib/rconn.c

[ovs-dev] [PATCH 5/5] tests: fix broken tests after enabling OpenFlow 1.4

2014-03-03 Thread Alexandru Copot
These tests can now properly print packets with the new protocol version. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- tests/ofp-errors.at | 2 ++ tests/ofp-print.at | 6 +++--- tests/ofp-util.at | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ofp

[ovs-dev] OpenFlow 1.4 Bundles

2013-12-05 Thread Alexandru Copot
Hello, I want to announce that I want to work on the bundles feature for OpenFlow 1.4. This way we can avoid duplicating the effort. Most of the bundle features are easy to implement so this is what I am going to do first. However, the actual commit of the messages will be a challenge. I am think

[ovs-dev] [PATCH] ovsdb-tool: replace tabs with spaces

2013-11-01 Thread Alexandru Copot
Signed-off-by: Alexandru Copot --- ovsdb/ovsdb-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c index 11e61e6..5e2b71b 100644 --- a/ovsdb/ovsdb-tool.c +++ b/ovsdb/ovsdb-tool.c @@ -524,7 +524,7 @@ do_show_log(int argc, char *argv

[ovs-dev] [PATCH 1/2 v2] include/openflow: Add OpenFlow 1.4 header file

2013-10-22 Thread Alexandru Copot
It contains only Set-Async-Config and Role status message definitions. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- The OFPACPT_ and OFPTFPT_ are still named like this. It's the way they are defined in the header file in the specification. build-aux/extract-ofp-msgs

[ovs-dev] [PATCH 0/2 v2] Add Role Status Message support (OF1.4)

2013-10-22 Thread Alexandru Copot
length arrays from messages and added comments for them - refactored parts of ofp_print_role_message() - added ofp-print.at test - sparse fixes Alexandru Copot (2): include/openflow: Add OpenFlow 1.4 header file add support for sending OFPTYPE_ROLE_STATUS messages build-aux/extract-ofp-msgs

[ovs-dev] [PATCH 2/2 v2] add support for sending OFPTYPE_ROLE_STATUS messages

2013-10-22 Thread Alexandru Copot
When a controller changes its role to MASTER, the others are marked as SLAVE. This patch makes it possible to notify the controllers of this change. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- include/openflow/openflow-1.4.h | 3 +- lib/ofp-print.c | 65

Re: [ovs-dev] [PATCH 0/6 RFC] Role status message support (OpenFlow 1.4)

2013-10-09 Thread Alexandru Copot
On Wed, Oct 9, 2013 at 12:31 AM, Ben Pfaff wrote: > Thank you for the contribution. > > My only overall comment is that this series seems to be broken up into > too many patches. I think that it's logically a one or two patch > series. Thank you for the feedback. I will try to address all the is

[ovs-dev] [PATCH 5/6 RFC] lib/ofp-util: add decoder for role status asynchronous message

2013-10-08 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/ofp-util.c | 27 +++ lib/ofp-util.h | 2 ++ 2 files changed, 29 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 9bc30a7..cdc9f16 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3923,6

[ovs-dev] [PATCH 3/6 RFC] lib/ofp-util: add support for encoding OFPTYPE_ROLE_STATUS messages

2013-10-08 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/ofp-util.c | 17 + lib/ofp-util.h | 10 ++ 2 files changed, 27 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 173b534..9bc30a7 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3906,6 +3906,23

[ovs-dev] [PATCH 2/6 RFC] openflow-1.4: Add OFPTYPE_ROLE_STATUS message type

2013-10-08 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/learning-switch.c | 1 + lib/ofp-msgs.h| 6 ++ lib/ofp-print.c | 2 ++ lib/rconn.c | 1 + ofproto/ofproto.c | 1 + 5 files changed, 11 insertions(+) diff --git a/lib/learning-switch.c b/lib/learning

[ovs-dev] [PATCH 1/6 RFC] include/openflow: Add OpenFlow 1.4 header file

2013-10-08 Thread Alexandru Copot
It contains only Set-Async-Config and Role status message definitions. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- build-aux/extract-ofp-msgs | 3 + include/openflow/automake.mk| 4 + include/openflow/openflow-1.4.h | 163 include

[ovs-dev] [PATCH 6/6 RFC] lib/ofp-print: add support for printing role status messages

2013-10-08 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/ofp-print.c | 51 +++ 1 file changed, 51 insertions(+) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 0feabe1..1894778 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1886,6

[ovs-dev] [PATCH 4/6 RFC] ofproto/connmgr: notify controllers when their role changes to slave

2013-10-08 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/connmgr.c | 15 +++ ofproto/connmgr.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 8a4195d..0a21b3d 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -864,6

[ovs-dev] [PATCH 0/6 RFC] Role status message support (OpenFlow 1.4)

2013-10-08 Thread Alexandru Copot
This series adds the required functionality for notifying controllers with the OFPT_ROLE_STATUS message introduced in OpenFlow 1.4. Currently, this message is sent only when another controller asks that his role is changed to master. Alexandru Copot (6): include/openflow: Add OpenFlow 1.4

Re: [ovs-dev] [PATCH 1/3] ofproto: implement OFPT_GET_ASYNC_REQUEST

2013-09-07 Thread Alexandru Copot
On Sat, Sep 7, 2013 at 7:54 PM, Ben Pfaff wrote: > On Sat, Sep 07, 2013 at 03:36:21PM +0300, Alexandru Copot wrote: >> Signed-off-by: Alexandru Copot >> Cc: Daniel Baluta > > "sparse" reported that the byte order conversions were reversed, so I > folded this in

[ovs-dev] [PATCH 3/3] tests/ofproto: add basic test for OFPT_GET_ASYNC_REQUEST/REPLY

2013-09-07 Thread Alexandru Copot
This only checks the default settings. Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- tests/ofproto.at | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tests/ofproto.at b/tests/ofproto.at index 38bfb02..44f81b8 100644 --- a/tests/ofproto.at +++ b

[ovs-dev] [PATCH 2/3] ofp-print: display OFPT_GET_ASYNC_REPLY in same way as OFPT_SET_ASYNC

2013-09-07 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- lib/ofp-print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 518f9af..b280a37 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -2374,8 +2374,6 @@ ofp_to_string__(const

[ovs-dev] [PATCH 1/3] ofproto: implement OFPT_GET_ASYNC_REQUEST

2013-09-07 Thread Alexandru Copot
Signed-off-by: Alexandru Copot Cc: Daniel Baluta --- ofproto/connmgr.c | 9 + ofproto/connmgr.h | 3 +++ ofproto/ofproto.c | 29 - 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 1e9ef5b..2f315e6

[ovs-dev] [PATCH 0/3] Implement OFPT_GET_ASYNC_REQUEST, OFPT_GET_ASYNC_REPLY

2013-09-07 Thread Alexandru Copot
This series adds a handler for OFPT_GET_ASYNC_REQUEST which sends an OFPT_GET_ASYNC_REPLY with the configured settings. It also allows printing reply messages with the existing code used for OFPT_SET_ASYNC. Finally, there is a basic test which checks the default reply output. Alexandru Copot (3

[ovs-dev] [PATCH 2/2] dpif-netdev: Do not allow adding loopback devices

2013-09-07 Thread Alexandru Copot
Signed-off-by: Alexandru Copot --- lib/dpif-netdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 46eb743..0d489ba 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -407,6 +407,7 @@ do_add_port(struct dp_netdev

[ovs-dev] [PATCH 0/2] netdev: Don't allow adding loopback devices

2013-09-07 Thread Alexandru Copot
This series fixes a behaviour found in a comment in dpif-netdev.c by rejecting loopback devices when trying to add them as a port. Alexandru Copot (2): netdev: update IFF_LOOPBACK flag for linux and bsd devices dpif-netdev: Do not allow adding loopback devices lib/dpif-netdev.c | 9

[ovs-dev] [PATCH 1/2] netdev: update IFF_LOOPBACK flag for linux and bsd devices

2013-09-07 Thread Alexandru Copot
Signed-off-by: Alexandru Copot --- lib/netdev-bsd.c | 6 ++ lib/netdev-linux.c | 6 ++ 2 files changed, 12 insertions(+) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index fdea10b..3eb29ea 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -1428,6 +1428,9 @@ nd_to_iff_flags

Re: [ovs-dev] [ovs-announce] Task List for Open vSwitch Hackathon Sep. 6 and 7

2013-09-01 Thread Alexandru Copot
On Fri, Aug 30, 2013 at 7:10 PM, Ben Pfaff wrote: > [redirecting to ovs-dev] >> > * OFPT_FLOW_MOD ability to delete flows in all tables. >> I would like to do this. > > Thanks! I would like to work on event filtering (OFPT_SET_ASYNC). However, it seems that OFPT_SET_ASYNC is already implemented