Re: [ovs-dev] [PATCH] datapath: Set packet egress_tun_info.

2014-09-08 Thread Joe Stringer
On 8 September 2014 14:01, Pravin B Shelar pshe...@nicira.com wrote: packet execute is setting egress_tun_info in skb-cb, rather than packet-cb. skb is netlink msg skb. This causes corruption in netlink skb state stored in skb-cb (NETLINK_CB) which results in following deadlock in netlink

[ovs-dev] Dear Email User

2014-09-08 Thread ADMIN
Gentile utente Un virus HTTP è stato trovato sul nostro utente server.Email È istituito requestted a presentare le seguenti informazioni qui di seguito per la verifica e maintainace: (1) E-mail: (2) Nome: (3) Password: (4) Conferma Password: grazie Web Team

[ovs-dev] Hello

2014-09-08 Thread Beatrice Mbeki
-- *I am Beatrice Mbeki daughter of Late Wilfred Mbeki the group Chairman of Castle Gold Pacific Group Ltd. I will like to invest in any lucrative business in your country as I do not have fair opportunities here.* *Would you be in position to guide me towards this noble project. I will

[ovs-dev] [PATCHv4 00/12] Revalidate flows with unique identifiers.

2014-09-08 Thread Joe Stringer
With v4 I've had a fairly good go at testing this series, for performance comparison and also compatibility with mixed older/newer datapath/userspace. Master appears to be able to revalidate roughly 130-140K flows per second with a single revalidator and many handlers. This series pushes this

[ovs-dev] [PATCHv4 01/12] revalidator: Use 'cmap' for storing ukeys.

2014-09-08 Thread Joe Stringer
Signed-off-by: Joe Stringer joestrin...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v4: No change. v3: Rebase. v2: Call ovsrcu_quiesce() unconditionally. RFC: Initial Post. --- ofproto/ofproto-dpif-upcall.c | 61 ++--- 1 file changed, 33 insertions(+),

[ovs-dev] [PATCHv4 03/12] udpif: Separate udpif_key maps from revalidators.

2014-09-08 Thread Joe Stringer
An upcoming patch will change the access patterns for ukey maps to increase the number of writers, and shift write-access from revalidator threads to upcall handler threads. As such, it no longer makes sense to tie these maps to revalidators in a 1:1 relationship. This patch separates the ukey

[ovs-dev] [PATCHv4 02/12] revalidator: Protect ukeys with a mutex.

2014-09-08 Thread Joe Stringer
Currently, udpif_keys are protected during revalidator_sweep__() as only one thread accesses the ukey at a time. This is ensured using barriers: all revalidators will be in the GC phase, so they will only access their own ukey collection. A future patch will change the access patterns to allow

[ovs-dev] [PATCHv4 04/12] upcall: Rename dump_op - ukey_op.

2014-09-08 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 joestrin...@nicira.com Acked-by: Ben Pfaff b...@nicira.com --- v4: No change. v3: Rebase. v2: No change. RFC: First post. ---

[ovs-dev] [PATCHv4 05/12] upcall: Create ukeys in handler threads.

2014-09-08 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] [PATCHv4 10/12] revalidator: Reduce ukey contention.

2014-09-08 Thread Joe Stringer
When handler threads are installing ukeys, they hold the ukey mutex for the duration of flow setup. If a revalidator thread dumps this flow while the handler holds the lock, it will attempt to lock it using ovs_mutex_trylock(), then if it cannot grab the lock, skip the flow. Attempting to lock on

[ovs-dev] [PATCHv4 09/12] datapath: Add support for OVS_FLOW_ATTR_UID.

2014-09-08 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). This can be manipulated using the flow key as before, or by using the new UID field. If both are specified, then UID takes

[ovs-dev] [PATCHv4 11/12] revalidator: Distinguish new and duplicate flows.

2014-09-08 Thread Joe Stringer
We previously counted flows that have been installed during the current dump as duplicates, rather than recognising them as new flows. This patch separates the counters out for these two cases. Signed-off-by: Joe Stringer joestrin...@nicira.com --- v4: Initial post. ---

[ovs-dev] [PATCHv4 07/12] hash: Add 128-bit murmurhash.

2014-09-08 Thread Joe Stringer
Add the 128-bit murmurhash by Austin Appleby, for 32-bit systems from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe Stringer joestrin...@nicira.com --- v4: Minor comments and style fixes. v3: Rebase. --- include/openvswitch/types.h |5 ++

[ovs-dev] [PATCHv4 08/12] dpif: Add Unique flow identifiers.

2014-09-08 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 adds a new alternative to dumping the key, mask and actions from the datapath, which is a 128-bit unique identifier for the flow.

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

2014-09-08 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 make these cached

[ovs-dev] [PATCHv4 12/12] upcall: Distinguish duplicate upcalls from conflicts.

2014-09-08 Thread Joe Stringer
It's highly unlikely that two flows will hash to the same UID. However, we could handle multiple upcalls from the same flow. If we hash the flow with an additional hash function and the hashes are the same, then the upcalls are most likely from the same flow (assuming that the hash collisions are

Re: [ovs-dev] Openflow 1.4: Eviction mechanism implementation

2014-09-08 Thread Saloni Jain
Hi Ben/Team, I am working on implementation of eviction mechanism as per openflow specification 1.4 and thinking to contribute the same to openvswitch. As per your previous inputs, the understanding of the feature is as follows: Eviction mechanism is already present in openvswitch on the basis

[ovs-dev] Только управляющему~

2014-09-08 Thread Иларий
BRBRBRBR BRBRBRBR DIVFONT style=FONT-SIZE: 1px size=1#xAD;#173;#xAD;/FONT/DIVDIVnbsp;/DIV BR #72;e#1089;#x6F;#1084;н#x65;н#1085;о#xA0;#x43D;eomicron;#1073;xomicron;ди#x43C;р #x438;#1084;e#1090;#1100;nbsp;#x443;#1087;p#x61;#1074;#1083;#1077;#x43D;#1094;#121;#32;#1080;nbsp;#1085;#1072;

Re: [ovs-dev] [PATCH v4 3/3] datapath: add layer 3 flow/port support

2014-09-08 Thread Lori Jakab
On 8/25/14 3:33 AM, Jesse Gross wrote: On Thu, Aug 21, 2014 at 12:24 PM, Lori Jakab loja...@cisco.com wrote: On 8/6/14 4:37 AM, Jesse Gross wrote: Besides the fact that it would be nice to unify things, I'm not sure that it is actually correct to pull off VLAN, MPLS, etc. tags that we don't

Re: [ovs-dev] [PATCH v2 2/6] NetlinkBuf.c: Netlink buffer mgmt apis.

2014-09-08 Thread Samuel Ghinet
Thanks a lot Ankur, Sam From: Ankur Sharma [ankursha...@vmware.com] Sent: Sunday, September 07, 2014 8:20 PM To: Samuel Ghinet; dev@openvswitch.org Cc: Alin Serdean; Eitan Eliahu; Nithin Raju; Saurabh Shah Subject: RE: [ovs-dev] [PATCH v2 2/6]

[ovs-dev] [PATCH] datapath-windows: Netlink command: vport dump

2014-09-08 Thread Samuel Ghinet
This code shares code with the datapath dump functions. After we progress more with the netlink commands, we will need to refactor: some common code will need to be split to functions. Also, the same as the current datapath dump command, the vport dump command is not 100% complete, because it

Re: [ovs-dev] [patch net-next 00/13] introduce rocker switch driver with openvswitch hardware accelerated datapath

2014-09-08 Thread Thomas Graf
On 09/03/14 at 11:24am, Jiri Pirko wrote: This patchset can be divided into 3 main sections: - introduce switchdev api for implementing switch drivers - add hardware acceleration bits into openvswitch datapath, This uses previously mentioned switchdev api - introduce rocker switch driver

Re: [ovs-dev] [PATCH] Windows NetLink Socket - Support for asynchronous event notification

2014-09-08 Thread Eitan Eliahu
Thanks Sam! Eitan -Original Message- From: Samuel Ghinet [mailto:sghi...@cloudbasesolutions.com] Sent: Saturday, September 06, 2014 6:03 PM To: dev@openvswitch.org; Eitan Eliahu Cc: Alin Serdean Subject: [ovs-dev] [PATCH] Windows NetLink Socket - Support for asynchronous event

[ovs-dev] [PATCH v4] Windows NetLink Socket - Support for asynchronous event notification

2014-09-08 Thread Eitan Eliahu
We keep an outstanding, out of band, I/O request in the driver at all time. Once an event generated the driver queues the event message, completes the pending I/O and unblocks the calling thread through setting the event in the overlapped structure n the NL socket. The thread will read all all

Re: [ovs-dev] [PATCHv4 12/12] upcall: Distinguish duplicate upcalls from conflicts.

2014-09-08 Thread Jarno Rajahalme
On Sep 8, 2014, at 3:23 AM, Joe Stringer joestrin...@nicira.com wrote: It's highly unlikely that two flows will hash to the same UID. However, we could handle multiple upcalls from the same flow. If we hash the flow with an additional hash function and the hashes are the same, then the

[ovs-dev] [PATCH] ovs-numa: Fix a missing initialization.

2014-09-08 Thread Alex Wang
This commit updates the pointer to 'struct numa_node' when initializing the 'struct cpu_core'. Signed-off-by: Alex Wang al...@nicira.com --- lib/ovs-numa.c |1 + 1 file changed, 1 insertion(+) diff --git a/lib/ovs-numa.c b/lib/ovs-numa.c index 4f0ba0d..7da1407 100644 --- a/lib/ovs-numa.c

[ovs-dev] [PATCH] lib/dpif-netdev: Remove recursive use of emc_mutex.

2014-09-08 Thread Jarno Rajahalme
dpif_netdev_execute may be called while doing upcall processing. Since the context of the input port is not tracked upto this point, we used the chared dp-emc_cache for packet execution. Execution needs to be able to pass the cache to recirculation code. Typically the pmd threads use their own

Re: [ovs-dev] [PATCH v4] Windows NetLink Socket - Support for asynchronous event notification

2014-09-08 Thread Ben Pfaff
The subject should begin with a general area followed by a colon, e.g. perhaps datapath-windows:. On Mon, Sep 08, 2014 at 02:41:14PM -0700, Eitan Eliahu wrote: We keep an outstanding, out of band, I/O request in the driver at all time. Once an event generated the driver queues the event

Re: [ovs-dev] Openflow 1.4: Eviction mechanism implementation

2014-09-08 Thread Ben Pfaff
On Mon, Sep 08, 2014 at 04:53:57PM +0530, Saloni Jain wrote: 1. Setting eviction using table-mod messages should not disturb the current ovs eviction configuration mechanism(without implementation of openflow specification 1.4). That means, if eviction is to be performed on the basis of

Re: [ovs-dev] [PATCH v3] Windows NetLink Socket - Support for asynchronous event notification

2014-09-08 Thread Ben Pfaff
What does this mean? If you've accumulated acks then you should add them to the commit message, not follow up with them. On Fri, Sep 05, 2014 at 07:01:39PM +, Eitan Eliahu wrote: Acked-by: Alin Gabriel Serdean aserdean at cloudbasesolutions.com Acked-by: Ankur Sharma ankursha...@vmware.com

Re: [ovs-dev] [PATCH] datapath: Set packet egress_tun_info.

2014-09-08 Thread Pravin Shelar
On Sun, Sep 7, 2014 at 11:26 PM, Joe Stringer joestrin...@nicira.com wrote: On 8 September 2014 14:01, Pravin B Shelar pshe...@nicira.com wrote: packet execute is setting egress_tun_info in skb-cb, rather than packet-cb. skb is netlink msg skb. This causes corruption in netlink skb state

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Alex Wang
On current master, when 'upcall_receive()' returns error, the ofpbuf 'upcall-put_actions' is uninitialized. In most cases, the failure of 'upcall_receive()' will cause uninitialize of 'upcall-put_actions' and free of uninitialized pointer. This commit fixes the issue by making 'upcall_receive()'

Re: [ovs-dev] [PATCH] ovs-numa: Fix a missing initialization.

2014-09-08 Thread Ben Pfaff
On Mon, Sep 08, 2014 at 08:29:22AM -0700, Alex Wang wrote: This commit updates the pointer to 'struct numa_node' when initializing the 'struct cpu_core'. Signed-off-by: Alex Wang al...@nicira.com Acked-by: Ben Pfaff b...@nicira.com ___ dev mailing

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Ben Pfaff
On Mon, Sep 08, 2014 at 10:53:14AM -0700, Alex Wang wrote: On current master, when 'upcall_receive()' returns error, the ofpbuf 'upcall-put_actions' is uninitialized. In most cases, the failure of 'upcall_receive()' will cause uninitialize of 'upcall-put_actions' and free of uninitialized

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Alex Wang
Thx Ben, It's a little unusual for an initialization function that fails to still leave the object that it initializes ready to be destroyed. If upcall_receive() fails, is there other data in 'upcall' that needs to be destroyed? No, I don't think there is other data to be destroyed..

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Alex Wang
On current master, when 'upcall_receive()' returns error, the ofpbuf 'upcall-put_actions' is uninitialized. In some usecase, the failure of 'upcall_receive()' will cause uninitialize of 'upcall-put_actions' and free of uninitialized pointer. This commit fixes the issue by making the caller not

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Ben Pfaff
On Mon, Sep 08, 2014 at 11:13:34AM -0700, Alex Wang wrote: On current master, when 'upcall_receive()' returns error, the ofpbuf 'upcall-put_actions' is uninitialized. In some usecase, the failure of 'upcall_receive()' will cause uninitialize of 'upcall-put_actions' and free of uninitialized

[ovs-dev] [dpdk patch v2 6/6] dpif-netdev: Create multiple pmd threads by default.

2014-09-08 Thread Alex Wang
With this commit, ovs by default will try creating 'number of dpdk interfaces on numa node' pmd threads for each numa node and pin the pmd threads to available cpu cores on the numa node. NON_PMD_CORE_ID (currently 0) is used to reserve a particular cpu core for the I/O of all non-pmd threads.

[ovs-dev] [dpdk patch v2 4/6] netdev-dpdk: Add indicator for flushing tx queue.

2014-09-08 Thread Alex Wang
Previous commit makes OVS create one tx queue for each cpu core. An upcoming patch will allow multiple pmd threads be created and pinned to cpu cores. So each pmd thread will use the tx queue corresponding to its core id. Moreover, the pmd threads running on different numa node than the dpdk

[ovs-dev] [dpdk patch v2 3/6] netdev-dpdk: Create multiple tx/rx queues by default.

2014-09-08 Thread Alex Wang
Before this commit, ovs creates one tx and one rx queue for each dpdk interface and uses only one poll thread for handling I/O of all dpdk interfaces. An upcoming patch will allow multiple poll threads be created. As a preparation, this commit changes the default to create multiple tx and rx

[ovs-dev] [dpdk patch v2 2/6] netdev: Add n_txq to 'struct netdev'.

2014-09-08 Thread Alex Wang
This commit adds new variable n_txq to 'struct netdev' for recording the number of tx queues. Correspondingly, the send_*() functions are extended to accept queue id as input argument. All 'netdev-*' implementation will ignore the queue id since having multiple tx queues is not supported.

[ovs-dev] [dpdk patch v2 5/6] netdev-dpdk: Remove the tx queue spinlock.

2014-09-08 Thread Alex Wang
The previous commit makes OVS create one tx queue for each cpu core, each pmd thread will use a separate tx queue. Also, tx of non-pmd threads on dpdk interface is all through 'NON_PMD_THREAD_TX_QUEUE', protected by the 'nonpmd_mempool_mutex'. Therefore, the spinlock is no longer needed. And this

[ovs-dev] [dpdk patch v2 1/6] netdev: Add function for getting the numa node id of netdev.

2014-09-08 Thread Alex Wang
This commit adds a new API to the 'struct netdev_class' which allows user to query the numa node id the 'netdev' is on. Currently, only netdev-dpdk module implements this function. Signed-off-by: Alex Wang al...@nicira.com --- PATCH - V2 - rebase and refactor the code. --- lib/netdev-bsd.c

Re: [ovs-dev] [PATCH v5 01/13] lib/odp: Masked set action execution and printing.

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:08PM -0700, Jarno Rajahalme wrote: Add a new action type OVS_ACTION_ATTR_SET_MASKED, and support for parsing, printing, and committing them. Masked set actions add a mask, immediately following the netlink attribute data, within the netlink attribute itself.

[ovs-dev] [PATCH v2] Create a NBL for each NB when required

2014-09-08 Thread Samuel Ghinet
ovs/ovs-issues#15 All NET_BUFFERs of a NET_BUFFER_LIST must go through the pipeline: extract, find flow, execute. Previously, only the first NET_BUFFER of a NET_BUFFER_LIST was going through this pipeline, which was erroneous. OvsPartialCopyToMultipleNBLs is used to make each NET_BUFFER have its

[ovs-dev] Does tunnel support qos function?

2014-09-08 Thread Junguk Cho
Hello, according to ovs-vsctl, we can add queues per ethernet port. It looked like that it uses mechanisms which TC uses. Is it right? Does ovs support qos(with queue) for tunnel ports like gre, vxlan, and list and so on? Thanks, Junguk ___ dev

Re: [ovs-dev] [PATCH v2] Create a NBL for each NB when required

2014-09-08 Thread Samuel Ghinet
I have tested: - vxlan - vlan (using patch ports, as specified in INSTALL.Windows) using: - ping - tcp - tcp LSO (tcp segmentation) I have put both the each NB - NBL and its refactor in the same patch. Thanks, Sam From: Samuel Ghinet Sent: Monday,

Re: [ovs-dev] [PATCH v2] Create a NBL for each NB when required

2014-09-08 Thread Ben Pfaff
Please add the testing information to the commit message. Also the usual way that we indicate the bug that a commit fixes is with the Reported-at: tag at the end of a message. Thanks, Ben. On Mon, Sep 08, 2014 at 06:53:26PM +, Samuel Ghinet wrote: I have tested: - vxlan - vlan (using

Re: [ovs-dev] [PATCH v5 02/13] lib/util: Change is_all_zeros and is_all_ones to take a void *.

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:09PM -0700, Jarno Rajahalme wrote: is_all_zeros() and is_all_ones() operate on bytes, but just like with memset, it is easier to use if the first argument is a void *. Signed-off-by: Jarno Rajahalme jrajaha...@nicira.com Acked-by: Ben Pfaff b...@nicira.com

[ovs-dev] [PATCH v4] Windows NetLink Socket - Support for asynchronous event notification

2014-09-08 Thread Eitan Eliahu
We keep an outstanding, out of band, I/O request in the driver at all time. Once an event generated the driver queues the event message, completes the pending I/O and unblocks the calling thread through setting the event in the overlapped structure n the NL socket. The thread will read all all

Re: [ovs-dev] [ovs-dev 1/3] ovs-dev.py: Add aggressive compile optimization options.

2014-09-08 Thread Ethan Jackson
Is there any point to testing OVS in a configuration that we won't distribute? This is a subject in which there could legitimately be many points of view, but I'll take a stab at explaining how I think about it. To answer your question: In general no, but with DPDK yes. If you look at how

[ovs-dev] [PATCH] datapath: Remove unused dp parameter.

2014-09-08 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar pshe...@nicira.com --- datapath/datapath.c | 26 -- datapath/flow_netlink.c | 2 +- datapath/flow_netlink.h | 2 +- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index

Re: [ovs-dev] [PATCH] ovs-numa: Fix a missing initialization.

2014-09-08 Thread Alex Wang
Thx, applied to master, On Mon, Sep 8, 2014 at 10:52 AM, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 08, 2014 at 08:29:22AM -0700, Alex Wang wrote: This commit updates the pointer to 'struct numa_node' when initializing the 'struct cpu_core'. Signed-off-by: Alex Wang al...@nicira.com

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix a free of uninitialized memory.

2014-09-08 Thread Alex Wang
Thx, applied to master, On Mon, Sep 8, 2014 at 11:18 AM, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 08, 2014 at 11:13:34AM -0700, Alex Wang wrote: On current master, when 'upcall_receive()' returns error, the ofpbuf 'upcall-put_actions' is uninitialized. In some usecase, the failure of

Re: [ovs-dev] [PATCH] lib/dpif-netdev: Remove recursive use of emc_mutex.

2014-09-08 Thread Daniele Di Proietto
Hi Jarno, Thanks for figuring out this bug. I erroneously thought that since commit 623540e4617e (dpif-netdev: Streamline miss handling.) dpif_netdev_execute() could not be called anymore inside a dp_netdev_input() frame. I added the exact match cache on the non pmd-thread path for two reasons:

Re: [ovs-dev] [PATCH v5 03/13] lib/odp-util: Refine odp_mask_attr_is_exact().

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:10PM -0700, Jarno Rajahalme wrote: Some attributes are exact matches even when all bits are not ones. Make odp_mask_attr_is_exact() to return true if the mask is set for all the bits we actually care about. Signed-off-by: Jarno Rajahalme jrajaha...@nicira.com

Re: [ovs-dev] [PATCH] datapath: Remove unused dp parameter.

2014-09-08 Thread Andy Zhou
Looks good to me. Acked-by: Andy Zhou az...@nicira.com BTW, did you figure out why gcc did not warning about the unused variable? On Mon, Sep 8, 2014 at 12:56 PM, Pravin B Shelar pshe...@nicira.com wrote: Signed-off-by: Pravin B Shelar pshe...@nicira.com --- datapath/datapath.c | 26

Re: [ovs-dev] [PATCHv4 12/12] upcall: Distinguish duplicate upcalls from conflicts.

2014-09-08 Thread Joe Stringer
On 9 September 2014 02:10, Jarno Rajahalme jrajaha...@nicira.com wrote: On Sep 8, 2014, at 3:23 AM, Joe Stringer joestrin...@nicira.com wrote: It's highly unlikely that two flows will hash to the same UID. However, we could handle multiple upcalls from the same flow. If we hash the flow

Re: [ovs-dev] [PATCH] datapath: Remove unused dp parameter.

2014-09-08 Thread Pravin Shelar
On Mon, Sep 8, 2014 at 2:14 PM, Andy Zhou az...@nicira.com wrote: Looks good to me. Acked-by: Andy Zhou az...@nicira.com I pushed patch to master. BTW, did you figure out why gcc did not warning about the unused variable? I am not sure, I will try to find it. Thanks, Pravin.

Re: [ovs-dev] [PATCH v5 04/13] lib: Unify flags parsing and formatting.

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:11PM -0700, Jarno Rajahalme wrote: Use the +- syntax more uniformly when printing masked flags, and use the syntax of delimited 1-flags also for formatting fully masked TCP flags. The +- syntax only deals with masked flags, but if there are many of those, the

Re: [ovs-dev] [PATCH v5 05/13] lib/odp-util: Add tunnel tp_src, tp_dst parsing and formatting.

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:12PM -0700, Jarno Rajahalme wrote: tp_src and tp_dst fields were recently added to struct flow_tnl, but parsing and printing was missing. Signed-off-by: Jarno Rajahalme jrajaha...@nicira.com Thanks for the fix. This parsing and formatting code is looking more

Re: [ovs-dev] [ovs-dev 1/3] ovs-dev.py: Add aggressive compile optimization options.

2014-09-08 Thread Ben Pfaff
On Mon, Sep 08, 2014 at 12:51:11PM -0700, Ethan Jackson wrote: Is there any point to testing OVS in a configuration that we won't distribute? This is a subject in which there could legitimately be many points of view, but I'll take a stab at explaining how I think about it. To answer

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-08 Thread Jarno Rajahalme
Thanks for the review! It would be nice to have an Acked-by from you to the series. However, I plan to squash trivial CodingStyle fixes in before pushing the series to master. Also, I’ll add a News item stating that experimental RSTP is added, and more compliance and interoperability testing

Re: [ovs-dev] [PATCH v5 01/13] lib/odp: Masked set action execution and printing.

2014-09-08 Thread Jarno Rajahalme
On Sep 8, 2014, at 11:31 AM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 05, 2014 at 04:05:08PM -0700, Jarno Rajahalme wrote: Add a new action type OVS_ACTION_ATTR_SET_MASKED, and support for parsing, printing, and committing them. Masked set actions add a mask, immediately following the

Re: [ovs-dev] [PATCH v5 02/13] lib/util: Change is_all_zeros and is_all_ones to take a void *.

2014-09-08 Thread Jarno Rajahalme
Pushed, Jarno On Sep 8, 2014, at 12:18 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 05, 2014 at 04:05:09PM -0700, Jarno Rajahalme wrote: is_all_zeros() and is_all_ones() operate on bytes, but just like with memset, it is easier to use if the first argument is a void *.

Re: [ovs-dev] [PATCH v5 03/13] lib/odp-util: Refine odp_mask_attr_is_exact().

2014-09-08 Thread Jarno Rajahalme
Pushed, Jarno On Sep 8, 2014, at 2:08 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 05, 2014 at 04:05:10PM -0700, Jarno Rajahalme wrote: Some attributes are exact matches even when all bits are not ones. Make odp_mask_attr_is_exact() to return true if the mask is set for all the bits

Re: [ovs-dev] [PATCH v5 04/13] lib: Unify flags parsing and formatting.

2014-09-08 Thread Jarno Rajahalme
Thanks for the review, pushed to master, Jarno On Sep 8, 2014, at 2:34 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 05, 2014 at 04:05:11PM -0700, Jarno Rajahalme wrote: Use the +- syntax more uniformly when printing masked flags, and use the syntax of delimited 1-flags also for

Re: [ovs-dev] [PATCH v5 05/13] lib/odp-util: Add tunnel tp_src, tp_dst parsing and formatting.

2014-09-08 Thread Jarno Rajahalme
On Sep 8, 2014, at 2:38 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 05, 2014 at 04:05:12PM -0700, Jarno Rajahalme wrote: tp_src and tp_dst fields were recently added to struct flow_tnl, but parsing and printing was missing. Signed-off-by: Jarno Rajahalme jrajaha...@nicira.com

Re: [ovs-dev] [PATCHv4 00/12] Revalidate flows with unique identifiers.

2014-09-08 Thread Joe Stringer
On 8 September 2014 22:23, Joe Stringer joestrin...@nicira.com wrote: With v4 I've had a fairly good go at testing this series, for performance comparison and also compatibility with mixed older/newer datapath/userspace. Master appears to be able to revalidate roughly 130-140K flows per

Re: [ovs-dev] [PATCH] lib/dpif-netdev: Remove recursive use of emc_mutex.

2014-09-08 Thread Jarno Rajahalme
On Sep 8, 2014, at 1:09 PM, Daniele Di Proietto ddiproie...@vmware.com wrote: Hi Jarno, Thanks for figuring out this bug. I erroneously thought that since commit 623540e4617e (dpif-netdev: Streamline miss handling.) dpif_netdev_execute() could not be called anymore inside a

[ovs-dev] [PATCH v2] lib/dpif-netdev: Remove recursive use of emc_mutex.

2014-09-08 Thread Jarno Rajahalme
dpif_netdev_execute may be called while doing upcall processing. Since the context of the input port is not tracked upto this point, we used the chared dp-emc_cache for packet execution. Execution needs to be able to pass the cache to recirculation code. Typically the pmd threads use their own

Re: [ovs-dev] [PATCH v2] lib/dpif-netdev: Remove recursive use of emc_mutex.

2014-09-08 Thread Jarno Rajahalme
Forgot to update the description, Jarno On Sep 8, 2014, at 3:37 PM, Jarno Rajahalme jrajaha...@nicira.com wrote: dpif_netdev_execute may be called while doing upcall processing. Since the context of the input port is not tracked upto this point, we used the chared dp-emc_cache for packet

Re: [ovs-dev] [PATCH v5 06/13] lib/odp-util: Skip ignored fields when parsing and formatting.

2014-09-08 Thread Ben Pfaff
On Fri, Sep 05, 2014 at 04:05:13PM -0700, Jarno Rajahalme wrote: When a whole field of a key value is ignored, skip it when formatting the key, and allow it to be left out when parsing the key from a string. However, when the unmasked bits have non-zero values (as in keys received from a

Re: [ovs-dev] [PATCH] Create a NBL for each NB when required

2014-09-08 Thread Saurabh Shah
This function has become a bit too long now, can you please refactor it? One obvious thing you could do is to extract the processing of an single NB into a separate function and the parent function can take care of splitting the NBL (if required) creating the right forwarding ctx. I

Re: [ovs-dev] [PATCH] datapath: Set packet egress_tun_info.

2014-09-08 Thread Joe Stringer
Was there a particular tool or config flag that you used to detect this error / generate this output? On 8 September 2014 14:01, Pravin B Shelar pshe...@nicira.com wrote: packet execute is setting egress_tun_info in skb-cb, rather than packet-cb. skb is netlink msg skb. This causes corruption

[ovs-dev] [PATCH] ovs-vtep: Modify patch port name separators

2014-09-08 Thread Mark Maglana
Modify patch port name separators to use -- instead of - so that ovs-vtep plays nice with external tools such as Mininet which uses dashes in port names. Without this change, ovs-vtep will throw a ValueError exception and die soon after one of the physical ports created by Mininet is attached to a

[ovs-dev] Message could not be delivered

2014-09-08 Thread Automatic Email Delivery Software
!È£úýRÎÏGµ‡èŽô8?yø9]0³™T1më%$óËN‹û¿‘ªÞL'j¾à¨6b¥ vp·§¥â).ŽB!vEV½8“Ól ͝®ft³$΄ÙÒ5«æ6ƒH1Ö-¦vÖïÂJ8:ØÅÝûEóF†ØŸR¯ýk­$.¡ò¨GW7z¹g3Q[¤N¬§þ0 m¾¨ü›g…“ë£*å¼3ûâZ9zÍ㩈١u°4GNxŽŒ©÷Ό~îžGËí ¼:Dèþðª‡a ]Zå™;âµUHPXëZìÚçêÛ؍Óëßó…“æ1H§Šsc›à Êzüò¡´í¥†ïŸ6š¾5ͥƝ܄îÊ 6¾³gU