Re: [ovs-dev] [PATCH v2] datapath-windows: update DESIGN document

2014-11-21 Thread Sorin Vinturis
Hi Nithin, I have only one minor comment. Please see inline. Other than that, looks good to me. Acked-by: Sorin Vinturis Thanks, Sorin -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Nithin Raju Sent: Friday, 21 November, 2014 02:28 To: dev@openvswitch.o

Re: [ovs-dev] [PATCH] datapath-windows: move vport code from Datapath.c to Vport.c

2014-11-21 Thread Sorin Vinturis
Acked-by: Sorin Vinturis -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Nithin Raju Sent: Friday, 21 November, 2014 02:52 To: dev@openvswitch.org Subject: [ovs-dev] [PATCH] datapath-windows: move vport code from Datapath.c to Vport.c Plain code motion. No

Re: [ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance

2014-11-21 Thread Saloni Jain
Hi Ben, Thank you for reviewing the patch. >"sparse" reported these warnings: All the sparse warnings have been resolved >The config field in a table description is a collection of bit-fields, >but some of this code, such as ofp_print_table_config() and >ofputil_append_table_desc_reply(), treat

[ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance

2014-11-21 Thread Saloni Jain
undefined =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information c

[ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance

2014-11-21 Thread Saloni Jain
undefined =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information c

Re: [ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance

2014-11-21 Thread Saloni Jain
Hi Team, Please ignore previous mail for the patch " [ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance" containing text "undefined". Due to some mail server problem, the patch was not sent correctly. We will resend the patch from "rishi.ba...@tcs.com" mail-id.

[ovs-dev] [PATCH] ovs-ofctl: Implementation of eviction on the basis of Importance

2014-11-21 Thread Rishi Bamba
From: Saloni Jain This commit enables the eviction mechanism on the basis of importance as per the openflow specification 1.4. ovs-ofctl -O OpenFlow14 mod-table evict -Enable eviction on of . Eviction adds a mechanism  enabling the switch to automatically eliminate entries of lower  i

Re: [ovs-dev] [patch V2] dpif-netdev: Garbage collect the exact match cache periodically.

2014-11-21 Thread Jarno Rajahalme
LGTM, Acked-by: Jarno Rajahalme Thanks, Jarno > On Nov 20, 2014, at 4:37 PM, Alex Wang wrote: > > On current master, the exact match cache entry can keep reference to > 'struct dp_netdev_flow' even after the flow is removed from the flow > table. This means the free of allocated memory o

Re: [ovs-dev] [patch V2] dpif-netdev: Garbage collect the exact match cache periodically.

2014-11-21 Thread Alex Wang
Thx applied to master~ On Fri, Nov 21, 2014 at 7:48 AM, Jarno Rajahalme wrote: > LGTM, > > Acked-by: Jarno Rajahalme > > Thanks, > > Jarno > > > > On Nov 20, 2014, at 4:37 PM, Alex Wang wrote: > > > > On current master, the exact match cache entry can keep reference to > > 'struct dp_netdev_

[ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Sorin Vinturis
In a hybrid forwarding environment, there are two types of packets that enter and leave the Hyper-V extensible switch: NVGRE packets and non-NVGRE packets. Hybrid forwarding involves filtering the incoming traffic based on packet type. Thus, we must split the incoming traffic into NVGRE and non-NV

Re: [ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Eitan Eliahu
Hi Sorin, This change applies only for 6.40 drivers. Unless we bump the driver version this code has no effect. You may want to bump the minor version. #define NDIS_FILTER_MAJOR_VERSION 6 #define NDIS_FILTER_MINOR_VERSION 30 < 40 driverChars.MajorNdisVersion = NDIS_FILTER_MAJOR_

Re: [ovs-dev] [PATCH] cmap: Shrink cmap when load factor is below 20%.

2014-11-21 Thread Ben Pfaff
On Thu, Nov 20, 2014 at 10:11:46PM -0800, Alex Wang wrote: > This commit adds check in cmap_remove() and shrinks the cmap by half > if the load factor is below 20%. This is to reduce the memory > utilization of cmap and to avoid the allocated cmap memory occupying > the top of heap memory, prevent

[ovs-dev] [PATCH] datapath-windows: do not complete an IRP when pending status returned

2014-11-21 Thread Eitan Eliahu
The driver completes a pending IRP, the IRP is being marked free by the I/O manager which causes a system crash when the IRP is completed at the second time. The driver should not complete a pending IRP in the context of the Device I/O control thread. *** Fatal System Error: 0x0044

Re: [ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Nithin Raju
On Nov 21, 2014, at 8:23 AM, Eitan Eliahu wrote: > Hi Sorin, > This change applies only for 6.40 drivers. Unless we bump the driver version > this code has no effect. > You may want to bump the minor version. > > #define NDIS_FILTER_MAJOR_VERSION 6 > #define NDIS_FILTER_MINOR_VERSION 30 <

[ovs-dev] [PATCH] usermode-windows: Set the socket pid number in the NL message

2014-11-21 Thread Eitan Eliahu
The pid must be set in the NL header as the driver checks it against the pid in the instance paired with the socket. Signed-off-by: Eitan Eliahu --- lib/netlink-socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index d46c831..2e02c43 100644

Re: [ovs-dev] [PATCHv10 ovs 12/15] datapath: Add support for unique flow identifiers.

2014-11-21 Thread Pravin Shelar
On Thu, Nov 20, 2014 at 4:33 PM, Joe Stringer wrote: > On 19 November 2014 15:34, Pravin Shelar wrote: >> On Thu, Nov 13, 2014 at 11:17 AM, Joe Stringer >> wrote: >>> @@ -684,33 +691,43 @@ static size_t ovs_flow_cmd_msg_size(const struct >>> sw_flow_actions *acts) >>> >>> /* Called with ovs_m

Re: [ovs-dev] [PATCH] usermode-windows: Set the socket pid number in the NL message

2014-11-21 Thread Nithin Raju
On Nov 21, 2014, at 5:34 PM, Eitan Eliahu wrote: > The pid must be set in the NL header as the driver checks it against the pid > in > the instance paired with the socket. > > Signed-off-by: Eitan Eliahu Acked-by: Nithin Raju ___ dev mailing list

Re: [ovs-dev] [PATCHv10 ovs 03/15] datapath: Add 'is_mask' to ovs_nla_put_flow().

2014-11-21 Thread Pravin Shelar
On Thu, Nov 20, 2014 at 4:15 PM, Joe Stringer wrote: > On 13 November 2014 11:17, Joe Stringer wrote: >> This function previously hid the 'is_mask' parameter from the callers, >> which actually have better knowledge about whether it is serializing a >> mask or not. Expose this parameter to the ca

Re: [ovs-dev] [PATCH] datapath-windows: do not complete an IRP when pending status returned

2014-11-21 Thread Nithin Raju
On Nov 21, 2014, at 4:58 PM, Eitan Eliahu wrote: > +/* Should not complete a pending IRP unless proceesing is completed */ > +if (status == STATUS_PENDING) { > +return status; > +} > return OvsCompleteIrpRequest(irp, (ULONG_PTR)replyLen, status); > } Acked-by: Nithin Raj

[ovs-dev] [PATCH] xen.spec: Fix xenserver build failure.

2014-11-21 Thread Alex Wang
This commit conducts similar operations as commit 2fd84d5e5 (rhel: Include pkgconfig and update header install in Fedora/RHEL spec.) to xenserver spec file to prevent the following rpmbuild failure. RPM build errors: Installed (but unpackaged) file(s) found: /usr/include/openfl

Re: [ovs-dev] [PATCH v2] datapath-windows: update DESIGN document

2014-11-21 Thread Nithin Raju
On Nov 21, 2014, at 1:07 AM, Sorin Vinturis wrote: > Hi Nithin, > > I have only one minor comment. Please see inline. > Other than that, looks good to me. > > Acked-by: Sorin Vinturis Thanks again for your patient review. I've sent out a v3. Thanks, -- Nithin __

Re: [ovs-dev] [PATCH] cmap: Shrink cmap when load factor is below 20%.

2014-11-21 Thread Alex Wang
Thx!, applied to master, On Fri, Nov 21, 2014 at 8:36 AM, Ben Pfaff wrote: > On Thu, Nov 20, 2014 at 10:11:46PM -0800, Alex Wang wrote: > > This commit adds check in cmap_remove() and shrinks the cmap by half > > if the load factor is below 20%. This is to reduce the memory > > utilization of c

Re: [ovs-dev] [PATCH] xen.spec: Fix xenserver build failure.

2014-11-21 Thread Gurucharan Shetty
On Fri, Nov 21, 2014 at 11:06 AM, Alex Wang wrote: > This commit conducts similar operations as commit 2fd84d5e5 > (rhel: Include pkgconfig and update header install in > Fedora/RHEL spec.) to xenserver spec file to prevent the > following rpmbuild failure. > > RPM build errors: >Install

Re: [ovs-dev] [PATCH] xen.spec: Fix xenserver build failure.

2014-11-21 Thread Alex Wang
On Fri, Nov 21, 2014 at 11:10 AM, Gurucharan Shetty wrote: > Acked-by: Gurucharan Shetty > Thx for the review, I have tested it, ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 1/2] ofproto-dpif: add test case for OF1.4 packet-in

2014-11-21 Thread Shu Shen
The test case current fails and shows a bug when OF1.4 is used between the controller and the switch, the packet-in message still uses OF1.3 wire protocol version. Signed-off-by: Shu Shen --- tests/ofproto-dpif.at | 44 1 file changed, 44 insertions(+

[ovs-dev] [PATCH 2/2] ofproto-dpif: fix OF1.4 packet-in wire protocol version

2014-11-21 Thread Shu Shen
Previously even when OF1.4 is used between the controller and the switch, packet-in messages has OF1.3 as wire protocol version. Signed-off-by: Shu Shen --- lib/ofp-msgs.h | 2 +- lib/ofp-util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ofp-msgs.h b/lib/ofp-msg

Re: [ovs-dev] [PATCHv3 net] openvswitch: Don't validate IPv6 label masks.

2014-11-21 Thread David Miller
From: Joe Stringer Date: Wed, 19 Nov 2014 13:54:49 -0800 > When userspace doesn't provide a mask, OVS datapath generates a fully > unwildcarded mask for the flow by copying the flow and setting all bits > in all fields. For IPv6 label, this creates a mask that matches on the > upper 12 bits, caus

Re: [ovs-dev] [PATCHv10 ovs 01/15] tests: Add command to purge revalidators of flows.

2014-11-21 Thread Joe Stringer
Jarno, do you have time to look at this? On 13 November 2014 11:17, Joe Stringer wrote: > This patch adds a new 'ovs-appctl revalidator/purge' command which > flushes all flows from all datapaths, and updates the revalidator > udpif_key cache at the same time. > > Update the ofproto-dpif fragment

Re: [ovs-dev] [PATCHv10 ovs 01/15] tests: Add command to purge revalidators of flows.

2014-11-21 Thread Jarno Rajahalme
Looks good to me, Jarno Acked-by: Jarno Rajahalme > On Nov 21, 2014, at 12:52 PM, Joe Stringer wrote: > > Jarno, do you have time to look at this? > >> On 13 November 2014 11:17, Joe Stringer wrote: >> This patch adds a new 'ovs-appctl revalidator/purge' command which >> flushes all flows

Re: [ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Sorin Vinturis
Hi all, No need to change any macro regarding minor version. In ndis.h header we have the following: #if (defined(NDIS640)) #define NDIS_FILTER_MAJOR_VERSION 6 #define NDIS_FILTER_MINOR_VERSION 40 I have set the preprocessor macro NDIS640=1 in the project properties, so the NDIS_FILTER_MINOR_V

Re: [ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Eitan Eliahu
Hi Sorin, Thanks for explaining that. Do we need to have a new VS project (and driver name) for 6.40 driver? Eitan -Original Message- From: Sorin Vinturis [mailto:svintu...@cloudbasesolutions.com] Sent: Friday, November 21, 2014 1:21 PM To: Nithin Raju; Eitan Eliahu Cc: dev@openvswitch.o

Re: [ovs-dev] [PATCH v2] dpctl: Fix crash.

2014-11-21 Thread Pravin Shelar
Jarno, Can you review this patch? On Wed, Nov 19, 2014 at 10:12 PM, Pravin B Shelar wrote: > ovs-dpctl crashed due to uninitialized router classifier. To > fix this issue move ovs router initialization to route table > module. > > Reported-by: Madhu Challa > Signed-off-by: Pravin B Shelar > ---

Re: [ovs-dev] [PATCH] dpif-netdev: Remove redundant hash action handling.

2014-11-21 Thread Pravin Shelar
Jarno, Can you review this patch? Thanks. On Thu, Nov 13, 2014 at 3:03 PM, Pravin B Shelar wrote: > odp_execute_actions() already handles hash execution part. > > Signed-off-by: Pravin B Shelar > --- > lib/dpif-netdev.c | 29 + > 1 files changed, 1 insertions(+),

Re: [ovs-dev] [PATCH] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Sorin Vinturis
Hi Eitan, We already have defined in VS build configurations for Windows 8 Debug/Release and Windows 8.1 Debug/Release, which will create the corresponding NDIS driver, 6.30 or 6.40. There is no need to change the driver name. Both versions will be in its corresponding directory, Win8Release or

[ovs-dev] How user actions are translated to kernel actions?

2014-11-21 Thread Masoud Moshref Javadi
Where/how are user actions translated to actions that kernel understands? Looking at datapath/actions.c, it seems the kernel only understands OVS_ACTION_ATTR_* from netlink messages. At the userside it seems that ofproto-dpif-xlate.c:xlate_actions__() looks for the rule by calling rule_dpif_l

Re: [ovs-dev] [ovs-issues] Account for hybrid networking in the OVS Hyper-V switch Extension (#52)

2014-11-21 Thread Sorin Vinturis
Nithin, I will send a v2 patch to with the necessary conditional code. Thanks! From: nithinrajub [mailto:notificati...@github.com] Sent: Friday, 21 November, 2014 23:54 To: openvswitch/ovs-issues Cc: Sorin Vinturis Subject: Re: [ovs-issues] Account for hybrid networking in the OVS Hyper-V switch

[ovs-dev] Bug#768095: openvswitch-datapath-dkms fails to build on Debian 7.7 3.2.0-4-amd64 (3.2.63-2+deb7u1)

2014-11-21 Thread Ben Pfaff
On Mon, Nov 17, 2014 at 04:38:27PM +0100, Jonathan Dupart wrote: > Hi, > > I have been bittend by this bug. > > I am raising this bug severity to grave, as it renders openvswitch > unusable after upgrading to the last stable kernel. > > I tested the patch and it works flawlessly. It should be qu

Re: [ovs-dev] [PATCH v2] dpctl: Fix crash.

2014-11-21 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme With a small nit below, Jarno On Nov 19, 2014, at 10:12 PM, Pravin B Shelar wrote: > ovs-dpctl crashed due to uninitialized router classifier. To > fix this issue move ovs router initialization to route table > module. > > Reported-by: Madhu Challa > Signed-off-

Re: [ovs-dev] [PATCH] dpif-netdev: Remove redundant hash action handling.

2014-11-21 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Nov 13, 2014, at 3:03 PM, Pravin B Shelar wrote: > odp_execute_actions() already handles hash execution part. > > Signed-off-by: Pravin B Shelar > --- > lib/dpif-netdev.c | 29 + > 1 files changed, 1 insertions(+), 28 deletions(-) > >

Re: [ovs-dev] How user actions are translated to kernel actions?

2014-11-21 Thread Jarno Rajahalme
OpenFlow actions are initially translated by ofproto-dpif-xlate functions. The kernel actions are generated by the various commit_* functions in lib/odp-util.c, called by the xlate functions. Regards, Jarno On Nov 21, 2014, at 2:00 PM, Masoud Moshref Javadi wrote: > Where/how are user acti

Re: [ovs-dev] [PATCH 1/2] ovs-ofctl: Consistently escape '-' in group documentation

2014-11-21 Thread Ben Pfaff
On Wed, Nov 19, 2014 at 12:17:53PM +0900, YAMAMOTO Takashi wrote: > > On Wed, Nov 19, 2014 at 11:53:53AM +0900, YAMAMOTO Takashi wrote: > >> hi, > >> > >> > I am unsure of the reason for escaping '-' inside of control > >> > sequences but regardless this patch makes the group documentation > >> >

Re: [ovs-dev] [PATCH] tunnel-push-pop.at: Make test more deterministic.

2014-11-21 Thread Jarno Rajahalme
Pravin, Would you mind reviewing this? Jarno On Nov 20, 2014, at 2:13 PM, Jarno Rajahalme wrote: > Using the '-march=native' broke this test in a i7 laptop, most likely > due to a different hash implementation, which resulted in different > datapath port number assignment accross different c

Re: [ovs-dev] [PATCH] Add build of ovsext.sln using MSBuild

2014-11-21 Thread Gurucharan Shetty
On Thu, Aug 28, 2014 at 6:49 AM, Alin Serdean wrote: > This commit adds to the automake build system the full build required > by the forwarding extension solution. > > It will help a lot in the future CI to check the full build of the project. > > To configure the forwarding extension to be built

[ovs-dev] [PATCH v2] datapath-windows: Support for hybrid forwarding

2014-11-21 Thread Sorin Vinturis
In a hybrid forwarding environment, there are two types of packets that enter and leave the Hyper-V extensible switch: NVGRE packets and non-NVGRE packets. Hybrid forwarding involves filtering the incoming traffic based on packet type. Thus, we must split the incoming traffic into NVGRE and non-NV

Re: [ovs-dev] [PATCH] datapath-windows: do not complete an IRP when pending status returned

2014-11-21 Thread Ben Pfaff
On Fri, Nov 21, 2014 at 04:58:54PM -0800, Eitan Eliahu wrote: > The driver completes a pending IRP, the IRP is being marked free by the > I/O manager which causes a system crash when the IRP is completed at > the second time. > The driver should not complete a pending IRP in the context of the > De

Re: [ovs-dev] [PATCH] tunnel-push-pop.at: Make test more deterministic.

2014-11-21 Thread Pravin Shelar
On Thu, Nov 20, 2014 at 2:13 PM, Jarno Rajahalme wrote: > Using the '-march=native' broke this test in a i7 laptop, most likely > due to a different hash implementation, which resulted in different > datapath port number assignment accross different compilations. > > Break up the ports setup so th

Re: [ovs-dev] [PATCH] usermode-windows: Set the socket pid number in the NL message

2014-11-21 Thread Ben Pfaff
On Fri, Nov 21, 2014 at 05:34:56PM -0800, Eitan Eliahu wrote: > The pid must be set in the NL header as the driver checks it against the pid > in > the instance paired with the socket. > > Signed-off-by: Eitan Eliahu Thanks, applied! ___ dev mailing l

Re: [ovs-dev] [PATCH] tunnel-push-pop.at: Make test more deterministic.

2014-11-21 Thread Jarno Rajahalme
On Nov 21, 2014, at 3:22 PM, Pravin Shelar wrote: > On Thu, Nov 20, 2014 at 2:13 PM, Jarno Rajahalme > wrote: >> Using the '-march=native' broke this test in a i7 laptop, most likely >> due to a different hash implementation, which resulted in different >> datapath port number assignment accro

[ovs-dev] [PATCH] ofproto: fix checking of packet_in_mask in async config

2014-11-21 Thread Shu Shen
The check shall use wire protool reasons, which could be different from the internal packet-in reason. Signed-off-by: Shu Shen --- ofproto/connmgr.c | 2 +- tests/ofproto-dpif.at | 62 +++ 2 files changed, 63 insertions(+), 1 deletion(-) diff

Re: [ovs-dev] [PATCH v2] ofproto: support OFPR_GROUP reason for OF1.4 packet-in.

2014-11-21 Thread Shu Shen
Hi, I'd like to withdraw the previous submission. I'm trying to improve it by splitting into smaller commits. Please see the first few patches that add tests and fix current bugs related to Packet-In: - [ovs-dev] [PATCH 1/2] ofproto-dpif: add test case for OF1.4 packet-in, http://openvswitch.o

Re: [ovs-dev] [PATCHv10 ovs 01/15] tests: Add command to purge revalidators of flows.

2014-11-21 Thread Joe Stringer
Thanks, pushed to master. On 21 November 2014 13:05, Jarno Rajahalme wrote: > Looks good to me, > > Jarno > > Acked-by: Jarno Rajahalme > >> On Nov 21, 2014, at 12:52 PM, Joe Stringer wrote: >> >> Jarno, do you have time to look at this? >> >>> On 13 November 2014 11:17, Joe Stringer wrote: