[ovs-dev] (no subject)

2014-10-06 Thread Bounced mail
ë(sªW­by4ʔÉï¢ùÔSR°.„`"„Ûç“:H·ÊN!ÝΜT¸÷>Ä;Ñ"Æmœ‡¥ ê̈́M‹‚æ2¾ YÓÈçqöq£så†jö×]à ö×îèۃÁÁIٖ·ÇÏ}¸Ü’Wïôé;hé0%\z§Q¼K7¬Þ·Â9®ó“Yn[ððM.Y·þÕêʅ a&Ɇ£uZ˳¢¥Âj]Öý躟°¼Î¹8i0NêêÔO³‚ÔÄHÆK®UDßláô¿yCÐìÔp®BgÓØ0D_t/¢½ì°9žþb¤¬XÉJž%Ù:jŒHÊø¿xѪµI¤Ìrِ††X#dóµ´ç&Ú0Ôx»0ˆ3øP„å”°ðãwvlìJÜÜ$Ù]бRJ”ì~3än£LeÕÜrB߬þ9þ£‰

Re: [ovs-dev] [PATCH v2 10/12] nx-match: Add support for experimenter OXM.

2014-10-06 Thread YAMAMOTO Takashi
> -#define NXM_HEADER(CLASS, FIELD, HASMASK, LENGTH) \ > -(((CLASS) << 16) | ((FIELD) << 9) | ((HASMASK) << 8) | (LENGTH)) > +#define NXM_HEADER(VENDOR, CLASS, HASMASK, FIELD, LENGTH) \ why did you swap FIELD and HASMASK? it's easier for me to remember if it's in th

Re: [ovs-dev] OVS on Hyper-V: Items to discuss for 10/7 IRC meeting

2014-10-06 Thread Nithin Raju
hi Alin, I also wanted to discuss the issues I had found while testing the vport-add patches. thanks, -- Nithin On Oct 6, 2014, at 2:08 PM, Nithin Raju wrote: > hi Alin/Sorin, > These were the items to discuss from out side: > > 1. vport add/del review comments > 2. netlink integration status

[ovs-dev] [PATCH] lib/netlink-socket.c: always pass the output buffer in a transaction

2014-10-06 Thread Nithin Raju
We need to pass down the output buffer so that the kernel can return transaction status - error or otherwise. Signed-off-by: Nithin Raju --- lib/netlink-socket.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 1aa76ae..

Re: [ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-06 Thread Nithin Raju
On Oct 6, 2014, at 5:52 PM, Ankur Sharma wrote: > Hi Nithin, > > I have not tested these changes yet. > I am figuring out the user-space changes needed for simulating a > PACKET_CMD_EXECUTE. > > If you want to hold the review till testing is done then we can do that. No problem. Thanks for

[ovs-dev] [PATCH] datapath-windows: Update OvsGetExtInfoIoctl() to the new vport add workflow

2014-10-06 Thread Nithin Raju
I applied the patches for the new vport add workflow that is out for review, and found that some of the existing code in OvsGetExtInfoIoctl() needs to be updated. In this patch, we add a CPP called USE_NEW_VPORT_ADD_WORKFLOW and add the fixes under USE_NEW_VPORT_ADD_WORKFLOW == 1. The current value

Re: [ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Gurucharan Shetty
On Mon, Oct 6, 2014 at 3:51 PM, Ben Pfaff wrote: > On Mon, Oct 06, 2014 at 10:40:50AM -0700, Gurucharan Shetty wrote: >> Using the compiler intrinsic shows approximately around 25% speed >> up with some classifier specific unit tests. >> >> Signed-off-by: Gurucharan Shetty > > Nice! > > I don't t

Re: [ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-06 Thread Ankur Sharma
Hi Nithin, I have not tested these changes yet. I am figuring out the user-space changes needed for simulating a PACKET_CMD_EXECUTE. If you want to hold the review till testing is done then we can do that. Thanks. Regards, Ankur From: Nithin Raju Sent:

Re: [ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-06 Thread Nithin Raju
On Oct 6, 2014, at 4:23 PM, Ankur Sharma wrote: > In this patch we have implemented the handler for > OVS_PACKET_CMD_EXECUTE command. > > Signed-off-by: Ankur Sharma Ankur, Can you add a note on how you validated these changes? -- Nithin ___ dev ma

[ovs-dev] [PATCH v1 2/3] datapath-windows: changes to existing PACKET_CMD handler.

2014-10-06 Thread Ankur Sharma
In this patch we have made following changes: OvsPacketExecute => Changed the data structure to have packet and actions as pointer (instead of zero length array). It is done because we will not do memcpy of packet now, pointer will just point to corresponding offset in input buffer. OvsExecuteDpI

[ovs-dev] [PATCH v1 1/3] datapath-windows: OVS_PACKET_CMD_EXECUTE command handler.

2014-10-06 Thread Ankur Sharma
In this patch we cover the basic registeration of OVS_PACKET_CMD_EXECUTE command handler. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/Datapath.c | 18 +- datapath-windows/ovsext/User.c | 18 ++ datapath-windows/ovsext/User.h | 5 + 3 files

[ovs-dev] [PATCH v1 3/3] datapath-windows: OVS_PACKET_CMD_EXECUTE handler.

2014-10-06 Thread Ankur Sharma
In this patch we have implemented the handler for OVS_PACKET_CMD_EXECUTE command. Signed-off-by: Ankur Sharma --- datapath-windows/ovsext/User.c | 74 +- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/datapath-windows/ovsext/User.c b/datapat

Re: [ovs-dev] [PATCH 6/7] lib/flow: Reduce calls to count_1bits().

2014-10-06 Thread Jarno Rajahalme
Ben, This is much cleaner, thanks! Acked-by: Jarno Rajahalme On Oct 6, 2014, at 2:17 PM, Ben Pfaff wrote: > On Wed, Oct 01, 2014 at 04:02:36PM -0700, Jarno Rajahalme wrote: >> Depending on the CPU, count_1bits() may be more or less expensive, so >> it is better to avoid unnecessary calls to

Re: [ovs-dev] [PATCH v2] lib/bitmap: Faster bitmap functions.

2014-10-06 Thread Ben Pfaff
On Fri, Oct 03, 2014 at 01:22:07PM -0700, Jarno Rajahalme wrote: > Replace bitwise loops with a single operation, inline all bitmap > functions. Inlining allows the compiler to remove unnecessary code > due to some parameters being compile-time constants. > > Before: > > $ tests/ovstest test-bit

Re: [ovs-dev] [PATCH 2/7] lib: Fix MPLS masking.

2014-10-06 Thread Jarno Rajahalme
Backported to brances 2.2 and 2.3, issue did not exist in branch 2.1. Jarno On Oct 6, 2014, at 3:39 PM, Jarno Rajahalme wrote: > Thanks for the review! > > Pushed to master, working on the back port now. > > Jarno > > On Oct 6, 2014, at 1:27 PM, Ben Pfaff wrote: > >> On Wed, Oct 01, 201

Re: [ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 10:40:50AM -0700, Gurucharan Shetty wrote: > Using the compiler intrinsic shows approximately around 25% speed > up with some classifier specific unit tests. > > Signed-off-by: Gurucharan Shetty Nice! I don't think that the "& 0x" operations are necessary

Re: [ovs-dev] [PATCH] lib/ofpbuf.c: correct the comment for ofpbuf_trim

2014-10-06 Thread Ben Pfaff
On Sat, Oct 04, 2014 at 11:28:43AM +0800, Wang Sheng-Hui wrote: > Headroom and tailroom both are removed. > > Signed-off-by: Wang Sheng-Hui Applied, thanks! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] lib/ofpbuf.h: correct comments for ofpbuf_tail and ofpbuf_end

2014-10-06 Thread Ben Pfaff
On Sat, Oct 04, 2014 at 09:22:23AM +0800, Wang Sheng-Hui wrote: > > The return type of ofpbuf_tail and ofpbuf_end is pointer, not byte. > > Signed-off-by: Wang Sheng-Hui Applied, thanks! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/

Re: [ovs-dev] [PATCH] lib/ofpbuf.c: correct comment for ofpbuf_reserve_with_tailroom

2014-10-06 Thread Ben Pfaff
On Sat, Oct 04, 2014 at 10:11:25AM +0800, Wang Sheng-Hui wrote: > Correct the old comment like ofpbuf_reserve to descript the expected > behavior of ofpbuf_reserve_with_tailroom > > Signed-off-by: Wang Sheng-Hui Applied, thanks! ___ dev mailing list de

Re: [ovs-dev] [PATCH 7/7 v3] datapath-windows: implementation of netdev commands

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 01:07:23PM -0700, Nithin Raju wrote: > validation: > - Vport dump works now without printing any errors. I didn't go so far > as to test if vport add works. > > Signed-off-by: Nithin Raju > Acked-by: Ankur Sharma > Acked-by: Alin Gabriel Serdean > Tested-by: Alin Gabriel

Re: [ovs-dev] [PATCH 2/7] lib: Fix MPLS masking.

2014-10-06 Thread Jarno Rajahalme
Thanks for the review! Pushed to master, working on the back port now. Jarno On Oct 6, 2014, at 1:27 PM, Ben Pfaff wrote: > On Wed, Oct 01, 2014 at 04:02:32PM -0700, Jarno Rajahalme wrote: >> Previously we masked labels not present in the incoming packet. >> >> Signed-off-by: Jarno Rajahalm

Re: [ovs-dev] [PATCH 5/7] lib/cmap: Return number of nodes from functions modifying the cmap.

2014-10-06 Thread Jarno Rajahalme
On Oct 6, 2014, at 1:39 PM, Ben Pfaff wrote: > On Wed, Oct 01, 2014 at 04:02:35PM -0700, Jarno Rajahalme wrote: >> We already update the count field as the last step of these functions, >> so returning the current count is very cheap. Callers that care about >> the count become a bit more effic

Re: [ovs-dev] [PATCH 1/7] lib/match: Do not format undefined fields.

2014-10-06 Thread Jarno Rajahalme
Pushed to master, Jarno On Oct 6, 2014, at 3:10 PM, Ben Pfaff wrote: > On Mon, Oct 06, 2014 at 01:53:50PM -0700, Jarno Rajahalme wrote: >> >> On Oct 6, 2014, at 1:13 PM, Ben Pfaff wrote: >> >>> On Wed, Oct 01, 2014 at 04:02:31PM -0700, Jarno Rajahalme wrote: Add function flow_wildcard

Re: [ovs-dev] [PATCH 5/5] lib/cmap: cmap_find_batch().

2014-10-06 Thread Jarno Rajahalme
Thanks for the reviews! Series pushed, comments below, Jarno On Oct 6, 2014, at 11:52 AM, Ben Pfaff wrote: > On Wed, Sep 24, 2014 at 11:31:47AM -0700, Jarno Rajahalme wrote: >> Batching the cmap find improves the memory behavior with large cmaps >> and can make searches twice as fast: >> >>

Re: [ovs-dev] [PATCH v4] datapath-windows: Incorrect assumption of the IRQL

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 03:19:23PM +, Sorin Vinturis wrote: > Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But > in many places of the code, while holding a spin lock, there > are useless checks for the current IRQL against DISPATCH_LEVEL. > Also, the dispatch flag is not correctly

Re: [ovs-dev] [PATCH v3 5/5] datapath-windows: Flow get implementation.

2014-10-06 Thread Ben Pfaff
On Fri, Oct 03, 2014 at 03:53:45PM -0700, Ankur Sharma wrote: > In this patch we have implemented the flow get. > > Signed-off-by: Ankur Sharma > Acked-by: Nithin Raju All applied, thanks! ___ dev mailing list dev@openvswitch.org http://openvswitch.or

Re: [ovs-dev] [PATCH] openvswitch.spec: Remove dependency with openvswitch-kmod.

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 12:45:15PM -0700, Gurucharan Shetty wrote: > Upstream Linux has OVS kernel module that includes most (not all) of > the features that comes with the kernel module from openvswitch.org. > So, it is okay to relax the requirement for OVS userspace package > to depend on openvsw

Re: [ovs-dev] [PATCH 2/3] ofproto-dpif: Check frags only once.

2014-10-06 Thread Ben Pfaff
On Thu, Oct 02, 2014 at 09:20:32AM -0700, Jarno Rajahalme wrote: > > On Sep 26, 2014, at 11:33 AM, Ben Pfaff wrote: > > > On Wed, Sep 24, 2014 at 11:24:01AM -0700, Jarno Rajahalme wrote: > >> Earlier I have seen the frags checking suspiciously high in perf > >> reports, but did not understand wh

Re: [ovs-dev] [PATCH 1/7] lib/match: Do not format undefined fields.

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 01:53:50PM -0700, Jarno Rajahalme wrote: > > On Oct 6, 2014, at 1:13 PM, Ben Pfaff wrote: > > > On Wed, Oct 01, 2014 at 04:02:31PM -0700, Jarno Rajahalme wrote: > >> Add function flow_wildcards_init_for_packet() that can be used to set > >> sensible wildcards when megaflo

Re: [ovs-dev] [PATCH 4/5] lib/cmap: split up cmap_find().

2014-10-06 Thread Jarno Rajahalme
On Oct 6, 2014, at 11:00 AM, Ben Pfaff wrote: > On Wed, Sep 24, 2014 at 11:31:46AM -0700, Jarno Rajahalme wrote: >> This makes the following patch easier and cleans up the code. >> >> Explicit "inline" keywords seem necessary to prevent performance >> regression on cmap_find() with GCC 4.7 -O2.

Re: [ovs-dev] [PATCH 4/7] lib/flow: Add miniflow_extract_from_flow

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:34PM -0700, Jarno Rajahalme wrote: > miniflow_extract_from_flow() is faster than miniflow_init(), since it > does not scan the fields not significant for the packet type. More > importantly, it produces the same layout as miniflow_extract, which > does not try to compr

Re: [ovs-dev] [PATCH 3/7] lib/flow: Do not try to compress IPv6 flow label in miniflow_extract().

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:33PM -0700, Jarno Rajahalme wrote: > Working with netdev_flow_keys is simpler when the key has the fields > present even when they are all-zeroes. > > Signed-off-by: Jarno Rajahalme I don't understand the commit message. I think I need more context. For example, wh

Re: [ovs-dev] [PATCH] ovs-vswitchd.at: Port a test to run successfully on Windows.

2014-10-06 Thread Gurucharan Shetty
On Mon, Oct 6, 2014 at 11:41 AM, Alex Wang wrote: > Thx for the fix! > > Since the "ERR" log is the last one, could we have this fold in? > > diff --git a/tests/ovs-vswitchd.at b/tests/ovs-vswitchd.at > index 374be49..33772d8 100644 > --- a/tests/ovs-vswitchd.at > +++ b/tests/ovs-vswitchd.at > @@

Re: [ovs-dev] [PATCH 7/7] lib/dpif-netdev: Integrate megaflow classifier.

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:37PM -0700, Jarno Rajahalme wrote: > flow inserts and removals are simplified: > > - No need for classifier internal mutex, as dpif-netdev already has a > 'flow_mutex' > - Number of memory allocations/frees can be halved > > Lookup code path is a bit more effcient

Re: [ovs-dev] [PATCH 2/5] lib/cmap: More efficient cmap_find().

2014-10-06 Thread Jarno Rajahalme
On Oct 6, 2014, at 10:47 AM, Ben Pfaff wrote: > On Wed, Sep 24, 2014 at 11:31:44AM -0700, Jarno Rajahalme wrote: >>These makes cmap_find 10% faster on GCC 4.7 (-O2 -g). >> >> Signed-off-by: Jarno Rajahalme > > I'm surprised it makes so much difference! > > What if we additionally change:

Re: [ovs-dev] [PATCH 6/7] lib/flow: Reduce calls to count_1bits().

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:36PM -0700, Jarno Rajahalme wrote: > Depending on the CPU, count_1bits() may be more or less expensive, so > it is better to avoid unnecessary calls to it. When the map has > consecutive 1-bits, those can be cleared without counting. > > Signed-off-by: Jarno Rajahalm

[ovs-dev] OVS on Hyper-V: Items to discuss for 10/7 IRC meeting

2014-10-06 Thread Nithin Raju
hi Alin/Sorin, These were the items to discuss from out side: 1. vport add/del review comments 2. netlink integration status: vport, packet commands Thanks, -- Nithin ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/7] lib/match: Do not format undefined fields.

2014-10-06 Thread Jarno Rajahalme
On Oct 6, 2014, at 1:13 PM, Ben Pfaff wrote: > On Wed, Oct 01, 2014 at 04:02:31PM -0700, Jarno Rajahalme wrote: >> Add function flow_wildcards_init_for_packet() that can be used to set >> sensible wildcards when megaflows are disabled. Before this, we set >> all the mask bits to ones, which cau

Re: [ovs-dev] [PATCH v2 12/12] [RFC] flow: Support OF1.5+ (draft) actset_output field.

2014-10-06 Thread Jarno Rajahalme
Looks good, as far as it goes, Jarno On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > This field allows a flow table to match on the output port currently in the > action set. > > As-is, this patch has a number of deficiencies. I will fix them; I am > posting for now because I feel like I ha

[ovs-dev] [PATCH] openvswitch.spec: Remove dependency with openvswitch-kmod.

2014-10-06 Thread Gurucharan Shetty
Upstream Linux has OVS kernel module that includes most (not all) of the features that comes with the kernel module from openvswitch.org. So, it is okay to relax the requirement for OVS userspace package to depend on openvswitch-kmod package. Signed-off-by: Gurucharan Shetty --- rhel/openvswitch

Re: [ovs-dev] [PATCH 5/7] lib/cmap: Return number of nodes from functions modifying the cmap.

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:35PM -0700, Jarno Rajahalme wrote: > We already update the count field as the last step of these functions, > so returning the current count is very cheap. Callers that care about > the count become a bit more efficient, as they avoid extra > non-inlineable function c

Re: [ovs-dev] [PATCH 2/7] lib: Fix MPLS masking.

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:32PM -0700, Jarno Rajahalme wrote: > Previously we masked labels not present in the incoming packet. > > Signed-off-by: Jarno Rajahalme Nice improvement. Here, I think I meant to write "second or later", which also makes sense if we increase FLOW_MAX_MPLS_LABELS: >

Re: [ovs-dev] [PATCH v2 11/12] ofp-actions: Support experimenter OXMs in Nicira extensions.

2014-10-06 Thread Jarno Rajahalme
LGTM, Acked-by: Jarno Rajahalme On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > Some of the Nicira extension actions include fixed-size 32-bit members that > designate NXM fields. These actions can't accommodate 64-bit experimenter > OXMs, so we need to figure out some kind of solution. This

Re: [ovs-dev] [PATCH 1/7] lib/match: Do not format undefined fields.

2014-10-06 Thread Ben Pfaff
On Wed, Oct 01, 2014 at 04:02:31PM -0700, Jarno Rajahalme wrote: > Add function flow_wildcards_init_for_packet() that can be used to set > sensible wildcards when megaflows are disabled. Before this, we set > all the mask bits to ones, which caused priting tunnel, mpls, and/or s/priting/printing/

Re: [ovs-dev] [PATCH v2 10/12] nx-match: Add support for experimenter OXM.

2014-10-06 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > OpenFlow 1.2+ defines a means for vendors to define vendor-specific OXM > fields, called "experimenter OXM". These OXM fields are expressed with a > 64-bit OXM header instead of the 32-bit header used for standard OXM (a

[ovs-dev] [PATCH 6/7 v3] datapath-windows: Some fixes in vport get code

2014-10-06 Thread Nithin Raju
In this patch, we make some fixes in the vport get code as well as elevating some utility functions from static to non-static. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Datapath.c | 17 +++

[ovs-dev] [PATCH 2/7 v3] lib/netlink-socket.c: add support for OVS_WIN_NETDEV_FAMILY

2014-10-06 Thread Nithin Raju
In this patch, we add support for family ID lookup of OVS_WIN_NETDEV_FAMILY. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean --- lib/netlink-socket.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/l

[ovs-dev] [PATCH 7/7 v3] datapath-windows: implementation of netdev commands

2014-10-06 Thread Nithin Raju
validation: - Vport dump works now without printing any errors. I didn't go so far as to test if vport add works. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Vport.c | 242 +++

[ovs-dev] [PATCH 3/7 v3] add lib/netdev-windows.c

2014-10-06 Thread Nithin Raju
In this patch, we add a lib/netdev-windows.c which mostly contains stub code and in subsequent patches, would use the netlink interface to query netdev information for a vport. The code implements netdev functionality for "internal" and "system" types of vports. Signed-off-by: Nithin Raju Acked-

[ovs-dev] [PATCH 1/7 v3] OvsDpInterfaceExt.h: add support for netlink family for netdev

2014-10-06 Thread Nithin Raju
In this patch, we define netlink family, attributes and commands for query the 'network device' information of VPORTs, such as MTU, Link status, etc. I considered adding the netdev command to the OVS_WIN_CONTROL_FAMILY itself, but the netdev attributes are not compatible with the existing attribut

[ovs-dev] [PATCH 5/7 v3] datapath-windows: Add stub handlers for netdev commands

2014-10-06 Thread Nithin Raju
In this patch, we add stub handlers for the netdev commands. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Datapath.c | 27 +-- datapath-windows/ovsext/Vport.c| 14 ++

[ovs-dev] [PATCH 4/7 v3] lib/netdev-windows.c: add code to query netdev information

2014-10-06 Thread Nithin Raju
Primary goals of netdev-windows.c are: 1) To query the 'network device' information of a vport such as MTU, etc. 2) Monitor changes to the 'network device' information such as link status. In this change, we implement only #1. #2 can also be implemented, but it does not seem to be required for the

Re: [ovs-dev] [PATCH v2 07/12] nx-match: Use nx_put_header() internally for encoding flow matches.

2014-10-06 Thread Jarno Rajahalme
One small matter of opinion below, Jarno Acked-by: Jarno Rajahalme On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > This will make it easier to support 64-bit OXM experimenter fields. > > Signed-off-by: Ben Pfaff > Acked-by: YAMAMOTO Takashi > --- > v1->v2: Use ->s6_addr for IPv6 raw byte

Re: [ovs-dev] [PATCH 5/5] lib/cmap: cmap_find_batch().

2014-10-06 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:31:47AM -0700, Jarno Rajahalme wrote: > Batching the cmap find improves the memory behavior with large cmaps > and can make searches twice as fast: > > $ tests/ovstest test-cmap benchmark 200 8 0.1 16 > Benchmarking with n=200, 8 threads, 0.10% mutations, batch s

Re: [ovs-dev] [PATCH 2/2] ovs-vswitchd: Add a missing headline in documentation.

2014-10-06 Thread Alex Wang
Acked-by: Alex Wang On Mon, Oct 6, 2014 at 10:22 AM, Gurucharan Shetty wrote: > The logging options were shown as part of the "Public Key Infrastructure > Options". Correct it. > > Signed-off-by: Gurucharan Shetty > --- > vswitchd/ovs-vswitchd.8.in |1 + > 1 file changed, 1 insertion(+) >

Re: [ovs-dev] [PATCH 1/2] ovs-vswitchd: Document the '--unixctl' option.

2014-10-06 Thread Alex Wang
Thx for the fix! Acked-by: Alex Wang On Mon, Oct 6, 2014 at 10:22 AM, Gurucharan Shetty wrote: > The option is documented for ovsdb-server but not for ovs-vswitchd. > This commit adds the documentation for ovs-vswitchd too. > > Signed-off-by: Gurucharan Shetty > --- > manpages.mk

Re: [ovs-dev] [PATCH] ovs-vswitchd.at: Port a test to run successfully on Windows.

2014-10-06 Thread Alex Wang
Thx for the fix! Since the "ERR" log is the last one, could we have this fold in? diff --git a/tests/ovs-vswitchd.at b/tests/ovs-vswitchd.at index 374be49..33772d8 100644 --- a/tests/ovs-vswitchd.at +++ b/tests/ovs-vswitchd.at @@ -84,7 +84,7 @@ ovs-appctl -t `pwd`/unixctl exit # the existing ovs

[ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Gurucharan Shetty
Using the compiler intrinsic shows approximately around 25% speed up with some classifier specific unit tests. Signed-off-by: Gurucharan Shetty --- lib/util.c |2 +- lib/util.h | 36 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/lib/uti

Re: [ovs-dev] [PATCH v2 06/12] ofp-actions: Support OF1.5 (draft) masked Set-Field, merge with reg_load.

2014-10-06 Thread Jarno Rajahalme
On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > OpenFlow 1.5 (draft) extends the OFPAT_SET_FIELD action originally > introduced in OpenFlow 1.2 so that it can set not just entire fields but > any subset of bits within a field as well. This commit adds support for > that feature when OpenFlow 1.

[ovs-dev] [PATCH 2/2] ovs-vswitchd: Add a missing headline in documentation.

2014-10-06 Thread Gurucharan Shetty
The logging options were shown as part of the "Public Key Infrastructure Options". Correct it. Signed-off-by: Gurucharan Shetty --- vswitchd/ovs-vswitchd.8.in |1 + 1 file changed, 1 insertion(+) diff --git a/vswitchd/ovs-vswitchd.8.in b/vswitchd/ovs-vswitchd.8.in index 55c5fd4..35915cd 100

[ovs-dev] [PATCH 1/2] ovs-vswitchd: Document the '--unixctl' option.

2014-10-06 Thread Gurucharan Shetty
The option is documented for ovsdb-server but not for ovs-vswitchd. This commit adds the documentation for ovs-vswitchd too. Signed-off-by: Gurucharan Shetty --- manpages.mk|2 ++ vswitchd/ovs-vswitchd.8.in |2 ++ 2 files changed, 4 insertions(+) diff --git a/manpages.mk

[ovs-dev] [PATCH] ovs-vswitchd.at: Port a test to run successfully on Windows.

2014-10-06 Thread Gurucharan Shetty
It is a little tricky to implement "$!" with unit tests on Windows. This commit changes the test so that it works both on Windows and Linux. Signed-off-by: Gurucharan Shetty --- tests/ovs-vswitchd.at | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tests/ovs-

Re: [ovs-dev] [PATCH 4/5] lib/cmap: split up cmap_find().

2014-10-06 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:31:46AM -0700, Jarno Rajahalme wrote: > This makes the following patch easier and cleans up the code. > > Explicit "inline" keywords seem necessary to prevent performance > regression on cmap_find() with GCC 4.7 -O2. > > Signed-off-by: Jarno Rajahalme Do you think it'

Re: [ovs-dev] [PATCH 3/5] lib/cmap: Use non-atomic access to hash.

2014-10-06 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:31:45AM -0700, Jarno Rajahalme wrote: > We use the 'counter' as a "lock" providing acquire-release > semantics. Therefore we can use normal, non-atomic access to the > memory accesses between the atomic accesses to 'counter'. The > cmap_node.next needs to be RCU, so tha

Re: [ovs-dev] [PATCH v2 01/12] meta-flow: Autogenerate mf_field data structures.

2014-10-06 Thread Jarno Rajahalme
On Sep 30, 2014, at 5:47 PM, Ben Pfaff wrote: > This is a first step toward improving the abstraction of OXM and NXM in the > tree. As an immediate improvement, this commit removes all of the > definitions of the OXM and NXM constants from the top-level header files, > because they are no longe

Re: [ovs-dev] [PATCH 2/5] lib/cmap: More efficient cmap_find().

2014-10-06 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:31:44AM -0700, Jarno Rajahalme wrote: > These makes cmap_find 10% faster on GCC 4.7 (-O2 -g). > > Signed-off-by: Jarno Rajahalme I'm surprised it makes so much difference! What if we additionally change: if (OVS_UNLIKELY(counter_changed(b1, c1))) { got

Re: [ovs-dev] [PATCH] bridge: Keep bond active slave selection across OVS restart

2014-10-06 Thread Alex Wang
> > > > > Not very familiar with the documentation format, > > > > Should we put bond_fake_iface inside 'status' column? Or we want to > allow > > user modify it? > > Do you mean bond_active_slave? Yes, put it in status colume makes more > sense. I will move it there. > > > Yes, I mean that. Thx

Re: [ovs-dev] [PATCH 1/5] tests/test-cmap: Balance bencmarks between cmap and hmap.

2014-10-06 Thread Ben Pfaff
On Wed, Sep 24, 2014 at 11:31:43AM -0700, Jarno Rajahalme wrote: > The test cases have been carefully crafted so that we do the same > amount of "overhead" operations in each case. Earlier, with no > mutations, the number of random number generations was different for > hmap and cmap test cases.

Re: [ovs-dev] [PATCH] bridge: Keep bond active slave selection across OVS restart

2014-10-06 Thread Andy Zhou
Alex, thanks for the review. I will push it in a minute, and back port to branch 2.3. On Mon, Oct 6, 2014 at 9:36 AM, Alex Wang wrote: > Thx for fixing this, > > >> >> +#include "lib/vswitch-idl.h" >> > > This could be removed, Done. > > >> >> VLOG_DEFINE_THIS_MODULE(bond); >> >> @@ -131,6 +132,

Re: [ovs-dev] [PATCH v5 1/1] netdev-dpdk: add dpdk vhost ports

2014-10-06 Thread Pravin Shelar
On Mon, Oct 6, 2014 at 2:47 AM, Tahhan, Maryam wrote: > Hi All > any review/update on this patch? > > Thanks > Maryam > I am reviewing it, I should be able to finish it this week. Thanks, Pravin. ___ dev mailing list dev@openvswitch.org http://openvswi

Re: [ovs-dev] [PATCH] bridge: Keep bond active slave selection across OVS restart

2014-10-06 Thread Alex Wang
Thx for fixing this, > +#include "lib/vswitch-idl.h" > > This could be removed, > VLOG_DEFINE_THIS_MODULE(bond); > > @@ -131,6 +132,15 @@ struct bond { > uint32_t recirc_id; /* Non zero if recirculation can be > used.*/ > struct hmap pr_rule_ops; /* Helps to maintain p

Re: [ovs-dev] [PATCH] ovs-vswitchd.at: Add test for switch over to another ovs-vswitchd.

2014-10-06 Thread Gurucharan Shetty
This one fails on Windows as it is a little tricky to get it to work with "$!". The following works for Windows (and Linux too, atleast for one run). If the changes that I am proposing end up not testing the original issue the way you intended, then I am fine with adding a AT_SKIP_IF([test "$IS_WI

[ovs-dev] [PATCH v4] datapath-windows: Incorrect assumption of the IRQL

2014-10-06 Thread Sorin Vinturis
Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But in many places of the code, while holding a spin lock, there are useless checks for the current IRQL against DISPATCH_LEVEL. Also, the dispatch flag is not correctly set when calling NdisAcquireRWLockXXX() functions, which causes an extra

Re: [ovs-dev] iFrom 245ae0af76cdff75db766da00de348ccce208fe0 Mon Sep 17 00:00:00 2001

2014-10-06 Thread Ben Pfaff
Can you provide an appropriate summary line for the subject? The current one is not appropriate. On Mon, Oct 06, 2014 at 03:05:29PM +, Sorin Vinturis wrote: > Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But > in many places of the code, while holding a spin lock, there > are usel

[ovs-dev] iFrom 245ae0af76cdff75db766da00de348ccce208fe0 Mon Sep 17 00:00:00 2001

2014-10-06 Thread Sorin Vinturis
Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But in many places of the code, while holding a spin lock, there are useless checks for the current IRQL against DISPATCH_LEVEL. Also, the dispatch flag is not correctly set when calling NdisAcquireRWLockXXX() functions, which causes an extra

Re: [ovs-dev] [PATCH v3] datapath-windows: Incorrect assumption of the IRQL

2014-10-06 Thread Eitan Eliahu
Acked-by: Eitan Eliahu Thanks! -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Sorin Vinturis Sent: Monday, October 06, 2014 6:19 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH v3] datapath-windows: Incorrect assumption of the IRQL Acquiring a spin

[ovs-dev] [PATCH v3] datapath-windows: Incorrect assumption of the IRQL

2014-10-06 Thread Sorin Vinturis
Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But in many places of the code, while holding a spin lock, there are useless checks for the current IRQL against DISPATCH_LEVEL. Also, the dispatch flag is not correctly set when calling NdisAcquireRWLockXXX() functions, which causes an extra

[ovs-dev] [PATCH] datapath-windows: Incorrect assumption of the IRQL

2014-10-06 Thread Sorin Vinturis
Acquiring a spin lock raises the IRQL to DISPATCH_LEVEL. But in many places of the code, while holding a spin lock, there are useless checks for the current IRQL against DISPATCH_LEVEL. Also, the dispatch flag is not correctly set when calling NdisAcquireRWLockXXX() functions, which causes an extra

Re: [ovs-dev] [PATCH v3 1/5] datapath-windows: Netlink additional APIs.

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Saturday, October 4, 2014 1:54 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH v3 1/5] datapath-windows: Netlink additional APIs. In this patch we have

Re: [ovs-dev] [PATCH v3 2/5] datapath-windows: Added the API for getting unused space in nlbuf.

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Saturday, October 4, 2014 1:54 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH v3 2/5] datapath-windows: Added the API for getting unused space in nlbuf

Re: [ovs-dev] [PATCH v3 3/5] datapath-windows: Flow Dump handler

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Saturday, October 4, 2014 1:54 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH v3 3/5] datapath-windows: Flow Dump handler In this patch we have added b

Re: [ovs-dev] [PATCH v3 4/5] datapath-windows: Flow dump implementation.

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Saturday, October 4, 2014 1:54 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH v3 4/5] datapath-windows: Flow dump implementation. In this patch we have

Re: [ovs-dev] [PATCH v3 5/5] datapath-windows: Flow get implementation.

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Saturday, October 4, 2014 1:54 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH v3 5/5] datapath-windows: Flow get implementation. In this patch we have

Re: [ovs-dev] [PATCH 6/7 v2] datapath-windows: Some fixes in vport get code

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 6/7 v2] datapath-windows: Some fixes in vpor

Re: [ovs-dev] [PATCH 5/7 v2] datapath-windows: Add stub handlers for netdev commands

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 5/7 v2] datapath-windows: Add stub handlers

Re: [ovs-dev] [PATCH 4/7 v2] lib/netdev-windows.c: add code to query netdev information

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 4/7 v2] lib/netdev-windows.c: add code to qu

Re: [ovs-dev] [PATCH 7/7 v2] datapath-windows: implementation of netdev commands

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 7/7 v2] datapath-windows: implementation of

Re: [ovs-dev] [PATCH 3/7 v2] add lib/netdev-windows.c

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 3/7 v2] add lib/netdev-windows.c In this pa

Re: [ovs-dev] [PATCH 1/7 v2] OvsDpInterfaceExt.h: add support for netlink family for netdev

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 1/7 v2] OvsDpInterfaceExt.h: add support for

Re: [ovs-dev] [PATCH 2/7 v2] lib/netlink-socket.c: add support for OVS_WIN_NETDEV_FAMILY

2014-10-06 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean Tested-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Sunday, October 5, 2014 1:10 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 2/7 v2] lib/netlink-socket.c: add support f

Re: [ovs-dev] [PATCHv6 14/14] udpif: Simplify storage of key, mask in udpif_key.

2014-10-06 Thread Joe Stringer
I dropped this patch for the moment, it'll be easier to take a fresh look once the bulk of the changes are in. On 30 September 2014 16:21, Joe Stringer wrote: > On 30 September 2014 10:27, Ben Pfaff wrote: > >> On Fri, Sep 26, 2014 at 09:28:18PM +1200, Joe Stringer wrote: >> > Previously we sto

Re: [ovs-dev] [PATCHv7 00/11] Revalidate flows with unique identifiers.

2014-10-06 Thread Joe Stringer
On 7 October 2014 00:23, Joe Stringer wrote: > This series is also made available here to assist review: > https://github.com/joestringer/openvswitch/tree/submit/ufid_v6 This should be https://github.com/joestringer/openvswitch/tree/submit/ufid_v7. __

[ovs-dev] [PATCHv7 11/11] dpif: Minimize memory copy for revalidation.

2014-10-06 Thread Joe Stringer
One of the limiting factors on the number of flows that can be supported in the datapath is the overhead of assembling flow dump messages in the datapath. This patch modifies the flow_dump interface to allow revalidators to skip dumping the key, mask and actions from the datapath, by making use of

[ovs-dev] [PATCHv7 09/11] datapath: Add support for unique flow identifiers.

2014-10-06 Thread Joe Stringer
If a datapath is created with the flag OVS_DP_F_INDEX_BY_UID, then an additional table_instance is added to the flow_table, which is indexed by unique identifiers ("UID"). Userspace implementations can specify a UID of up to 128 bits along with a flow operation as shorthand for the key. This allows

[ovs-dev] [PATCHv7 08/11] dpif: Generate flow_hash for revalidators in dpif.

2014-10-06 Thread Joe Stringer
This patch shifts the responsibility for determining the hash for a flow from the revalidation logic down to the dpif layer. This assists in handling backward-compatibility for revalidation with the upcoming unique identifier "UID" patches, and allows ovs-dpctl to automatically determine flow hashe

[ovs-dev] [PATCHv7 10/11] dpif: Index flows using unique identifiers.

2014-10-06 Thread Joe Stringer
This patch modifies the dpif interface to allow flows to be manipulated using a 128-bit identifier. This allows revalidator threads to perform datapath operations faster, as they do not need to serialise the entire flow key for operations like flow_get and flow_delete. In conjunction with a future

[ovs-dev] [PATCHv7 07/11] hash: Add 128-bit murmurhash.

2014-10-06 Thread Joe Stringer
Add the 128-bit murmurhash by Austin Appleby, r150 from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- v7: Replace getblock*() with get_unaligned_u*(). Add ovs_u128_equal() function rather than using memcmp. Only

[ovs-dev] [PATCHv7 05/11] upcall: Create ukeys in handler threads.

2014-10-06 Thread Joe Stringer
Currently, when a revalidator thread first dumps a flow, it creates a 'udpif_key' object and caches a copy of a kernel flow key. This allows us to perform lookups in the classifier to attribute stats and validate the correctness of the datapath flow. This patch sets up this cache from the handler

[ovs-dev] [PATCHv7 06/11] upcall: Revalidate using cache of mask, actions.

2014-10-06 Thread Joe Stringer
This allows us to ignore most fields of a flow_dump, requiring only the flow key for looking up the ukey. Fetching flows can also be avoided in the corner case where a flow is missed from a dump but revalidation is required. A future patch will modify the datapath interface to allow datapaths to s

[ovs-dev] [PATCHv7 04/11] upcall: Rename dump_op -> ukey_op.

2014-10-06 Thread Joe Stringer
Future patches will make use of the 'struct dump_op' in a broader sense, so this patch renames it to make things a bit clearer. Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- v7: Rebase. v4-v6: No change. v3: Rebase. v2: No change. RFC: First post. --- ofproto/ofproto-dpif-upcall.c | 97

  1   2   >