Re: [ovs-dev] [PATCH] jsonrpc: Correctly setting the dscp value before reconnect.

2012-06-19 Thread Mehak Mahajan
I have made these changes. Pushed to master. Thanks Ben, Ravi. On Tue, Jun 19, 2012 at 7:51 PM, Ben Pfaff wrote: > On Tue, Jun 19, 2012 at 07:19:44PM -0700, Mehak Mahajan wrote: > > In commit b2e18d(No need to restart DB / OVS on changing dscp value.), > the > > dscp value was wrongly set after

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread Ben Pfaff
Thanks for the report. Mehak found the problem: http://openvswitch.org/pipermail/dev/2012-June/018145.html and I expect that she will commit the fix soon. On Tue, Jun 19, 2012 at 03:45:32PM -0700, ravi kerur wrote: > this is all it has... > > root@:~/tmp_ovs/openvswitch# cat > /usr/local

Re: [ovs-dev] [PATCH] jsonrpc: Correctly setting the dscp value before reconnect.

2012-06-19 Thread Ben Pfaff
On Tue, Jun 19, 2012 at 07:19:44PM -0700, Mehak Mahajan wrote: > In commit b2e18d(No need to restart DB / OVS on changing dscp value.), the > dscp value was wrongly set after the reconnect. > > Signed-off-by: Mehak Mahajan Thanks, Mehak. Ravi reported this earlier today: http://openvswi

[ovs-dev] [PATCH] jsonrpc: Correctly setting the dscp value before reconnect.

2012-06-19 Thread Mehak Mahajan
In commit b2e18d(No need to restart DB / OVS on changing dscp value.), the dscp value was wrongly set after the reconnect. Signed-off-by: Mehak Mahajan --- lib/jsonrpc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index ce5d2b4..4870da8

Re: [ovs-dev] [PATCH] datapath: Support for kernel 3.4

2012-06-19 Thread Pravin Shelar
Thanks, Pushed to master. On Tue, Jun 19, 2012 at 6:01 PM, Jesse Gross wrote: > On Tue, Jun 19, 2012 at 5:48 PM, Pravin B Shelar wrote: >> Signed-off-by: Pravin B Shelar >> --- >>  datapath/datapath.c |    4 ++-- >>  1 file changed, 2 insertions(+), 2 deletions(-) > > Acked-by: Jesse Gross ___

Re: [ovs-dev] [PATCH] datapath: Support for kernel 3.4

2012-06-19 Thread Jesse Gross
On Tue, Jun 19, 2012 at 5:48 PM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar > --- >  datapath/datapath.c |    4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org http://

[ovs-dev] [PATCH] datapath: Support for kernel 3.4

2012-06-19 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- datapath/datapath.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index c2cb6b1..28e0573 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -61,8 +61,8 @@ #include "vport-internal

Re: [ovs-dev] [PATCH] datapath: Make 'struct work_struct' consistent with kernel definition.

2012-06-19 Thread Pravin Shelar
Thanks, Pushed to master. On Tue, Jun 19, 2012 at 5:20 PM, Jesse Gross wrote: > On Tue, Jun 19, 2012 at 5:12 PM, Pravin B Shelar wrote: >> From kernel 3.4 netdevice structure has delayed_work in >> net_device->pm_qos_req. delayed_work needs work_struct definition. >> OVS has its own workq imple

Re: [ovs-dev] [PATCH] datapath: Make 'struct work_struct' consistent with kernel definition.

2012-06-19 Thread Jesse Gross
On Tue, Jun 19, 2012 at 5:12 PM, Pravin B Shelar wrote: > From kernel 3.4 netdevice structure has delayed_work in > net_device->pm_qos_req. delayed_work needs work_struct definition. > OVS has its own workq implementation which redefines work_struct. > So we need to make it consistent with work_st

Re: [ovs-dev] [PATCH 1/2] FAQ: Add FAQ entries from website.

2012-06-19 Thread Ben Pfaff
On Tue, Jun 19, 2012 at 05:08:41PM -0700, Justin Pettit wrote: > +Q: How can I try Open vSwitch? > + > +A: Open vSwitch is as source code to be built on a Linux system. You Missing word here? > + can build and experiment with Open vSwitch on any Linux machine. > + Packages for various Linux

[ovs-dev] [PATCH] datapath: Make 'struct work_struct' consistent with kernel definition.

2012-06-19 Thread Pravin B Shelar
>From kernel 3.4 netdevice structure has delayed_work in net_device->pm_qos_req. delayed_work needs work_struct definition. OVS has its own workq implementation which redefines work_struct. So we need to make it consistent with work_struct defined in kernel workqueue.h to have correct net_device de

[ovs-dev] [PATCH 2/2] FAQ: Add additional entries.

2012-06-19 Thread Justin Pettit
Does some cleanup and adds entries that cover: - OVS isn't Linux-specific. - Point out PORTING guide. - Explanation of LTS releases. - Supported versions of OpenFlow. - Missing features from userspace datapath and upstream kernel module. --- FAQ | 94 ++

[ovs-dev] [PATCH 1/2] FAQ: Add FAQ entries from website.

2012-06-19 Thread Justin Pettit
The openvswitch.org web site has a FAQ. This commit integrates those entries into the FAQ file. Signed-off-by: Justin Pettit --- FAQ | 101 +++ 1 files changed, 101 insertions(+), 0 deletions(-) diff --git a/FAQ b/FAQ index 61bbb

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread ravi kerur
this is all it has... root@:~/tmp_ovs/openvswitch# cat /usr/local/var/log/openvswitch/ovsdb-server.log 2012-06-19T22:39:22Z|1|vlog|INFO|opened log file /usr/local/var/log/openvswitch/ovsdb-server.log 2012-06-19T22:39:32Z|2|memory|INFO|576 kB peak resident set size after 10.0 seconds 2012-0

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread Ben Pfaff
If you add --log-file to the ovsdb-server command line then you'll get a log file in the log directory. On Tue, Jun 19, 2012 at 03:14:49PM -0700, ravi kerur wrote: > Odd about error seen by ovs-vsctl or ? > > I don't see log file anywhere in openvswitch and following directories > and not in /usr

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread ravi kerur
Odd about error seen by ovs-vsctl or ? I don't see log file anywhere in openvswitch and following directories and not in /usr/local/etc either, where is it located? I started ovs-db-server with the options mentioned in INSTALL.Linux On Tue, Jun 19, 2012 at 2:57 PM, Ben Pfaff wrote: > How odd. >

[ovs-dev] Your message to discuss awaits moderator approval

2012-06-19 Thread discuss-bounces
Your mail to 'discuss' with the subject New Company concerning itself with the advertising Is being held until the list moderator can review it for approval. The reason it is being held: SpamAssassin identified this message as possible spam (score 5.1) Either the message will get poste

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread Ben Pfaff
How odd. What's in the ovsdb-server log? On Tue, Jun 19, 2012 at 02:55:44PM -0700, ravi kerur wrote: > root@:~/tmp_ovs/openvswitch# ovs-vsctl -vjsonrpc --no-wait init > 2012-06-19T21:51:58Z|2|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > send request, method="monitor", > params=[

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread ravi kerur
root@:~/tmp_ovs/openvswitch# ovs-vsctl -vjsonrpc --no-wait init 2012-06-19T21:51:58Z|2|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: send request, method="monitor", params=["Open_vSwitch",null,{"Open_vSwitch":{"columns":[]}}], id=0 2012-06-19T21:51:58Z|3|jsonrpc|WARN|unix:/usr/lo

Re: [ovs-dev] jsonrpc error from latest git

2012-06-19 Thread Ben Pfaff
On Tue, Jun 19, 2012 at 02:40:59PM -0700, ravi kerur wrote: > I am getting following errors when installing ovs on kernel 3.3 and > Ubuntu 12.04, it works fine on kernel 3.0. I checked out latest git > code and while installation get following errors. Installation on > kernel 3.3 had worked perfect

[ovs-dev] jsonrpc error from latest git

2012-06-19 Thread ravi kerur
I am getting following errors when installing ovs on kernel 3.3 and Ubuntu 12.04, it works fine on kernel 3.0. I checked out latest git code and while installation get following errors. Installation on kernel 3.3 had worked perfectly before. Does ovs-vsctl need more parameters now? root@:~/tmp_ovs

Re: [ovs-dev] MPLS and VLAN QinQ patch

2012-06-19 Thread Jesse Gross
On Thu, Jun 14, 2012 at 5:29 PM, ravi kerur wrote: > On Thu, Jun 14, 2012 at 8:22 AM, Jesse Gross wrote: >> On Jun 14, 2012, at 10:13 PM, ravi kerur wrote: >> >>> On Thu, Jun 14, 2012 at 3:58 AM, Jesse Gross wrote: On Thu, Jun 14, 2012 at 1:24 PM, ravi kerur wrote: > On Wed, Jun 13, 2

Re: [ovs-dev] [PATCH] No need to restart DB / OVS on changing dscp value.

2012-06-19 Thread Mehak Mahajan
thanx! I made the changes and pushed the patch to master. On Tue, Jun 19, 2012 at 9:12 AM, Ben Pfaff wrote: > On Fri, Jun 08, 2012 at 12:04:14PM -0700, Mehak Mahajan wrote: > > With this change there is no need to restart the DB or OVS on > configuring a > > different value for the manager or co

[ovs-dev] openvswitch_1.4.2+git20120612-2_i386.changes ACCEPTED into unstable

2012-06-19 Thread Debian FTP Masters
Accepted: openvswitch-brcompat_1.4.2+git20120612-2_i386.deb to main/o/openvswitch/openvswitch-brcompat_1.4.2+git20120612-2_i386.deb openvswitch-common_1.4.2+git20120612-2_i386.deb to main/o/openvswitch/openvswitch-common_1.4.2+git20120612-2_i386.deb openvswitch-controller_1.4.2+git20120612-2

[ovs-dev] Processing of openvswitch_1.4.2+git20120612-2_i386.changes

2012-06-19 Thread Debian FTP Masters
openvswitch_1.4.2+git20120612-2_i386.changes uploaded successfully to localhost along with the files: openvswitch_1.4.2+git20120612-2.dsc openvswitch_1.4.2+git20120612-2.debian.tar.gz openvswitch-common_1.4.2+git20120612-2_i386.deb openvswitch-switch_1.4.2+git20120612-2_i386.deb openvswit

Re: [ovs-dev] [PATCH] debian: Make DKMS automatically build for running kernel.

2012-06-19 Thread Ben Pfaff
Thanks, I pushed this to master and branch-1.[4567] and I will soon upload an updated package to Debian. On Mon, Jun 18, 2012 at 10:17:26AM -0700, Justin Pettit wrote: > FWIW, I don't know much about DKMS, but it looks reasonable from my > quick web search. > > --Justin > > > On Jun 18, 2012, a

Re: [ovs-dev] [PATCH] No need to restart DB / OVS on changing dscp value.

2012-06-19 Thread Ben Pfaff
On Fri, Jun 08, 2012 at 12:04:14PM -0700, Mehak Mahajan wrote: > With this change there is no need to restart the DB or OVS on configuring a > different value for the manager or controller connection respectively. On > detecting a change in the dscp value on the socket, the previous socket is > clo

[ovs-dev] [PATCH 33/34] nxast: Use ofp11_aggregate_stats_reply for NXAST replies

2012-06-19 Thread Simon Horman
I am unsure of the overall merit if this change, but it does allow to avoid a small amount of code duplication. Signed-off-by: Simon Horman --- v3 * Initial post --- include/openflow/nicira-ext.h | 10 -- lib/ofp-print.c | 19 --- lib/ofp-util.c

[ovs-dev] [PATCH 27/34] ofp-util: Enable decoding of more Open Flow 1.1 and 1.2 messages

2012-06-19 Thread Simon Horman
Enable the decoding of some Open Flow 1.2 and 1.1 messages which have the same wire-format and thus decoders as Open Flow 1.0. Signed-off-by: Simon Horman --- v3 * Enable decoding of stats messages v3 * Initial post --- lib/ofp-util.c | 70 +

[ovs-dev] [PATCH 29/34] ofp-util: Allow encoding of Open Flow 1.2 Flow Statistics Response Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Initial post --- lib/ofp-util.c| 26 -- lib/ofp-util.h| 3 ++- ofproto/ofproto.c | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 10aac6a..1fcd012 100644 --- a/lib

[ovs-dev] [PATCH 31/34] openflow: Rename ofp_aggregate_stats_reply as ofp10_aggregate_stats_reply

2012-06-19 Thread Simon Horman
Open Flow 1.0 uses a different alignment of members to Open Flow 1.1 and 1.2. For this reason I would like to add a struct ofp11_aggregate_stats_reply in a subsequent patch. In preparation for that rename ofp_aggregate_stats_reply. Signed-off-by: Simon Horman --- v3 * Initial post --- include/

[ovs-dev] [PATCH 23/34] ofp-util: Prepare Packet Out decoder for other Open Flow versions

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Differentiate versions using oh->version rather than relying on a separate code for each version of the Packet Out message. v2 * No change --- lib/ofp-print.c | 4 ++-- lib/ofp-util.c| 35 +++ lib/ofp-util.h| 2

[ovs-dev] [PATCH 21/34] ofp-util: Allow encoding of Open Flow 1.2 Packet In Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Add protocol parameter to ofputil_encode_packet_in(). This allows packet_in_format to be ignored for Open Flow 1.2. v2 * Update for new ofputil_put_match() implementation --- lib/ofp-util.c| 76 +--

[ovs-dev] [PATCH 34/34] Local Hack: Allow Open Flow 1.2 session to be negotiated

2012-06-19 Thread Simon Horman
* request OFP12_VERSION * Always send using OF1.2 * Reset ofconn to OF1.2 --- lib/ofp-util.c| 2 +- lib/vconn.c | 12 ++-- ofproto/connmgr.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 4e8536b..8f2aecf 100644 ---

[ovs-dev] [PATCH 32/34] ofp-util: Allow decoding of Open Flow 1.1 & 1.2 Flow Aggregate Statistics Response Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Initial post --- include/openflow/openflow-1.1.h | 10 ++ lib/ofp-print.c | 18 -- lib/ofp-util.c | 19 ++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/include/openf

[ovs-dev] [PATCH 30/34] ofp-util: Allow decoding of Open Flow 1.2 Flow Statistics Response Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Initial post --- lib/ofp-util.c | 49 +++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 1fcd012..20b288d 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@

[ovs-dev] [PATCH 28/34] ofp-util: Allow decoding of Open Flow 1.1 and 1.2 Flow Statistics Request Messages

2012-06-19 Thread Simon Horman
Allow decoding of Open Flow 1.1 and 1.2 flow and aggregate flow statistics request messages. Signed-off-by: Simon Horman --- v3 * Initial post --- lib/ofp-util.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/lib/ofp-util.c b/lib

[ovs-dev] [PATCH 25/34] ofp-util: Prepare Packet Out encoder for other Open Flow versions

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Add protocol variable to do_probe(). Previously this was added by a separate patch. v2 * No change --- lib/learning-switch.c | 10 -- lib/ofp-util.c| 30 ++ lib/ofp-util.h| 3 ++- utilities/ovs-ofctl.c

[ovs-dev] [PATCH 26/34] ofp-util: Allow encoding of Open Flow 1.1 and 1.2 Packet Out Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Correct title: this patch relates to Packet Out not Packet In * Correct decoding of buffer_id, it is 32bits wide not 16bits wide * Add decoding of stats reply messages v2 * No change --- lib/ofp-util.c | 10 +- 1 file changed, 9 insertions(+), 1 del

[ovs-dev] [PATCH 22/34] ofp-util: Allow decoding of Open Flow 1.2 Packet In Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Add OF1.2 entry to to ofputil_msg_types * Make OF1.2 the first option in the if statement in ofputil_decode_packet_in() * Rename o11pi as opi, which is consistent with the style used elsewhere * Rebase v2 * No change --- lib/ofp-util.c | 60

[ovs-dev] [PATCH 19/34] ofp-util: Update OFPC_COMMON and add ofputil_capabilities_mask

2012-06-19 Thread Simon Horman
There are capabilities which are present in one, two and three of Open Flow 1.0, 1.1 and 1.2. Update OFPC_COMMON to only include capabilities that are prsent in all three Open Flow versions and add ofputil_capabilities_mask() to return the mask of capabilities for each version. This does not cover

[ovs-dev] [PATCH 24/34] ofp-util: Allow decoding of Open Flow 1.1 and 1.2 Packet Out Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Manual rebase * Correct title: This patch relates to Packet Out not Packet In * Use OFPT_PACKET_OUT instead of OFPT11_PACKET_OUT, it seems easier to use a single code and differentiate using the version in the ofp_header * Return error value returned by o

[ovs-dev] [PATCH 20/34] ofp-util: Allow decoding of Open Flow 1.2 Features Reply Messages

2012-06-19 Thread Simon Horman
Open Flow 1.2, like Open Flow 1.1, has OFPC11_GROUP_STATS. All other Open Flow 1.2 capabilities are handled by ofputil_capabilities_mask() which is used by both ofputil_decode_switch_features() and ofputil_encode_switch_features(). No update to ofputil_encode_switch_features() is required to supp

[ovs-dev] [PATCH 18/34] ofp-util: Update ofputil_capabilities for Open Flow 1.2

2012-06-19 Thread Simon Horman
* OFPUTIL_C_ARP_MATCH_IP is not present in Open Flow 1.2. * OFPUTIL_C_PORT_BLOCKED is new in Open Flow 1.2. Otherwise the Open Flow 1.2 capabilities are the same as those of Open Flow 1.1. Signed-off-by: Simon Horman --- v3 * No change v2 * No change --- lib/ofp-print.c | 1 + lib/ofp-util.h

[ovs-dev] [PATCH 17/34] ofp-util: Allow decoding of Open Flow 1.2 Port Mod Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change v2 * No change --- lib/ofp-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index ddd51c6..a4735f2 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -823,6 +823,8 @@ static const struc

[ovs-dev] [PATCH 16/34] ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change v2 * No change --- lib/ofp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index dcd19a1..ddd51c6 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3178,7 +3178,7 @@ ofputil_encode_port

[ovs-dev] [PATCH 15/34] ofp-util: Allow encoding Open Flow 1.2 Flow Stats Request Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change v2 * Use ofputil_put_match() --- lib/ofp-util.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index b6c7062..dcd19a1 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1981,6 +1981,24 @@

[ovs-dev] [PATCH 11/34] ofp-util: Add ofputil_ofp12_decode_match()

2012-06-19 Thread Simon Horman
This may be used by both ofputil_decode_flow_mod() and ofputil_decode_packet_in() Signed-off-by: Simon Horman --- v3 * Do not pull ofpbuf_pull() in the case of a STANDARD match. This simplifies things a little. v2 * No change --- lib/ofp-util.c | 47 -

[ovs-dev] [PATCH 10/34] ofp-util: Allow encoding of Open Flow 1.2 Flow Mod messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Open Flow 1.2 uses an 8bit command, previously 16 bits was used incorrectly * Use Open Flow 1.2 action encoding, previously Open Flow 1.0 encoding was used incorrectly * ofp11_match_header is added by ofputil_put_match(), previously it was incorectly adde

[ovs-dev] [PATCH 14/34] ofp-util: Allow decoding of Open Flow 1.2 Flow Removed Messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change *v3 Initial post --- lib/ofp-util.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 6b29ad7..b6c7062 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -819,6

[ovs-dev] [PATCH 13/34] ofp-util: Allow encoding of Open Flow 1.2 Flow Removed messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change v2 * Use ofputil_put_match() --- lib/ofp-util.c | 17 + 1 file changed, 17 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 95dbfed..6b29ad7 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2340,6 +2340,23 @@ o

[ovs-dev] [PATCH 05/34] ofp-util: Add ofputil_put_match()

2012-06-19 Thread Simon Horman
This wraps nx_put_match() to provide an extra header as necessary. For Open Flow 1.0 + NXM extensions nx_put_match() is comprises the entire match. For Open Flow 1.2 a header is required before the match supplied by x_put_match(). Signed-off-by: Simon Horman --- v3 * Add "ofp-util:" prefix to

[ovs-dev] [PATCH 09/34] ofp-util: Reduce scope of variables in ofputil_encode_flow_mod()

2012-06-19 Thread Simon Horman
Reduce scope of per-protocol variables in ofputil_encode_flow_mod() These variables are only needed in one of the cases covered by the switch statement and will increase in number as more cases (protocols) are supported. Signed-off-by: Simon Horman --- v3 * No change v2 * No change --- lib/o

[ovs-dev] [PATCH 12/34] ofp-util: Allow decoding of Open Flow 1.2 Flow Mod messages

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * No change v2 * No change --- lib/ofp-util.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 91505da..95dbfed 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -811,6 +811,18 @@ sta

[ovs-dev] [PATCH 07/34] ofp-print: Use the prevailing protocol to call ofputil_decode_flow_mod()

2012-06-19 Thread Simon Horman
Pass a protocol based on the prevailing protocol to ofputil_decode_flow_mod() Note that ofputil_protocol_from_ofp_version() needs to be made Open Flow 1.1 aware. Signed-off-by: Simon Horman --- v3 * No change v2 * Actually pass calculated protocol to ofputil_decode_flow_mod() --- lib/ofp-pri

[ovs-dev] [PATCH 08/34] learning-switch: Call ofputil_encode_flow_mod() with correct protocol

2012-06-19 Thread Simon Horman
Empirically it appears that process_packet_in() should call ofputil_encode_flow_mod() with protocol rather than sw->protocol. Signed-off-by: Simon Horman --- v3 * Initial post --- lib/learning-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/learning-switch.c b/

[ovs-dev] [PATCH 06/34] ofp-actions: Enhance ofpacts_to_openflow11 to encode instructions

2012-06-19 Thread Simon Horman
This adds support for ofpacts_to_openflow11() to encode instructions although at this point only the OFPIT11_APPLY_ACTIONS instruction type is supported. I am unsure if it would be better to use a new function that wraps the existing ofpacts_to_openflow11(). But for now I have simply modified ofpa

[ovs-dev] [PATCH 01/34] Local Fix: ofp-util: Work on decoding OF1.1 flow_mods.

2012-06-19 Thread Simon Horman
This is a local change to fix some compile errors in Ben Pfaff's "ofp-util: Work on decoding OF1.1 flow_mods." patch. It should either be rolled into those changes or dropped. --- lib/ofp-util.c| 104 +++--- utilities/ovs-ofctl.c | 2 +- 2 fil

[ovs-dev] [PATCH 02/34] nx-match: Take into account leading header when calculating pad

2012-06-19 Thread Simon Horman
In the case of Open Flow 1.2, which is currently the only time that OXM is be used, there is a 4 byte header before the match which needs to be taken into account when calculating the pad length. This is not entirely pretty, but it does seem to be correct. Signed-off-by: Simon Horman --- v3 *

[ovs-dev] [RFC v3 00/34] Preliminary Open Flow 1.2 Message Support

2012-06-19 Thread Simon Horman
Hi Ben, these patches are based on your of1.1 git branch (21602cd6bdf056d24b2c6191d636bebcbb336ad9 "ofp-util: Work on decoding OF1.1 flow_mods.") They are all compile tested only. I have also, using the last patch which adds some hacks to allow ovs-vswtichd and ovs-controller to netogiate an Open

[ovs-dev] [PATCH 03/34] ofp-util: Add OFPUTIL_P_OF12 and NXFF_OPENFLOW12

2012-06-19 Thread Simon Horman
Add OFPUTIL_P_OF12 and NXFF_OPENFLOW12 for Open Flow 1.2 OFPUTIL_P_OF12_TID and in turn OFPUTIL_P_OF12_ANY is not provided as OFPUTIL_P_OF12 supports the use of table ids in modify flow messages. Signed-off-by: Simon Horman --- v3 * Don't add NXPIF_OPENFLOW12, it doesn't seem to be needed v2

[ovs-dev] [PATCH 04/34] openflow: Add Open Flow 1.2 to ofp_to_string__()

2012-06-19 Thread Simon Horman
Signed-off-by: Simon Horman --- v3 * Add "openflow: " prefix to title v2 * No change --- lib/ofp-print.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 4cf4734..87b2978 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1370,6 +1370,9 @@ ofp_