Re: [ovs-dev] [PATCH 2/2] ofproto: report multipart buffer overflow

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 12:07:44PM +0900, YAMAMOTO Takashi wrote: > an option question: what to do for the following messages with the > same xid? especially for the last message which doesn't have the > "more" flag set? it would be neater to detect and drop them. That's a great question. I mig

Re: [ovs-dev] [PATCH 1/2] ofproto: report correct errors for unsupported stats/multipart requests

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 12:07:43PM +0900, YAMAMOTO Takashi wrote: > the correct error in that case is OFPERR_OFPBRC_BAD_STAT, > not OFPERR_OFPBRC_BAD_TYPE. > > currently, the only example of unsupported stats/multipart request is > OFPTYPE_TABLE_FEATURES_STATS_REQUEST. > > Signed-off-by: YAMAMOTO

Re: [ovs-dev] [PATCH 1/3] ofproto: report correct errors for unsupported stats/multipart messages

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 12:08:18PM +0900, YAMAMOTO Takashi wrote: > > On Wed, Oct 23, 2013 at 03:04:21PM +0900, YAMAMOTO Takashi wrote: > >> the correct error in that case is OFPERR_OFPBRC_BAD_STAT, > >> not OFPERR_OFPBRC_BAD_TYPE. > >> > >> Signed-off-by: YAMAMOTO Takashi > > > > If there exist

Re: [ovs-dev] [PATCH] tests: use full table names in ovs-vsctl commands

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 06:27:10PM -0700, Ansis Atteka wrote: > It is more obvious to figure out what exactly test is doing > if ovs-vsctl commands contain full table names. > > Signed-off-by: Ansis Atteka Acked-by: Ben Pfaff ___ dev mailing list dev@

[ovs-dev] [PATCH] tests: use full table names in ovs-vsctl commands

2013-10-24 Thread Ansis Atteka
It is more obvious to figure out what exactly test is doing if ovs-vsctl commands contain full table names. Signed-off-by: Ansis Atteka --- tests/ovs-vsctl.at | 70 +++--- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/tests/ovs-vs

Re: [ovs-dev] [PATCH] sFlow export: include standard tunnel structures (for GRE, VXLAN etc.)

2013-10-24 Thread Jesse Gross
On Thu, Oct 24, 2013 at 3:39 PM, Romain Lenglet wrote: > - Original Message - >> From: "Jesse Gross" >> To: "Romain Lenglet" >> Cc: dev@openvswitch.org >> Sent: Tuesday, October 22, 2013 3:46:54 PM >> Subject: Re: [ovs-dev] [PATCH] sFlow export: include standard tunnel >> structures (fo

Re: [ovs-dev] [PATCH v6 2/2] TCP flags matching support.

2013-10-24 Thread Jesse Gross
On Thu, Oct 24, 2013 at 9:01 AM, Jarno Rajahalme wrote: > tcp_flags=flags/mask > Bitwise match on TCP flags. The flags and mask are 16-bit num‐ > bers written in decimal or in hexadecimal prefixed by 0x. Each > 1-bit in mask requires that the corresponding bit in

Re: [ovs-dev] [PATCH v6 1/2] Widen TCP flags handling.

2013-10-24 Thread Jesse Gross
On Thu, Oct 24, 2013 at 9:01 AM, Jarno Rajahalme wrote: > Widen TCP flags handling from 7 bits to 12 bits. The kernel interface > remains at 8 bits, which makes no functional difference now, as none > of the higher bits is currently of interest to the userspace. > > Signed-off-by: Jarno Rajahalme

Re: [ovs-dev] [PATCH] Handling code for queue get config request. This was done as part of a hackathon and hence is not yet fully tested. Sending it for basic review and this change set needs to be te

2013-10-24 Thread Ben Pfaff
On Thu, Oct 17, 2013 at 02:20:33PM -0700, Ben Pfaff wrote: > On Thu, Oct 17, 2013 at 09:35:27AM -0700, Ben Pfaff wrote: > > From: Venkitachalam Gopalakrishnan > > Thanks gops. > > I'm spending a little bit of time working on this. I'll probably post a > new version tomorrow or Monday. I send o

[ovs-dev] [PATCH] Implement OFPT_QUEUE_GET_CONFIG_REQUEST and OFPT_QUEUE_GET_CONFIG_REPLY.

2013-10-24 Thread Ben Pfaff
From: Venkitachalam Gopalakrishnan Open vSwitch has never implemented this request and reply, even though they have been in OpenFlow since version 1.0. This commit adds an implementation. Co-authored-by: Venkitachalam Gopalakrishnan Signed-off-by: Ben Pfaff --- include/openflow/openflow-1.0.

[ovs-dev] [PATCH] openflow-1.2.h: Remove redundant definition of OFPST12_GROUP_FEATURES.

2013-10-24 Thread Ben Pfaff
Message types are defined in ofp-msgs.h these days. Signed-off-by: Ben Pfaff --- include/openflow/openflow-1.2.h |9 - 1 file changed, 9 deletions(-) diff --git a/include/openflow/openflow-1.2.h b/include/openflow/openflow-1.2.h index 541b143..249e861 100644 --- a/include/openflow/o

Re: [ovs-dev] [PATCH] sFlow export: include standard tunnel structures (for GRE, VXLAN etc.)

2013-10-24 Thread Romain Lenglet
- Original Message - > From: "Jesse Gross" > To: "Romain Lenglet" > Cc: dev@openvswitch.org > Sent: Tuesday, October 22, 2013 3:46:54 PM > Subject: Re: [ovs-dev] [PATCH] sFlow export: include standard tunnel > structures (for GRE, VXLAN etc.) > > On Mon, Oct 21, 2013 at 2:33 PM, Romain

Re: [ovs-dev] [PATCH] package: Make Fedora RPMs build after vtep changes

2013-10-24 Thread Gurucharan Shetty
This looks good to me. I verified that the Fedora rpm gets built fine after applying your patch. I applied it to master. Thanks. On Thu, Oct 24, 2013 at 12:35 PM, Kyle Mestery wrote: > Add the appropriate vtep files into the Fedora RPM build > to make this work on master again. > > Signed-off-b

Re: [ovs-dev] [PATCH] ofproto: Avoid abandoning an ofopgroup without committing it.

2013-10-24 Thread Jarno Rajahalme
On Oct 21, 2013, at 3:52 PM, Ben Pfaff wrote: > Commit e3b5693319c (Fix table checking for goto table instruction.) moved > action checking into modify_flows__(), for good reason, but as a side > effect made modify_flows__() abandon and never commit the ofopgroup that it > started, if action ch

Re: [ovs-dev] Issue with latest master on Fedora

2013-10-24 Thread Jesse Gross
On Thu, Oct 24, 2013 at 12:59 PM, Kyle Mestery (kmestery) wrote: > I'm seeing the following error on *one* of my Fedora test VMs. > It's strange because on the other two, I don't see the GRE errors > below. Any ideas as to what might be going wrong? > > [kmestery@km-dhcp-64-197 ~]$ dmesg|grep gre

[ovs-dev] [PATCH v4 08/10] ofp-actions: Send deprecated actions as set fields.

2013-10-24 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c | 141 lib/ofp-actions.h |3 +- tests/ovs-ofctl.at | 12 - 3 files changed, 153 insertions(+), 3 deletions(-) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 09a98bf..e

[ovs-dev] [PATCH v4 01/10] OF 1.1 set vlan vid/pcp compatibility.

2013-10-24 Thread Jarno Rajahalme
OpenFlow 1.1 set vlan actions only modify existing vlan headers, while OF 1.0 actions push a new vlan header if one does not exist already. Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c| 91 +- lib/ofp-actions.h| 20 +

[ovs-dev] [PATCH v4 07/10] lib/ofp-action: Simplify interface and internal structure.

2013-10-24 Thread Jarno Rajahalme
This makes later changes simpler. Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c | 274 +++-- lib/ofp-actions.h | 32 +++--- lib/ofp-util.c| 127 +-- lib/ofp-util.h|1 + utilities/ovs-ofctl.c |

[ovs-dev] [PATCH v4 10/10] Add OF11 SET MPLS LABEL and SET MPLS TC actions.

2013-10-24 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- v3: Fix byte order errors. include/openflow/nicira-ext.h | 24 lib/ofp-actions.c | 82 +++-- lib/ofp-actions.h | 22 ++- lib/ofp-parse.c | 46

[ovs-dev] [PATCH v4 06/10] lib/ofp-actions: Set field OF 1.0/1.1 compatibility.

2013-10-24 Thread Jarno Rajahalme
Output set field actions as standard OF1.0/1.1 set actions or to reg_load instructions, when a compatible set action(s) do not exist. Signed-off-by: Jarno Rajahalme --- v4: Clear the OFPVID_PRESENT bit when translating Set-Field OXM_OF_VLAN_VID to OpenFlow 1.0/1.1. lib/ofp-actions.c | 211

[ovs-dev] [PATCH v4 09/10] lib/ofp-actions: Warn on deprecated actions.

2013-10-24 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index eef4c16..4713371 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -1105,6 +1105,24 @@ ofpact_from_openflow11(const un

[ovs-dev] [PATCH v4 02/10] OF 1.1 pop vlan compatibility.

2013-10-24 Thread Jarno Rajahalme
Store the original action code with the strip vlan action, so that it can be printed back properly. Signed-off-by: Jarno Rajahalme --- lib/ofp-actions.c|7 --- lib/ofp-parse.c |2 +- tests/ofp-actions.at |2 +- tests/ovs-ofctl.at |4 ++-- 4 files changed, 8 inserti

[ovs-dev] [PATCH v4 05/10] Native Set-Field action.

2013-10-24 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- v4: - Address review comments by Ben - Simplify implementation - Enforce presence of the OFPVID_PRESENT bit for Set-Field on OXM_OF_VLAN_VID. - Add OFPVID_PRESENT when parsing from string, and omit the bit when printing. - Explicitly check for header presence bef

[ovs-dev] [PATCH v4 04/10] OXM inspired match field names.

2013-10-24 Thread Jarno Rajahalme
Adds OXM inspired aliases for match fields that don't have them already ("ip_proto", "ip_ecn", "ip_dscp", and "tunnel_id"). "ip_dscp" replaces the earlier undocumented "nw_tos_shifted", and takes the DSCP value (0-63), which is then shifted appropriately when applied to an IP packet. The number of

[ovs-dev] [PATCH v4 03/10] Inline mf_from_id().

2013-10-24 Thread Jarno Rajahalme
mf_from_id accesses a static table, so the compiler should be able to completely optimize it away. Also use OVS_PACKED_ENUM to waste less space. Signed-off-by: Jarno Rajahalme --- lib/meta-flow.c | 12 +++- lib/meta-flow.h | 18 +- 2 files changed, 16 insertions(+),

[ovs-dev] [PATCH v4 00/10] Enhanced OpenFlow 1.1+ action support

2013-10-24 Thread Jarno Rajahalme
This series adds many of the missing OpenFlow 1.1 actions. Due to the different semantics, the vlan actions are annotated based on the policy on missing vlan header. A native OF 1.2 Set Field action with translation to/from OF 1.0/1.1 actions is added. Action consistency is enforced for OF 1.1+,

[ovs-dev] Issue with latest master on Fedora

2013-10-24 Thread Kyle Mestery (kmestery)
I'm seeing the following error on *one* of my Fedora test VMs. It's strange because on the other two, I don't see the GRE errors below. Any ideas as to what might be going wrong? [kmestery@km-dhcp-64-197 ~]$ dmesg|grep gre [0.175404] ACPI: Added _OSI(Processor Aggregator Device) [8.365982]

[ovs-dev] [PATCH] package: Make Fedora RPMs build after vtep changes

2013-10-24 Thread Kyle Mestery
Add the appropriate vtep files into the Fedora RPM build to make this work on master again. Signed-off-by: Kyle Mestery --- rhel/openvswitch-fedora.spec.in | 7 +++ 1 file changed, 7 insertions(+) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 27a3b03..

Re: [ovs-dev] [PATCH] vtep: Bring BFD specification in vtep.xml into sync with OVS.

2013-10-24 Thread Bruce Davie
Ben, Looks mostly good (and a helpful improvement on the prior documentation). One small error: + and the rate at which it is willing to transmit them. Open vSwitch uses a detection multiplier of three, meaning that an endpoint + signals a connectivity fault if it fails to r

Re: [ovs-dev] [PATCH v3 06/11] Native OpenFlow 1.2 set field action.

2013-10-24 Thread Jarno Rajahalme
On Oct 23, 2013, at 9:14 PM, Ben Pfaff wrote: > On Wed, Oct 23, 2013 at 12:53:01PM -0700, Jarno Rajahalme wrote: >> Signed-off-by: Jarno Rajahalme > > Is MFF_VLAN_VID the only field for which the "match" and "set" > prerequisites differ? If so, then I'd like to think of some way to > avoid ha

Re: [ovs-dev] RFC: Handle IPv4 fragmentation in kernel

2013-10-24 Thread Jesse Gross
On Wed, Oct 23, 2013 at 11:44 PM, Takayuki Usui wrote: > Hi Jesse, > > Thank you for your kind review and comments. As you mentioned, > this experimental work is, more or less, a result of the effort > to solve a specific problem of ours (quickly) and it's highly > depends on the use case for sure

Re: [ovs-dev] [PATCH v3 06/11] Native OpenFlow 1.2 set field action.

2013-10-24 Thread Jarno Rajahalme
Ben, OpenFlow 1.3.3 is much more specific about handling the VID with set-field action. It states that the OFPVID_PRESENT bit must be on, and that the switch behavior when VLAN header does not exist is implementation-dependent: "The use of a set-fi eld action assumes that the corresponding header

Re: [ovs-dev] [PATCH] vswitch.xml: Improve documentation for BFD.

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 09:49:33AM -0700, Ben Pfaff wrote: > This update improves the BFD documentation in a few ways: > >- Demand mode is now supported. > >- Wordsmithing, spelling, etc. > >- Attempt to better explain decay_min_rx, forwarding_if_rx, and > cpath_down. > >-

Re: [ovs-dev] [PATCH v3 03/11] OF 1.1 set vlan vid/pcp compatibility.

2013-10-24 Thread Ben Pfaff
I don't think you should put in that work yet, I'm thinking it over and wouldn't want you to spend time on it that might be wasted. On Thu, Oct 24, 2013 at 09:10:06AM -0700, Jarno Rajahalme wrote: > Ben, > > While I'm reworking on the series, I could add the separate actions for the > OF 1.1 set

Re: [ovs-dev] [PATCH] vtep: Bring BFD specification in vtep.xml into sync with OVS.

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 09:53:19AM -0700, Ben Pfaff wrote: > On Thu, Oct 24, 2013 at 08:30:51AM -0700, Bruce Davie wrote: > > A number of new key-value pairs have been added to the bfd and bfd_status > > columns of the OVS schema since the VTEP schema was created. To aid > > interoperability betwee

Re: [ovs-dev] [PATCH] vtep: Bring BFD specification in vtep.xml into sync with OVS.

2013-10-24 Thread Ben Pfaff
On Thu, Oct 24, 2013 at 08:30:51AM -0700, Bruce Davie wrote: > A number of new key-value pairs have been added to the bfd and bfd_status > columns of the OVS schema since the VTEP schema was created. To aid > interoperability between OVS instances and VTEPs, this patch brings > the VTEP schema into

[ovs-dev] [PATCH] vswitch.xml: Improve documentation for BFD.

2013-10-24 Thread Ben Pfaff
This update improves the BFD documentation in a few ways: - Demand mode is now supported. - Wordsmithing, spelling, etc. - Attempt to better explain decay_min_rx, forwarding_if_rx, and cpath_down. - Break into subgroups for configuration and status, to better explain which

Re: [ovs-dev] [PATCH v5 1/2] Widen TCP flags handling.

2013-10-24 Thread Jarno Rajahalme
On Oct 23, 2013, at 6:27 PM, Jesse Gross wrote: > On Wed, Oct 23, 2013 at 10:24 AM, Jarno Rajahalme > wrote: >> Widen TCP flags handling from 7 bits (uint8_t) to 12 bits (uint16_t). >> The kernel interface remains at 8 bits, which makes no functional >> difference now, as none of the higher bit

Re: [ovs-dev] [PATCH v3 03/11] OF 1.1 set vlan vid/pcp compatibility.

2013-10-24 Thread Jarno Rajahalme
Ben, While I'm reworking on the series, I could add the separate actions for the OF 1.1 set VLAN VID/PCP actions if you think it will make the code easier to read and maintain. If we do this, we should think about separating the PUSH MPLS actions as well. Please let me know, Jarno On Oct 23

[ovs-dev] [PATCH v6 1/2] Widen TCP flags handling.

2013-10-24 Thread Jarno Rajahalme
Widen TCP flags handling from 7 bits to 12 bits. The kernel interface remains at 8 bits, which makes no functional difference now, as none of the higher bits is currently of interest to the userspace. Signed-off-by: Jarno Rajahalme --- v3-v6: Rebase v2: Address Ben's review comments: - datapath

[ovs-dev] [PATCH] vtep: Bring BFD specification in vtep.xml into sync with OVS.

2013-10-24 Thread Bruce Davie
A number of new key-value pairs have been added to the bfd and bfd_status columns of the OVS schema since the VTEP schema was created. To aid interoperability between OVS instances and VTEPs, this patch brings the VTEP schema into line with that of OVS. Signed-off-by: Bruce Davie --- vtep/vtep.x