Re: [ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 09:42:10PM -0700, Ben Pfaff wrote: > On Wed, Jun 13, 2012 at 01:40:19PM +0900, Simon Horman wrote: > > On Tue, Jun 12, 2012 at 09:27:51PM -0700, Ben Pfaff wrote: > > > On Wed, Jun 13, 2012 at 09:25:19AM +0900, Simon Horman wrote: > > > > On Tue, Jun 12, 2012 at 12:32:14AM -0

Re: [ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Ben Pfaff
On Wed, Jun 13, 2012 at 01:40:19PM +0900, Simon Horman wrote: > On Tue, Jun 12, 2012 at 09:27:51PM -0700, Ben Pfaff wrote: > > On Wed, Jun 13, 2012 at 09:25:19AM +0900, Simon Horman wrote: > > > On Tue, Jun 12, 2012 at 12:32:14AM -0700, Ben Pfaff wrote: > > > > "enum ofperr" is clearer than "int".

Re: [ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 09:27:51PM -0700, Ben Pfaff wrote: > On Wed, Jun 13, 2012 at 09:25:19AM +0900, Simon Horman wrote: > > On Tue, Jun 12, 2012 at 12:32:14AM -0700, Ben Pfaff wrote: > > > "enum ofperr" is clearer than "int". > > > > > > Signed-off-by: Ben Pfaff > > > > Reviewed-by: Simon Hor

Re: [ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Ben Pfaff
On Wed, Jun 13, 2012 at 09:25:19AM +0900, Simon Horman wrote: > On Tue, Jun 12, 2012 at 12:32:14AM -0700, Ben Pfaff wrote: > > "enum ofperr" is clearer than "int". > > > > Signed-off-by: Ben Pfaff > > Reviewed-by: Simon Horman Thanks for all the reviews. I pushed patches 1 through 10 to maste

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

2012-06-12 Thread ravi kerur
Thanks Pravin for the review comments. Inline On Tue, Jun 12, 2012 at 5:31 PM, Pravin Shelar wrote: > Hi Ravi, > > I see following issues with datapath mpls support: > > Actions: > I do not see skb->csum updated when mpls action is performed on packet. csum calculation is usually done in the k

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 07:05:55PM -0700, Ben Pfaff wrote: > On Wed, Jun 13, 2012 at 10:37:17AM +0900, Simon Horman wrote: > > On Tue, Jun 12, 2012 at 06:25:40PM -0700, Ben Pfaff wrote: > > > On Wed, Jun 13, 2012 at 09:35:14AM +0900, Simon Horman wrote: > > > > On Tue, Jun 12, 2012 at 12:32:05AM -0

Re: [ovs-dev] [of1.1 rollup 20/20] ofp-util: Work on decoding OF1.1 flow_mods.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:24AM -0700, Ben Pfaff wrote: > A work in progress. Doesn't build. > > I'm not really sure I want separate OFPUTIL_ constants for OF1.0 and OF1.1 > versions of each message. It's something I'm trying out as I write the > code. Here are some trivial build fixes. I am

Re: [ovs-dev] [of1.1 rollup 19/20] openflow: Separate OF1.0, OF1.1 flow_mod constants and types.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:23AM -0700, Ben Pfaff wrote: > Probably incomplete. The following seems to be needed: diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 439096f..625b809 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -701,7 +701,7 @@ ofp_print_flow_mod(struct ds *s, const s

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Ben Pfaff
On Wed, Jun 13, 2012 at 10:37:17AM +0900, Simon Horman wrote: > On Tue, Jun 12, 2012 at 06:25:40PM -0700, Ben Pfaff wrote: > > On Wed, Jun 13, 2012 at 09:35:14AM +0900, Simon Horman wrote: > > > On Tue, Jun 12, 2012 at 12:32:05AM -0700, Ben Pfaff wrote: > > > > OFPFW_DL_SRC and OFPFW_DL_DST don't e

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 06:25:40PM -0700, Ben Pfaff wrote: > On Wed, Jun 13, 2012 at 09:35:14AM +0900, Simon Horman wrote: > > On Tue, Jun 12, 2012 at 12:32:05AM -0700, Ben Pfaff wrote: > > > OFPFW_DL_SRC and OFPFW_DL_DST don't exist in OpenFlow 1.1. Replace them > > > by the correct enums. > > >

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Ben Pfaff
On Wed, Jun 13, 2012 at 09:35:14AM +0900, Simon Horman wrote: > On Tue, Jun 12, 2012 at 12:32:05AM -0700, Ben Pfaff wrote: > > OFPFW_DL_SRC and OFPFW_DL_DST don't exist in OpenFlow 1.1. Replace them > > by the correct enums. > > > > Most of the change here is due to respacing since DL_VLAN_PCP is

Re: [ovs-dev] [RFC v5 00/26] Flow Based Tunneling for Open vSwitch

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 09:59:36AM -0700, Ben Pfaff wrote: > On Mon, Jun 04, 2012 at 08:25:45AM +0900, Simon Horman wrote: > > * The way that I have split the patchs is still somewhat arbitrary. > > I wanted to avoid one very large patch to aid review. But a lot of the > > chagnes are inter-re

Re: [ovs-dev] [of1.1 rollup 14/20] openflow: Separate flow stats headers from their bodies.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:18AM -0700, Ben Pfaff wrote: > For some time, Open vSwitch has combined both ofp_stats_msg and > the data that follows it into single structures, because we found > that this is usually easier to handle.than having them separated. > But OpenFlow 1.1+ has a different st

[ovs-dev] Hello dear

2012-06-12 Thread Dahija Jasmine
Hello dear Am Miss  jasmine, sorry for my embarrassment to your email I was only interested and wanted to know if we can develop a good lovely relationship. I wish if it is the will of God we can move from here. But For better presentation kindly   direct in my mail address

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:05AM -0700, Ben Pfaff wrote: > OFPFW_DL_SRC and OFPFW_DL_DST don't exist in OpenFlow 1.1. Replace them > by the correct enums. > > Most of the change here is due to respacing since DL_VLAN_PCP is one > character wider than any previous name. > > This doesn't fix a r

Re: [ovs-dev] [of1.1 rollup 15/20] openflow: Rename OpenFlow 1.0 statistics messages with "10" infix.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:19AM -0700, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > include/openflow/nicira-ext.h | 10 ++-- > include/openflow/openflow-1.0.h| 61 +++--- > include/openflow/openflow-common.h | 49 +-

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

2012-06-12 Thread Pravin Shelar
Hi Ravi, I see following issues with datapath mpls support: Actions: I do not see skb->csum updated when mpls action is performed on packet. Push / Set_lse action: You can compute mpls_lse value flow setup time in userspace. That will save time in every packet switching plus it simplifies code.

Re: [ovs-dev] [of1.1 rollup 13/20] ofp-util: Remove unused functions.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:17AM -0700, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- Reviewed-by: Simon Horman > lib/ofp-util.c | 52 > lib/ofp-util.h |8 +--- > 2 files changed, 1 insertions(+), 59 deletions(-)

Re: [ovs-dev] [of1.1 rollup 11/20] ofp-util: Add OFPUTIL_ACTION_INVALID to enum ofputil_action_code.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:15AM -0700, Ben Pfaff wrote: > Possibly the ofputil_decode_action() interface should be rethought now > that ofputil_action_code has an invalid value. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > lib/ofp-parse.c|3 +++ > lib/ofp-prin

Re: [ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:14AM -0700, Ben Pfaff wrote: > "enum ofperr" is clearer than "int". > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > lib/ofp-util.c |2 +- > lib/ofp-util.h |4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) _

Re: [ovs-dev] [of1.1 rollup 09/20] openflow-1.0.h: Clarify meaning of nw_tos in struct ofp_action_nw_tos.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:13AM -0700, Ben Pfaff wrote: > So that I don't have to figure it out yet again. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > include/openflow/openflow-1.0.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) __

Re: [ovs-dev] [of1.1 rollup 08/20] ofp-util: Remove unused functions make_add_simple_flow(), make_del_flow().

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:12AM -0700, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > lib/ofp-util.c | 26 -- > lib/ofp-util.h |4 > 2 files changed, 0 insertions(+), 30 deletions(-) __

Re: [ovs-dev] [of1.1 rollup 07/20] Allow general masking of IPv6 addresses rather than just CIDR masks.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:11AM -0700, Ben Pfaff wrote: > OF1.2 and later make these fields fully maskable so we might as well also. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > NEWS |4 ++-- > include/openflow/nicira-ext.h |6 -- > li

Re: [ovs-dev] [of1.1 rollup 06/20] Allow general masking of IPv4 addresses rather than just CIDR masks.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:10AM -0700, Ben Pfaff wrote: > OF1.1 and later make these fields fully maskable so we might as well also. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > NEWS |8 +++- > include/openflow/nicira-ext.h |6 -- >

Re: [ovs-dev] [of1.1 rollup 05/20] ofp-util: Implement translation to and from OpenFlow 1.1 ofp_match.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:09AM -0700, Ben Pfaff wrote: > This is another step toward OpenFlow 1.1 support. The change does not > affect any outwardly visible OpenFlow behavior yet. > > Signed-off-by: Ben Pfaff With the caveat that I am not particularly familiar with the OpenFlow 1.1 match f

Re: [ovs-dev] [of1.1 rollup 04/20] packets: Add ETH_TYPE_MPLS and ETH_TYPE_MPLS_MCAST.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:08AM -0700, Ben Pfaff wrote: > We need these for OpenFlow 1.1 ofp_match support even if we don't support > MPLS matching (which we don't, yet). > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > lib/packets.h |2 ++ > 1 files changed, 2 insertions

Re: [ovs-dev] [of1.1 rollup 03/20] packets: Define IPPROTO_SCTP if not provided by .

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:07AM -0700, Ben Pfaff wrote: > SUSv3 doesn't require IPPROTO_SCTP so some systems might not provide it. > > IPPROTO_SCTP isn't used in the tree yet so this doesn't fix a real bug. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > lib/packets.h |

Re: [ovs-dev] [of1.1 rollup 02/20] openflow-1.0: Rename ofp_match to ofp10_match, OFPFW_* to OFPFW10_*.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:06AM -0700, Ben Pfaff wrote: > This better fits our general policy of adding a version number suffix > to structures and constants whose values differ from one OpenFlow > version to the next. > > Signed-off-by: Ben Pfaff Reviewed-by: Simon Horman > --- > include/

Re: [ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Simon Horman
On Tue, Jun 12, 2012 at 12:32:05AM -0700, Ben Pfaff wrote: > OFPFW_DL_SRC and OFPFW_DL_DST don't exist in OpenFlow 1.1. Replace them > by the correct enums. > > Most of the change here is due to respacing since DL_VLAN_PCP is one > character wider than any previous name. > > This doesn't fix a r

Re: [ovs-dev] [PATCH] vlog: Avoid use-after-free in corner case.

2012-06-12 Thread Ethan Jackson
Looks good, thanks. Ethan On Tue, Jun 12, 2012 at 4:45 PM, Ben Pfaff wrote: > Found by valgrind. > > Signed-off-by: Ben Pfaff > --- >  lib/vlog.c |    9 - >  1 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/lib/vlog.c b/lib/vlog.c > index a7d9e48..899072e 100644 > --- a

[ovs-dev] [PATCH] vlog: Avoid use-after-free in corner case.

2012-06-12 Thread Ben Pfaff
Found by valgrind. Signed-off-by: Ben Pfaff --- lib/vlog.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/lib/vlog.c b/lib/vlog.c index a7d9e48..899072e 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -477,6 +477,7 @@ vlog_unixctl_reopen(struct unixctl_conn *conn, i

[ovs-dev] ovs userspace + vlan

2012-06-12 Thread ravi kerur
I am facing an issue in flow matching for incoming vlan packets in ovs userspace. In lib/flow.c and flow_extract function, eth->eth_type(line no 363) is eth_type_ip. From logs, I see Jun 12 14:43:43 rkerur-thinkpad-t500 ovs-vswitchd: in_port(1),eth(src=00:27:13:67:b9:9b,dst=00:24:7e:68:ae:46),eth_

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

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

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

2012-06-12 Thread Debian FTP Masters
openvswitch_1.4.2+git20120612-1_i386.changes uploaded successfully to localhost along with the files: openvswitch_1.4.2+git20120612-1.dsc openvswitch_1.4.2+git20120612.orig.tar.xz openvswitch_1.4.2+git20120612-1.debian.tar.gz openvswitch-common_1.4.2+git20120612-1_i386.deb openvswitch-swi

Re: [ovs-dev] [worker 01/12] socket-util: Remove 'passcred' parameter from make_unix_socket().

2012-06-12 Thread Ben Pfaff
I guess it's a relic from 2009 or so, when we actually passed credentials over Unix domain sockets. When I removed that code I must have missed this part. On Tue, Jun 12, 2012 at 12:57:05PM -0700, Ethan Jackson wrote: > Looks good thanks. > > Do you happen to know why punix_open() was passing tr

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

2012-06-12 Thread ravi kerur
On Tue, Jun 12, 2012 at 12:13 PM, Ben Pfaff wrote: > On Tue, Jun 12, 2012 at 11:40:22AM -0700, ravi kerur wrote: >> On Tue, Jun 12, 2012 at 11:11 AM, Ben Pfaff wrote: >> > Ravi, I'm more or less happy with the userspace code here.  I mostly >> > have style kinds of concerns.  (I haven't fully scr

Re: [ovs-dev] [worker 02/12] socket-util: New function xset_nonblocking().

2012-06-12 Thread Ethan Jackson
Looks good, thanks. Ethan On Tue, May 22, 2012 at 5:19 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- >  lib/fatal-signal.c |    4 ++-- >  lib/process.c      |    6 +++--- >  lib/signals.c      |    6 +++--- >  lib/socket-util.c  |    8 >  lib/socket-util.h  |    2 ++ >  5 files

Re: [ovs-dev] [worker 01/12] socket-util: Remove 'passcred' parameter from make_unix_socket().

2012-06-12 Thread Ethan Jackson
Looks good thanks. Do you happen to know why punix_open() was passing true for the parameter()? Ethan On Tue, May 22, 2012 at 5:19 PM, Ben Pfaff wrote: > Nothing in the tree ever tries to send or receive credentials over a Unix > domain socket so there's no point in configuring them to be recei

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

2012-06-12 Thread ravi kerur
I am currently debugging this and had planned to send an email asking for suggestions when code review was nearing completion. This bug has been elusive for a long time. The packet format themselves looked fine as I have found a way to test them and have successfully tested them. The problem is th

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

2012-06-12 Thread Ben Pfaff
On Tue, Jun 12, 2012 at 11:40:22AM -0700, ravi kerur wrote: > On Tue, Jun 12, 2012 at 11:11 AM, Ben Pfaff wrote: > > Ravi, I'm more or less happy with the userspace code here.  I mostly > > have style kinds of concerns.  (I haven't fully scrutinized every line > > though.) > > > > is it coding s

Re: [ovs-dev] [PATCH] datapath: Check correct return value from skb_gso_segment()

2012-06-12 Thread Pravin Shelar
On Mon, Jun 11, 2012 at 7:24 PM, Jesse Gross wrote: > On Jun 12, 2012, at 10:13 AM, Pravin B Shelar wrote: > >> Fix return check typo. >> >> Signed-off-by: Pravin B Shelar >> >> Bug #11933 >> --- >> datapath/datapath.c |    6 -- >> 1 file changed, 4 insertions(+), 2 deletions(-) >> >> diff -

Re: [ovs-dev] [PATCH] Add a FAQ.

2012-06-12 Thread Ben Pfaff
Thanks, I added that. On Tue, Jun 12, 2012 at 11:17:24AM -0700, Ethan Jackson wrote: > One thing I noticed btw, The case where the user has looped the > network has often been reported as "my cpu usage is high". It may be > worth calling that out explicitly. > > Ethan > > On Tue, Jun 12, 2012 a

Re: [ovs-dev] [PATCH] Add a FAQ.

2012-06-12 Thread Ethan Jackson
One thing I noticed btw, The case where the user has looped the network has often been reported as "my cpu usage is high". It may be worth calling that out explicitly. Ethan On Tue, Jun 12, 2012 at 9:39 AM, Ben Pfaff wrote: > On Mon, Jun 11, 2012 at 10:47:14PM -0700, Justin Pettit wrote: >> Thi

[ovs-dev] Invitation to connect on LinkedIn

2012-06-12 Thread Nasir Hussain
LinkedIn I'd like to add you to my professional network on LinkedIn. - Nasir Nasir Hussain Telecommunications Professional Prato Area, Italy Confirm that you know Nasir Hussain: https://www.linkedin.com/e/e2m9gr-h3daitd2-2i/isd/7463007830/YQNnPK_c/?hs=false&tok=2P6k73K2CCG5g1 --

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

2012-06-12 Thread Ben Pfaff
Oh, I saw one testsuite failure also: 448: ofproto-dpif - controller FAILED (ofproto-dpif.at:323) Does this pass for you. On Tue, Jun 12, 2012 at 11:11 AM, Ben Pfaff wrote: > Ravi, I'm more or less happy with the userspace code here.  I mostly > have style kinds of concerns.

Re: [ovs-dev] [RFC v5 00/26] Flow Based Tunneling for Open vSwitch

2012-06-12 Thread Ben Pfaff
On Mon, Jun 04, 2012 at 08:25:45AM +0900, Simon Horman wrote: > * The way that I have split the patchs is still somewhat arbitrary. > I wanted to avoid one very large patch to aid review. But a lot of the > chagnes are inter-related, so a bisectable split seems rather difficult. > None the l

Re: [ovs-dev] [PATCH] Add a FAQ.

2012-06-12 Thread Ben Pfaff
On Mon, Jun 11, 2012 at 10:47:14PM -0700, Justin Pettit wrote: > This is great, Ben! Thank you for doing it! > > > + and as soon as I ran the "add-port" command I lost all connectivity > > + through eth0. Help! > > I like the sense of urgency you've added. Maybe you missed your > calling i

Re: [ovs-dev] [ofp11_match v2 1/7] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Ben Pfaff
I reposted all of these patches starting here: http://openvswitch.org/pipermail/dev/2012-June/017791.html Please review them in the new thread. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/5] ofp-util: Remove unused functions make_add_simple_flow(), make_del_flow().

2012-06-12 Thread Ben Pfaff
I reposted all of these patches starting here: http://openvswitch.org/pipermail/dev/2012-June/017798.html Please review them in the new thread. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [of1.1 rollup 20/20] ofp-util: Work on decoding OF1.1 flow_mods.

2012-06-12 Thread Ben Pfaff
A work in progress. Doesn't build. I'm not really sure I want separate OFPUTIL_ constants for OF1.0 and OF1.1 versions of each message. It's something I'm trying out as I write the code. Signed-off-by: Ben Pfaff --- include/openflow/openflow-1.1.h| 17 ++-- include/openflow/openflow-com

[ovs-dev] [of1.1 rollup 19/20] openflow: Separate OF1.0, OF1.1 flow_mod constants and types.

2012-06-12 Thread Ben Pfaff
Probably incomplete. Signed-off-by: Ben Pfaff --- include/openflow/nicira-ext.h |4 ++-- include/openflow/openflow-1.0.h| 19 --- include/openflow/openflow-common.h | 14 ++ lib/ofp-print.c|4 ++-- lib/ofp-print.h

[ovs-dev] [of1.1 rollup 18/20] ofp-util: work on OF1.1 stats messages

2012-06-12 Thread Ben Pfaff
This is a start at extending the stats message helpers to support OF1.1 stats messages too. It isn't complete, doesn't compile, and I'm not fond of the approach. Signed-off-by: Ben Pfaff --- lib/ofp-util.c | 74 --- lib/ofp-util.h |7 +++

[ovs-dev] [of1.1 rollup 17/20] ofp-util: Refaotor ofputil_decode_msg_type__() for extensibility.

2012-06-12 Thread Ben Pfaff
There's an upcoming need to decode yet another variant of OpenFlow messages: OpenFlow 1.1 statistics requests and replies. The code for decoding messages types is getting unmanageable. This commit refactors it to make it easier to maintain and extend. Before this is committed it needs the follow

[ovs-dev] [of1.1 rollup 16/20] ofp-actions: Support decoding OpenFlow 1.1 instructions and actions.

2012-06-12 Thread Ben Pfaff
This builds and doesn't break any existing unit tests, but nothing calls it yet (and it doesn't have any unit tests of its own) so it can hardly be called useful. Left to do: - Instructions other than Apply-Actions. - Actions other than the ones that have identical semantics to Ope

[ovs-dev] [of1.1 rollup 15/20] openflow: Rename OpenFlow 1.0 statistics messages with "10" infix.

2012-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- include/openflow/nicira-ext.h | 10 ++-- include/openflow/openflow-1.0.h| 61 +++--- include/openflow/openflow-common.h | 49 +- lib/ofp-print.c| 10 ++-- lib/ofp-util.c | 100 ++

[ovs-dev] [of1.1 rollup 14/20] openflow: Separate flow stats headers from their bodies.

2012-06-12 Thread Ben Pfaff
For some time, Open vSwitch has combined both ofp_stats_msg and the data that follows it into single structures, because we found that this is usually easier to handle.than having them separated. But OpenFlow 1.1+ has a different stats message header (it has 4 extra bytes of padding) whereas many o

[ovs-dev] [of1.1 rollup 13/20] ofp-util: Remove unused functions.

2012-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ofp-util.c | 52 lib/ofp-util.h |8 +--- 2 files changed, 1 insertions(+), 59 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 7ff46ab..e80fe18 100644 --- a/lib/ofp-util.c +++ b/lib/ofp

[ovs-dev] [of1.1 rollup 11/20] ofp-util: Add OFPUTIL_ACTION_INVALID to enum ofputil_action_code.

2012-06-12 Thread Ben Pfaff
Possibly the ofputil_decode_action() interface should be rethought now that ofputil_action_code has an invalid value. Signed-off-by: Ben Pfaff --- lib/ofp-parse.c|3 +++ lib/ofp-print.c|3 +++ lib/ofp-util.c |7 +++ lib/ofp-util.h |3 ++- ofpro

[ovs-dev] [of1.1 rollup 10/20] ofp-util: Improve return type of ofputil_decode_packet_in().

2012-06-12 Thread Ben Pfaff
"enum ofperr" is clearer than "int". Signed-off-by: Ben Pfaff --- lib/ofp-util.c |2 +- lib/ofp-util.h |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 07f885d..6d820b2 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2318,

[ovs-dev] [of1.1 rollup 09/20] openflow-1.0.h: Clarify meaning of nw_tos in struct ofp_action_nw_tos.

2012-06-12 Thread Ben Pfaff
So that I don't have to figure it out yet again. Signed-off-by: Ben Pfaff --- include/openflow/openflow-1.0.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/openflow/openflow-1.0.h b/include/openflow/openflow-1.0.h index 8afd9a1..831f6a9 100644 --- a/include/op

[ovs-dev] [of1.1 rollup 08/20] ofp-util: Remove unused functions make_add_simple_flow(), make_del_flow().

2012-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ofp-util.c | 26 -- lib/ofp-util.h |4 2 files changed, 0 insertions(+), 30 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 5bd220b..07f885d 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3414,32 +3414,6 @@

[ovs-dev] [of1.1 rollup 07/20] Allow general masking of IPv6 addresses rather than just CIDR masks.

2012-06-12 Thread Ben Pfaff
OF1.2 and later make these fields fully maskable so we might as well also. Signed-off-by: Ben Pfaff --- NEWS |4 ++-- include/openflow/nicira-ext.h |6 -- lib/meta-flow.c | 25 +++-- lib/meta-flow.h |1 -

[ovs-dev] [of1.1 rollup 06/20] Allow general masking of IPv4 addresses rather than just CIDR masks.

2012-06-12 Thread Ben Pfaff
OF1.1 and later make these fields fully maskable so we might as well also. Signed-off-by: Ben Pfaff --- NEWS |8 +++- include/openflow/nicira-ext.h |6 -- lib/meta-flow.c |8 lib/ofp-util.c| 17 ++--

[ovs-dev] [of1.1 rollup 05/20] ofp-util: Implement translation to and from OpenFlow 1.1 ofp_match.

2012-06-12 Thread Ben Pfaff
This is another step toward OpenFlow 1.1 support. The change does not affect any outwardly visible OpenFlow behavior yet. Signed-off-by: Ben Pfaff --- lib/ofp-util.c| 261 + lib/ofp-util.h|7 + tests/ovs-ofctl.at| 309 +++

[ovs-dev] [of1.1 rollup 04/20] packets: Add ETH_TYPE_MPLS and ETH_TYPE_MPLS_MCAST.

2012-06-12 Thread Ben Pfaff
We need these for OpenFlow 1.1 ofp_match support even if we don't support MPLS matching (which we don't, yet). Signed-off-by: Ben Pfaff --- lib/packets.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/packets.h b/lib/packets.h index 19ddd9a..ad5631d 100644 --- a/li

[ovs-dev] [of1.1 rollup 03/20] packets: Define IPPROTO_SCTP if not provided by .

2012-06-12 Thread Ben Pfaff
SUSv3 doesn't require IPPROTO_SCTP so some systems might not provide it. IPPROTO_SCTP isn't used in the tree yet so this doesn't fix a real bug. Signed-off-by: Ben Pfaff --- lib/packets.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/packets.h b/lib/packets.h i

[ovs-dev] [of1.1 rollup 02/20] openflow-1.0: Rename ofp_match to ofp10_match, OFPFW_* to OFPFW10_*.

2012-06-12 Thread Ben Pfaff
This better fits our general policy of adding a version number suffix to structures and constants whose values differ from one OpenFlow version to the next. Signed-off-by: Ben Pfaff --- include/openflow/nicira-ext.h |6 +- include/openflow/openflow-1.0.h | 58 +++-- lib/f

[ovs-dev] [of1.1 rollup 01/20] openflow-1.1.h: Fix OFPFW11_* definitions.

2012-06-12 Thread Ben Pfaff
OFPFW_DL_SRC and OFPFW_DL_DST don't exist in OpenFlow 1.1. Replace them by the correct enums. Most of the change here is due to respacing since DL_VLAN_PCP is one character wider than any previous name. This doesn't fix a real bug because these constants didn't have any users in the tree. Signe

[ovs-dev] [of1.1 rollup 00/20] OpenFlow 1.1 support superseries

2012-06-12 Thread Ben Pfaff
This is a rollup of all the outstanding, uncommitted patches I have posted that relate to OF1.1 and OF1.2 support, plus a few more in various states of completeness. It begins with the ofp11_match v2 series most recently posted on June 9. I believe that these are unchanged from the previous posti