[ovs-dev] [PATCH 12/14] expr: Generalize wording of error message in expand_symbol().

2015-12-08 Thread Ben Pfaff
The existing wording was very specific to the actual operation being performed. While this is nice for users, it becomes difficult to maintain as more and more operations are added. This commit makes the wording less specific, because a third operation will start using this function in an upcomin

[ovs-dev] [PATCH 14/14] ovn: Implement basic ARP support for L3 logical routers.

2015-12-08 Thread Ben Pfaff
This is sufficient support that an L3 logical router can now transmit packets to VMs (and other destinations) without having to know the IP-to-MAC binding in advance. The details are carefully documented in all of the appropriate places. There are several important caveats that need to be fixed b

[ovs-dev] [PATCH 13/14] ovn: Reorganize action parsing test.

2015-12-08 Thread Ben Pfaff
It seems easier to understand if all of the tests for a given action are grouped together. Signed-off-by: Ben Pfaff --- tests/ovn.at | 89 ++-- 1 file changed, 50 insertions(+), 39 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at inde

[ovs-dev] [PATCH 10/14] ovn: Use callback function instead of simap for logical port number map.

2015-12-08 Thread Ben Pfaff
An simap is convenient but it isn't very flexible. If the client wants to keep extra data with each node then it has to build a second parallel data structure. A callback function is kind of a pain for the clients from the point of view of having to write it and deal with auxiliary data, etc., bu

[ovs-dev] [PATCH 11/14] ovn-controller: Add data structure for indexing lports, multicast groups.

2015-12-08 Thread Ben Pfaff
This was more or less implemented inside lflow.c until now, but some upcoming code that shouldn't be in that file needs to use it too. This also adds a second index on lports, so that lports can be looked up based on the logical datapath tunnel key and the logical port tunnel key. An upcoming comm

[ovs-dev] [PATCH 09/14] actions: Bundle action parsing parameters into a structure.

2015-12-08 Thread Ben Pfaff
This will make it easier to add and change parameters, as done in an upcoming commit. Signed-off-by: Ben Pfaff --- ovn/controller/lflow.c | 15 +-- ovn/lib/actions.c | 109 - ovn/lib/actions.h | 51 ++- tests/tes

[ovs-dev] [PATCH 08/14] actions: Implement OVN "arp" action.

2015-12-08 Thread Ben Pfaff
An upcoming commit will use this as a building block in adding ARP support to the OVN L3 logical router implementation. Signed-off-by: Ben Pfaff --- ovn/lib/actions.c | 33 + ovn/ovn-sb.xml| 21 + tests/ovn.at | 3 +++ 3 files changed

[ovs-dev] [PATCH 05/14] Add OpenFlow support for new "arp" action.

2015-12-08 Thread Ben Pfaff
This is useful for generating an ARP request from the OpenFlow flow table, which in turn is useful for implementing a router. An upcoming commit will use this feature to implement ARP request generationg in the OVN L3 logical router. Signed-off-by: Ben Pfaff --- NEWS

[ovs-dev] [PATCH 06/14] actions: Factor out new helper function add_prerequisite().

2015-12-08 Thread Ben Pfaff
This will acquire new users in upcoming commits. Signed-off-by: Ben Pfaff --- ovn/lib/actions.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c index 693b1c1..581dbae 100644 --- a/ovn/lib/actions.c +++ b/ovn/lib/

[ovs-dev] [PATCH 07/14] actions: Factor parsing a single action into a new function parse_action().

2015-12-08 Thread Ben Pfaff
This will have another user in an upcoming commit. Signed-off-by: Ben Pfaff --- ovn/lib/actions.c | 70 +++ 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c index 581dbae..6bc452a 100644 ---

[ovs-dev] [PATCH 04/14] Use ip_parse() and ipv6_parse() and variants in more places.

2015-12-08 Thread Ben Pfaff
This saves some code and improves clarity, in my opinion. Some of these changes just change an inet_pton() call into a similar ip_parse() or ipv6_parse() call. In those cases the benefit is better type safety, since inet_pton()'s output parameter is type "void *". Signed-off-by: Ben Pfaff ---

[ovs-dev] [PATCH 02/14] packets: New macro ETH_ADDR_STRLEN.

2015-12-08 Thread Ben Pfaff
An upcoming commit will introduce another user. Signed-off-by: Ben Pfaff --- lib/packets.h | 1 + vswitchd/bridge.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/packets.h b/lib/packets.h index edf140b..1e0417a 100644 --- a/lib/packets.h +++ b/lib/packets.h @@

[ovs-dev] [PATCH 03/14] packets: Add new functions for IPv4 and IPv6 address parsing.

2015-12-08 Thread Ben Pfaff
These will be used in an upcoming patch to reduce duplicated code. Signed-off-by: Ben Pfaff --- lib/packets.c | 132 ++ lib/packets.h | 7 2 files changed, 102 insertions(+), 37 deletions(-) diff --git a/lib/packets.c b/lib/packets.

[ovs-dev] [PATCH 00/14] ovn: Implement basic ARP support for L3 logical routers

2015-12-08 Thread Ben Pfaff
Ben Pfaff (14): sparse: Define INET_ADDRSTRLEN. packets: New macro ETH_ADDR_STRLEN. packets: Add new functions for IPv4 and IPv6 address parsing. Use ip_parse() and ipv6_parse() and variants in more places. Add OpenFlow support for new "arp" action. actions: Factor out new helper functi

[ovs-dev] [PATCH 01/14] sparse: Define INET_ADDRSTRLEN.

2015-12-08 Thread Ben Pfaff
POSIX defines this but it was missing from the OVS header file definitions for "sparse". Signed-off-by: Ben Pfaff --- include/sparse/netinet/in.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h index 1223553..78e5981 100644 --- a/incl

[ovs-dev] [PATCH net-next v4 5/8] openvswitch: Find existing conntrack entry after upcall.

2015-12-08 Thread Jarno Rajahalme
Add a new function ovs_ct_find_existing() to find an existing conntrack entry for which this packet was already applied to. This is only to be called when there is evidence that the packet was already tracked and committed, but we lost the ct reference due to an userspace upcall. ovs_ct_find_exis

[ovs-dev] [PATCH net-next v4 4/8] openvswitch: Update the CT state key only after nf_conntrack_in().

2015-12-08 Thread Jarno Rajahalme
Only a successful nf_conntrack_in() call can effect a connection state change, so if suffices to update the key only after the nf_conntrack_in() returns. This change is needed for the later NAT patches. Signed-off-by: Jarno Rajahalme --- net/openvswitch/conntrack.c | 9 ++--- 1 file changed

[ovs-dev] [PATCH net-next v4 3/8] netfilter: Allow calling into nat helper without skb_dst.

2015-12-08 Thread Jarno Rajahalme
NAT checksum recalculation code assumes existence of skb_dst, which becomes a problem for a later patch in the series ("openvswitch: Interface with NAT."). Simplify this by removing the check on skb_dst, as the checksum will be dealt with later in the stack. Suggested-by: Pravin Shelar Signed-of

[ovs-dev] [PATCH net-next v4 2/8] netfilter: Factor out nf_ct_get_info().

2015-12-08 Thread Jarno Rajahalme
Define a new inline function to map conntrack status to enum ip_conntrack_info. This removes the need to otherwise duplicate this code in a later patch ("openvswitch: Find existing conntrack entry after upcall."). Signed-off-by: Jarno Rajahalme --- include/net/netfilter/nf_conntrack.h | 15

[ovs-dev] [PATCH net-next v4 0/8] openvswitch: NAT support.

2015-12-08 Thread Jarno Rajahalme
This series adds NAT support to openvswitch kernel module. A few changes are needed to the netfilter code to facilitate this (patches 1-3/8). Patches 4-7 make the openvswitch kernel module ready for the patch 8 that adds the NAT support by calling into netfilter NAT code from the openvswitch conn

[ovs-dev] [PATCH net-next v4 1/8] netfilter: Remove IP_CT_NEW_REPLY definition.

2015-12-08 Thread Jarno Rajahalme
Remove the definition of IP_CT_NEW_REPLY from the kernel as it does not make sense. This allows the definition of IP_CT_NUMBER to be simplified as well. Signed-off-by: Jarno Rajahalme --- include/uapi/linux/netfilter/nf_conntrack_common.h | 12 +--- net/openvswitch/conntrack.c

[ovs-dev] [PATCH 2/2] datapath: Define nf_connlabels_{put,get}.

2015-12-08 Thread Joe Stringer
Previously this was only done when connlabels were enabled in the kernel config, even if the functions didn't exist. Fix the compile error. Reported-by: Simon Horman Signed-off-by: Joe Stringer --- .../compat/include/net/netfilter/nf_conntrack_labels.h | 14 +++--- 1 file changed, 1

[ovs-dev] [PATCH 1/2] datapath: Respect conntrack zone even if invalid.

2015-12-08 Thread Joe Stringer
If userspace executes ct(zone=1), and the connection tracker determines that the packet is invalid, then the ct_zone flow key field is populated with the default zone rather than the zone that was specified. Even though connection tracking failed, this field should be updated with the value that us

Re: [ovs-dev] [PATCH] ovn: Fix ct_state bit mappings in OVN symtab.

2015-12-08 Thread Joe Stringer
On 8 December 2015 at 14:34, Russell Bryant wrote: > The OVN symbol table contained outdated mappings between connection > states and the corresponding bit in the ct_state field. This patch > updates the symbol table with the proper values as defined in > lib/packets.h. > > Signed-off-by: Russell

[ovs-dev] [PATCH] ovn: Fix ct_state bit mappings in OVN symtab.

2015-12-08 Thread Russell Bryant
The OVN symbol table contained outdated mappings between connection states and the corresponding bit in the ct_state field. This patch updates the symbol table with the proper values as defined in lib/packets.h. Signed-off-by: Russell Bryant --- ovn/controller/lflow.c | 8 1 file chang

[ovs-dev] Invoice #55560319

2015-12-08 Thread Sharlene Conrad
Dear Customer Your invoice appears below. Please remit payment at your earliest convenience. Thank you for your business - we appreciate it very much. Sincerely, Sharlene ConradCourier Service ___ dev mailing list dev@openvswitch.org http://openvswitch

Re: [ovs-dev] [PATCH] ovs-ofctl: replace-flows and diff-flows support for multiple tables

2015-12-08 Thread Romain Lenglet
On December 8, 2015 at 12:18:29 PM, Jarno Rajahalme (ja...@ovn.org) wrote: On Dec 8, 2015, at 11:43 AM, Shashank Shanbhag wrote: Hi Jarno, It looks great. We tested it internally to make sure. I'm not in favor of exclusion lists, as it gets unwieldy if the number of tables of interest is pret

Re: [ovs-dev] [PATCH] seq: Add a coverage counter for seq_change.

2015-12-08 Thread Jarno Rajahalme
> On Dec 8, 2015, at 11:41 AM, Ben Pfaff wrote: > > On Tue, Dec 08, 2015 at 11:39:23AM -0800, Jarno Rajahalme wrote: >> >>> On Dec 7, 2015, at 9:34 AM, Ben Pfaff wrote: >>> >>> On Fri, Dec 04, 2015 at 03:57:09PM -0800, Jarno Rajahalme wrote: Having a coverage counter tracking the value o

Re: [ovs-dev] [PATCH] ovs-ofctl: replace-flows and diff-flows support for multiple tables

2015-12-08 Thread Jarno Rajahalme
> On Dec 8, 2015, at 11:43 AM, Shashank Shanbhag > wrote: > > Hi Jarno, > > It looks great. We tested it internally to make sure. > I'm not in favor of exclusion lists, as it gets unwieldy if the number of > tables of interest is pretty small (which is the case in our application). > Thanks

Re: [ovs-dev] [PATCH] ovs-ofctl: replace-flows and diff-flows support for multiple tables

2015-12-08 Thread Shashank Shanbhag
Hi Jarno, It looks great. We tested it internally to make sure. I'm not in favor of exclusion lists, as it gets unwieldy if the number of tables of interest is pretty small (which is the case in our application). Thanks for this. Acked-by: Shashank Shanbhag -

Re: [ovs-dev] [PATCH] seq: Add a coverage counter for seq_change.

2015-12-08 Thread Ben Pfaff
On Tue, Dec 08, 2015 at 11:39:23AM -0800, Jarno Rajahalme wrote: > > > On Dec 7, 2015, at 9:34 AM, Ben Pfaff wrote: > > > > On Fri, Dec 04, 2015 at 03:57:09PM -0800, Jarno Rajahalme wrote: > >> Having a coverage counter tracking the value of the internal seq_next > >> should help in debugging. >

Re: [ovs-dev] [PATCH] seq: Add a coverage counter for seq_change.

2015-12-08 Thread Justin Pettit
> On Dec 8, 2015, at 11:39 AM, Jarno Rajahalme wrote: > > >> On Dec 7, 2015, at 9:34 AM, Ben Pfaff wrote: >> >> On Fri, Dec 04, 2015 at 03:57:09PM -0800, Jarno Rajahalme wrote: >>> Having a coverage counter tracking the value of the internal seq_next >>> should help in debugging. >>> >>> Sug

Re: [ovs-dev] [PATCH] seq: Add a coverage counter for seq_change.

2015-12-08 Thread Jarno Rajahalme
> On Dec 7, 2015, at 9:34 AM, Ben Pfaff wrote: > > On Fri, Dec 04, 2015 at 03:57:09PM -0800, Jarno Rajahalme wrote: >> Having a coverage counter tracking the value of the internal seq_next >> should help in debugging. >> >> Suggested-by: Justin Pettit >> Signed-off-by: Jarno Rajahalme > > Ac

Re: [ovs-dev] [PATCH] datapath-windows: reduce padding size in _OVS_PACKET_HDR_INFO

2015-12-08 Thread Sairam Venugopal
Acked-by: Sairam Venugopal On 12/7/15, 3:13 PM, "Nithin Raju" wrote: >Fixing a little buglet from commit: efee3309. > >Signed-by: Nithin Raju >--- > datapath-windows/ovsext/NetProto.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/datapath-windows/ovsext/NetProto.h >b/

[ovs-dev] [PATCH 2/2] vlog: Add vlog/close command.

2015-12-08 Thread Ben Pfaff
Requested-by: P R Dinesh Requested-at: https://github.com/openvswitch/ovs/pull/94 Signed-off-by: Ben Pfaff --- lib/vlog.c | 24 ++ python/ovs/vlog.py | 11 +++- tests/vlog.at | 74 ++ 3 files changed, 108 inserti

[ovs-dev] [PATCH 1/2] tests: Add vlog tests for C implementation to match Python tests.

2015-12-08 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- tests/automake.mk| 2 + tests/test-unixctl.c | 186 +++ tests/vlog.at| 131 3 files changed, 319 insertions(+) create mode 100644 tests/test-unixctl.c diff --git a/tes

Re: [ovs-dev] [PATCH] datapath-windows: Don't assert for unknown actions

2015-12-08 Thread Ben Pfaff
Thanks Sairam and Nithin, I applied this to master. On Tue, Dec 01, 2015 at 01:06:15AM +, Sairam Venugopal wrote: > Thanks for the patch. > > Acked-by: Sairam Venugopal > > > > On 11/25/15, 12:32 PM, "Nithin Raju" wrote: > > >On Hyper-V, we currently don't validate a flow to see if data

Re: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths features.

2015-12-08 Thread Joe Stringer
On 7 December 2015 at 13:00, Daniele Di Proietto wrote: > This is an easy way to keep track of the features supported by the > different datapaths. > > Nithin helped filling the list for the Hyper-V port. > > CC: Nithin Raju > Signed-off-by: Daniele Di Proietto > Thanks for doing this! This s

Re: [ovs-dev] [PATCH 0/4] datapath: Backported upstream fixes.

2015-12-08 Thread Pravin Shelar
On Mon, Dec 7, 2015 at 7:49 PM, Jesse Gross wrote: > On Mon, Dec 7, 2015 at 6:23 PM, Pravin B Shelar wrote: >> Few important bugfixes for OVS out of tree module. >> >> Pravin B Shelar (4): >> datapath: Backport: openvswitch: fix hangup on vxlan/gre/geneve >> device deletion >> datapath: B

Re: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clarify DPDK arguments.

2015-12-08 Thread Gray, Mark D
> -Original Message- > From: Ben Pfaff [mailto:b...@ovn.org] > Sent: Tuesday, December 8, 2015 4:50 PM > To: Gray, Mark D > Cc: Traynor, Kevin; dev@openvswitch.org > Subject: Re: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clarify DPDK arguments. > > On Tue, Dec 08, 2015 at 04:41:37PM +, Gray

Re: [ovs-dev] 802.1ad code contribution to OVS

2015-12-08 Thread Joe Stringer
Hi Uday, On 8 December 2015 at 06:43, wrote: We want to contribute the same to the openvswitch . Please , let me know > whom to approach regarding reviews. All comments are appreciated. Reviews are conducted on this mailinglist, you can send patches as per the instructions in CONTRIBUTING.md.

Re: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths features.

2015-12-08 Thread Justin Pettit
> On Dec 8, 2015, at 8:51 AM, Nithin Raju wrote: > > Thanks for putting this together. Like we discussed offline, a lot of the > hyper-v values are subject to change in the near future, but the matrix > represents that state of the Hyper-V datapath as of today. That's great to hear. When a fea

Re: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths features.

2015-12-08 Thread Justin Pettit
> On Dec 8, 2015, at 1:01 AM, Gray, Mark D wrote: > >> +Feature | Linux upstream | Linux OVS tree | Userspace | >> Hyper-V | >> +--|:--:|:--:|:-:|:- >> +--|--:| >> +Connection tracking | 4.3 |

Re: [ovs-dev] [PATCH] datapath: Avoid warning for unused static data on Linux <=3.9.0.

2015-12-08 Thread Ben Pfaff
On Mon, Dec 07, 2015 at 04:27:32PM -0800, Pravin Shelar wrote: > On Mon, Dec 7, 2015 at 12:34 PM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > Acked-by: Pravin B Shelar Thanks, applied to master and branch-2.5. ___ dev mailing list dev@openvswit

Re: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clarify DPDK arguments.

2015-12-08 Thread Ben Pfaff
On Tue, Dec 08, 2015 at 04:41:37PM +, Gray, Mark D wrote: > > -Original Message- > > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Kevin > > Traynor > > Sent: Monday, December 7, 2015 5:58 PM > > To: dev@openvswitch.org > > Subject: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clari

Re: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths features.

2015-12-08 Thread Nithin Raju
Thanks for putting this together. Like we discussed offline, a lot of the hyper-v values are subject to change in the near future, but the matrix represents that state of the Hyper-V datapath as of today. Acked-by: Nithin Raju -Original Message- From: Daniele Di Proietto Date: Monday,

[ovs-dev] Invoice #CS-49411815

2015-12-08 Thread Liza Witt
Dear Customer Your invoice appears below. Please remit payment at your earliest convenience. Thank you for your business - we appreciate it very much. Sincerely, Liza Witt Courier Service ___ dev mailing list dev@openvswitch.org http://openvswitch.org/

Re: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clarify DPDK arguments.

2015-12-08 Thread Gray, Mark D
> -Original Message- > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Kevin > Traynor > Sent: Monday, December 7, 2015 5:58 PM > To: dev@openvswitch.org > Subject: [ovs-dev] [PATCH] INSTALL.DPDK.md: Clarify DPDK arguments. > > Add some information about the DPDK -c and -n pa

Re: [ovs-dev] [ovs] ovn-nbctl:add db commands help (#93)

2015-12-08 Thread Russell Bryant
On 12/08/2015 01:06 AM, Wei Li wrote: > > > 在 2015/12/7 23:30, Russell Bryant 写道: >> >> Can you update the man page, as well? >> > I would like to do this,but have a question > > There is a reference to /db-ctl-base.man/ in /ovn-sbctl.8.in/ implement > by "/.so lib/db-ctl-base.man/" > > but ov

Re: [ovs-dev] ovn-nbctl:What are router commands like?

2015-12-08 Thread Russell Bryant
On 12/07/2015 06:46 PM, Ben Pfaff wrote: > On Mon, Dec 07, 2015 at 01:13:27PM -0500, Russell Bryant wrote: >> I'm looking at this again and I think it's worth keeping because the >> output is a bit friendlier. >> >> How about supporting both "show LSWITCH" and "show LROUTER". The >> implementation

[ovs-dev] 802.1ad code contribution to OVS

2015-12-08 Thread ravulakollu.kumar
Hi Team , We all know that ovs supports 4 types of port configuration . 1. Access 2. Trunk 3. Native-tagged 4. Native-untagged Through access port configuration we can achieve 802.1q by adding normal flow(Not Openflow) ,we all know that when ovs is configured with norm

Re: [ovs-dev] [ovs-discuss] [announce] driverctl: utility for persistent alternative driver binding

2015-12-08 Thread Panu Matilainen
On 12/04/2015 05:44 PM, Gray, Mark D wrote: I welcome this initiative, one question below: -Original Message- From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of Panu Matilainen Sent: Friday, December 4, 2015 10:54 AM To: d...@dpdk.org; us...@dpdk.org; dev@openvswitch.or

Re: [ovs-dev] [PATCH] datapath-windows: Support for OVS_KEY_ATTR_MPLS attribute

2015-12-08 Thread Sorin Vinturis
Hi Nithin, Thanks for your review. The mpls push and pop actions were tested by manually changing the action type when one was received. I don't know how to trigger the MPLS push/pop actions for properly testing this part. The part of the patch regarding MPLS key extraction or NL buffer parsin

Re: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths features.

2015-12-08 Thread Gray, Mark D
Good initiative Daniele. Comment below. > -Original Message- > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di > Proietto > Sent: Monday, December 7, 2015 9:01 PM > To: dev@openvswitch.org > Subject: [ovs-dev] [PATCH] FAQ: Add entry about different datapaths > featur