[ovs-dev] Tables entries in datapath

2014-03-24 Thread Junguk Cho
Table entries in datapath disappear after short time. Does they use timer in kernel or other ways? What is the idle timeout? If someone know, please let met know where the source code defines. Thanks. ___ dev mailing list dev@openvswitch.org http://open

Re: [ovs-dev] Tables entries in datapath

2014-03-24 Thread Justin Pettit
Junguk Cho March 24, 2014 at 12:14 AMTable entries in datapath disappear after short time.Does they use timer in kernel or other ways?ovs-vswitchd times them out.What is the idle timeout?It depends on the version.  Older versions defaulted to around five seconds; newer ones

Re: [ovs-dev] Tables entries in datapath

2014-03-24 Thread Junguk Cho
I used ovs 2.0. So, I think it is 1.5 secs. Can I adjust timeout values in command line tools? In addition, "The frequency may be higher or lower depending on load." What does that mean? Which load did you mean ( the number of current table entries in datapath?) ? Thanks. 2014-03-24 1:26 GMT-0

Re: [ovs-dev] [PATCH 2/5] ofproto: Allow the use of the OpenFlow 1.4 protocol

2014-03-24 Thread Alexandru Copot
On Sun, Mar 23, 2014 at 11:58 PM, Ben Pfaff wrote: > I decided that the best thing to do here was to do it myself, so I > committed your patch 1/5 (with a few adjustments) followed by a patch > that disables OF1.4 unless one specifies --enable-of14 on the > ovs-vswitchd command line. This should

[ovs-dev] Reg : Testing of vswitchd/vswitch.xml file changes.

2014-03-24 Thread Deba Prasad Das
Hi All, We are trying to provide Q-in-Q configuration support to port. For that we have modified vswitchd/vswitch.xml file. Could anyone tell us how to test the .xml file changes. Thanks in advance ! Regards,Deba ___

Re: [ovs-dev] Reg : Testing of vswitchd/vswitch.xml file changes.

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 02:32:08PM +0530, Deba Prasad Das wrote: > We are trying to provide Q-in-Q configuration support to port. For that we > have modified vswitchd/vswitch.xml file. > Could anyone tell us how to test the .xml file changes. The XML file content goes into ovs-vswitchd.conf.db(5)

Re: [ovs-dev] [PATCH v5] packets: packet metadata from flow function instead of macro.

2014-03-24 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme On Mar 21, 2014, at 10:43 AM, Gurucharan Shetty wrote: > Commit 03fbdf8d9c80a (lib/flow: Retain ODPP_NONE on flow_extract()) > replaced packet metadata initialization function by a macro. > Visual studio does not like nested structure initialization that > is done in t

Re: [ovs-dev] [PATCH v3 01/10] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Jarno Rajahalme
On Mar 21, 2014, at 1:52 PM, Pravin Shelar wrote: > On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme > wrote: >> Flow SET can set an empty set of actions by not passing any actions. >> Previously, we assigned the flow's actions pointer to NULL in this >> case, but we never check for the NULL

Re: [ovs-dev] [PATCH v3 02/10] datapath: Fix output of SCTP mask.

2014-03-24 Thread Jarno Rajahalme
Thanks for the review :-) Pushed to master, Jarno On Mar 21, 2014, at 2:14 PM, Pravin Shelar wrote: > On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme > wrote: >> The 'output' argument of the ovs_nla_put_flow() is the one from which >> the bits are written to the netlink attributes. For

Re: [ovs-dev] [PATCH v3 03/10] datapath: Use TCP flags in the flow key for stats.

2014-03-24 Thread Jarno Rajahalme
Thanks for the review :-) Pushed to master, Jarno On Mar 21, 2014, at 2:41 PM, Pravin Shelar wrote: > On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme > wrote: >> We already extract the TCP flags for the key, might as well use that >> for stats. >> >> Signed-off-by: Jarno Rajahalme > Lo

Re: [ovs-dev] [PATCH v3 01/10] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 9:50 AM, Jarno Rajahalme wrote: > > On Mar 21, 2014, at 1:52 PM, Pravin Shelar wrote: > >> On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme >> wrote: >>> Flow SET can set an empty set of actions by not passing any actions. >>> Previously, we assigned the flow's actions

[ovs-dev] [PATCH] ofp-util: Fix inconsistencies in table features type.

2014-03-24 Thread Jarno Rajahalme
'metadata_match' and 'metadata_write' fields are defined as ovs_be64, but sometimes used and referred to as uint64_t. Signed-off-by: Jarno Rajahalme --- lib/ofp-print.c|2 +- ofproto/ofproto-provider.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/

Re: [ovs-dev] [PATCH] ofp-util: Fix inconsistencies in table features type.

2014-03-24 Thread Ben Pfaff
Looks good, thank you. On Mar 24, 2014 10:12 AM, "Jarno Rajahalme" wrote: > 'metadata_match' and 'metadata_write' fields are defined as ovs_be64, > but sometimes used and referred to as uint64_t. > > Signed-off-by: Jarno Rajahalme > --- > lib/ofp-print.c|2 +- > ofproto/ofproto-

Re: [ovs-dev] [PATCH] ofp-util: Fix inconsistencies in table features type.

2014-03-24 Thread Jarno Rajahalme
Pushed to master, Jarno On Mar 24, 2014, at 10:14 AM, Ben Pfaff wrote: > Looks good, thank you. > > On Mar 24, 2014 10:12 AM, "Jarno Rajahalme" wrote: > 'metadata_match' and 'metadata_write' fields are defined as ovs_be64, > but sometimes used and referred to as uint64_t. > > Signed-off-by

Re: [ovs-dev] [PATCH v3 04/10] datapath: Compact sw_flow_key.

2014-03-24 Thread Pravin Shelar
On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme wrote: > Minimize padding in sw_flow_key and move 'tp' top the main struct. > These changes simplify code when accessing the transport port numbers > and the tcp flags, and makes the sw_flow_key 8 bytes smaller on 64-bit > systems (128->120 bytes).

Re: [ovs-dev] [PATCH v3 04/10] datapath: Compact sw_flow_key.

2014-03-24 Thread Jarno Rajahalme
Pushed to master, Some comments below, Jarno On Mar 24, 2014, at 10:26 AM, Pravin Shelar wrote: > On Fri, Feb 21, 2014 at 11:41 AM, Jarno Rajahalme > wrote: >> Minimize padding in sw_flow_key and move 'tp' top the main struct. >> These changes simplify code when accessing the transport por

[ovs-dev] [RFC PATCH 2/4] lib/ofpbuf: Inline the trivial ofpbuf functions.

2014-03-24 Thread Jarno Rajahalme
Inline the most trivial ofpbuf functions to allow for better optimization. Also inline the most often used ofpbuf_pull() and ofpbuf_try_pull(), which should help streamline packet parsing. Signed-off-by: Jarno Rajahalme --- lib/ofpbuf.c | 107

[ovs-dev] [PATCH 1/4] lib/pcap: Use ofpbuf_tail() instead of ofpbuf_end().

2014-03-24 Thread Jarno Rajahalme
Using ofpbuf_end() to compute payload length would fail if the ofpbuf had any tailroom. Signed-off-by: Jarno Rajahalme --- lib/pcap-file.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pcap-file.c b/lib/pcap-file.c index 2d3f9fe..e2fd203 100644 --- a/lib/pcap-file.c

[ovs-dev] [RFC PATCH 3/4] lib/ofpbuf: Remove 'l7' pointer.

2014-03-24 Thread Jarno Rajahalme
Now that we don't need to parse TCP flags from the packet after extraction, we usually do not need the 'l7' pointer any more. When needed, ofpbuf_get_tcp|udp|sctp|icmp_payload() or ofpbuf_get_l4_size() can be used instead. Removal of 'l7' was requested by Pravin for the DPDK datapath work, as it

Re: [ovs-dev] [PATCH v3 01/10] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Jarno Rajahalme
Pravin, I’ll need to send a new version of the rest of the patches due to this change. You may want to hold your review for a while. Jarno On Mar 24, 2014, at 9:53 AM, Pravin Shelar wrote: > On Mon, Mar 24, 2014 at 9:50 AM, Jarno Rajahalme > wrote: >> >> On Mar 21, 2014, at 1:52 PM, Prav

[ovs-dev] [PATCH v4 3/7] datapath: Build flow cmd netlink reply only if needed.

2014-03-24 Thread Jarno Rajahalme
Use netlink_has_listeners() and NLM_F_ECHO flag to determine if a reply is needed or not for OVS_FLOW_CMD_NEW, OVS_FLOW_CMD_SET, or OVS_FLOW_CMD_DEL. Note: This may need compat support for older kernels. Signed-off-by: Jarno Rajahalme --- datapath/datapath.c | 57 +

[ovs-dev] [PATCH v4 1/7] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Jarno Rajahalme
Flow SET can accept an empty set of actions, with the intended semantics of leaving existing actions unmodified. This seems to have been brokin after OVS 1.7, as we have assigned the flow's actions pointer to NULL in this case, but we never check for the NULL pointer later on. This patch restores

[ovs-dev] [PATCH v4 5/7] datapath: Split ovs_flow_cmd_new_or_set().

2014-03-24 Thread Jarno Rajahalme
Following patch will be easier to reason about with separate ovs_flow_cmd_new() and ovs_flow_cmd_set() functions. Signed-off-by: Jarno Rajahalme --- datapath/datapath.c | 168 --- 1 file changed, 118 insertions(+), 50 deletions(-) diff --git a/da

[ovs-dev] [PATCH v4 4/7] datapath: Minimize ovs_flow_cmd_del critical section.

2014-03-24 Thread Jarno Rajahalme
ovs_flow_cmd_del() now allocates reply (if needed) after the flow has already been removed from the flow table. If the reply allocation fails, a netlink error is signaled with netlink_set_err(), as is already done in ovs_flow_cmd_new_or_set() in the similar situation. Signed-off-by: Jarno Rajahal

[ovs-dev] [PATCH v4 7/7] datapath: Minimize dp and vport critical sections.

2014-03-24 Thread Jarno Rajahalme
Move most memory allocations away from the ovs_mutex critical sections. vport allocations still happen while the lock is taken, as changing that would require major refactoring. Also, vports are created very rarely so it should not matter. Change ovs_dp_cmd_get() now only takes the rcu_read_lock(

[ovs-dev] [PATCH v4 2/7] datapath: Clarify locking.

2014-03-24 Thread Jarno Rajahalme
Remove unnecessary locking from functions that are always called with appropriate locking. Signed-off-by: Jarno Rajahalme --- datapath/datapath.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 918a990..7ce3ea6 1

[ovs-dev] [PATCH v4 6/7] datapath: Minimize ovs_flow_cmd_new_or_set critical section.

2014-03-24 Thread Jarno Rajahalme
Note that this has only a little performance benefit when responses are not created (which is normal when there are no netlink multicast listeners around). Signed-off-by: Jarno Rajahalme --- datapath/datapath.c | 127 --- 1 file changed, 71 insert

Re: [ovs-dev] [PATCH v4 1/7] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme wrote: > Flow SET can accept an empty set of actions, with the intended > semantics of leaving existing actions unmodified. This seems to have > been brokin after OVS 1.7, as we have assigned the flow's actions > pointer to NULL in this case, but

Re: [ovs-dev] Tables entries in datapath

2014-03-24 Thread Justin Pettit
Junguk Cho wrote: I used ovs 2.0. So, I think it is 1.5 secs. Can I adjust timeout values in command line tools? Starting in OVS 2.2, there will be a configuration parameter to set the default value. However, this knob is not really intended to be used by users and will probably get removed

Re: [ovs-dev] [PATCH v4 1/7] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Jarno Rajahalme
On Mar 24, 2014, at 12:24 PM, Pravin Shelar wrote: > On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme > wrote: >> Flow SET can accept an empty set of actions, with the intended >> semantics of leaving existing actions unmodified. This seems to have >> been brokin after OVS 1.7, as we have as

Re: [ovs-dev] [PATCH v4 2/7] datapath: Clarify locking.

2014-03-24 Thread Pravin Shelar
Since you are fixing locking, can you also fix flow-stats access in ovs_flow_stats_get(). The access is always under ovs-mutex. On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme wrote: > Remove unnecessary locking from functions that are always called with > appropriate locking. > > Signed-off-by

Re: [ovs-dev] [PATCH v4 1/7] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 1:24 PM, Jarno Rajahalme wrote: > > On Mar 24, 2014, at 12:24 PM, Pravin Shelar wrote: > > On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme > wrote: > > Flow SET can accept an empty set of actions, with the intended > semantics of leaving existing actions unmodified. Th

Re: [ovs-dev] [PATCH 1/4] lib/pcap: Use ofpbuf_tail() instead of ofpbuf_end().

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 10:59:03AM -0700, Jarno Rajahalme wrote: > Using ofpbuf_end() to compute payload length would fail if the ofpbuf > had any tailroom. > > Signed-off-by: Jarno Rajahalme I guess this needs a backport? Acked-by: Ben Pfaff Thanks, Ben.

[ovs-dev] [PATCH] datapath: Fix bad format specifiers on 32-bit architectures.

2014-03-24 Thread Ben Pfaff
This fixes four warnings of the following form on i386 and other 32-bit architectures: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'unsigned int' [-Wformat] Signed-off-by: Ben Pfaff --- Makefile.am |2 +- datapath/datapath.c |4 ++--

Re: [ovs-dev] [RFC PATCH 2/4] lib/ofpbuf: Inline the trivial ofpbuf functions.

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 10:59:04AM -0700, Jarno Rajahalme wrote: > Inline the most trivial ofpbuf functions to allow for better optimization. > Also inline the most often used ofpbuf_pull() and ofpbuf_try_pull(), which > should help streamline packet parsing. > > Signed-off-by: Jarno Rajahalme F

Re: [ovs-dev] Tables entries in datapath

2014-03-24 Thread Junguk Cho
Starting in OVS 2.2, there will be a configuration parameter to set the default value. However, this knob is not really intended to be used by users and will probably get removed when we get more experience choosing a good value. *Why the concern? * This should really be an implementation detail

Re: [ovs-dev] [PATCH] datapath: Fix bad format specifiers on 32-bit architectures.

2014-03-24 Thread Pravin Shelar
Jarno mentioned that this is debugging msg will be removed. So we can just drop itfrom master. On Mon, Mar 24, 2014 at 1:54 PM, Ben Pfaff wrote: > This fixes four warnings of the following form on i386 and other 32-bit > architectures: > > warning: format '%ld' expects argument of type 'long

Re: [ovs-dev] [PATCH v4 3/7] datapath: Build flow cmd netlink reply only if needed.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme wrote: > Use netlink_has_listeners() and NLM_F_ECHO flag to determine if a > reply is needed or not for OVS_FLOW_CMD_NEW, OVS_FLOW_CMD_SET, or > OVS_FLOW_CMD_DEL. > > Note: This may need compat support for older kernels. > > Signed-off-by: Jarno Ra

Re: [ovs-dev] [RFC PATCH 3/4] lib/ofpbuf: Remove 'l7' pointer.

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 10:59:05AM -0700, Jarno Rajahalme wrote: > Now that we don't need to parse TCP flags from the packet after > extraction, we usually do not need the 'l7' pointer any more. When > needed, ofpbuf_get_tcp|udp|sctp|icmp_payload() or ofpbuf_get_l4_size() > can be used instead. >

Re: [ovs-dev] [PATCH v4 4/7] datapath: Minimize ovs_flow_cmd_del critical section.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme wrote: > ovs_flow_cmd_del() now allocates reply (if needed) after the flow has > already been removed from the flow table. If the reply allocation > fails, a netlink error is signaled with netlink_set_err(), as is > already done in ovs_flow_cmd_ne

Re: [ovs-dev] [RFC PATCH 3/4] lib/ofpbuf: Remove 'l7' pointer.

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 2:21 PM, Ben Pfaff wrote: > On Mon, Mar 24, 2014 at 10:59:05AM -0700, Jarno Rajahalme wrote: >> Now that we don't need to parse TCP flags from the packet after >> extraction, we usually do not need the 'l7' pointer any more. When >> needed, ofpbuf_get_tcp|udp|sctp|icmp_pay

Re: [ovs-dev] Tables entries in datapath

2014-03-24 Thread Justin Pettit
Junguk Cho wrote: Starting in OVS 2.2, there will be a configuration parameter to set the default value. However, this knob is not really intended to be used by users and will probably get removed when we get more experience choosing a good value. *Why the concern? * This should really be an i

Re: [ovs-dev] [RFC PATCH 3/4] lib/ofpbuf: Remove 'l7' pointer.

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 02:53:44PM -0700, Pravin Shelar wrote: > On Mon, Mar 24, 2014 at 2:21 PM, Ben Pfaff wrote: > > On Mon, Mar 24, 2014 at 10:59:05AM -0700, Jarno Rajahalme wrote: > >> Now that we don't need to parse TCP flags from the packet after > >> extraction, we usually do not need the '

Re: [ovs-dev] [PATCH v4 2/7] datapath: Clarify locking.

2014-03-24 Thread Jarno Rajahalme
On Mar 24, 2014, at 1:30 PM, Pravin Shelar wrote: > Since you are fixing locking, can you also fix flow-stats access in > ovs_flow_stats_get(). The access is always under ovs-mutex. > You mean adding a comment to that effect on top of ovs_flow_stats_get() in datapath/flow.c? How about the pat

Re: [ovs-dev] [PATCH] datapath: Fix bad format specifiers on 32-bit architectures.

2014-03-24 Thread Jarno Rajahalme
Right, I forgot about it, I’ll push a patch that removes it. Sorry for the confusion, Jarno On Mar 24, 2014, at 2:07 PM, Pravin Shelar wrote: > Jarno mentioned that this is debugging msg will be removed. So we can > just drop itfrom master. > > On Mon, Mar 24, 2014 at 1:54 PM, Ben Pfaff w

Re: [ovs-dev] [PATCH] datapath: Fix bad format specifiers on 32-bit architectures.

2014-03-24 Thread Ben Pfaff
Thanks! On Mon, Mar 24, 2014 at 03:38:03PM -0700, Jarno Rajahalme wrote: > Right, > > I forgot about it, I?ll push a patch that removes it. > > Sorry for the confusion, > > Jarno > > On Mar 24, 2014, at 2:07 PM, Pravin Shelar wrote: > > > Jarno mentioned that this is debugging msg will be

[ovs-dev] [PATCH] lib/flow: Fix flow_hash_5tuple().

2014-03-24 Thread Jarno Rajahalme
First part of the hash was discarded as basis was used too late. Also be explicit about the input type expected by mhash_add(). Signed-off-by: Jarno Rajahalme --- lib/flow.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/flow.c b/lib/flow.c index 00e66a4..ac8

Re: [ovs-dev] [RFC PATCH 3/4] lib/ofpbuf: Remove 'l7' pointer.

2014-03-24 Thread Ben Pfaff
On Mon, Mar 24, 2014 at 10:59:05AM -0700, Jarno Rajahalme wrote: > Now that we don't need to parse TCP flags from the packet after > extraction, we usually do not need the 'l7' pointer any more. When > needed, ofpbuf_get_tcp|udp|sctp|icmp_payload() or ofpbuf_get_l4_size() > can be used instead. >

Re: [ovs-dev] [PATCH] lib/flow: Fix flow_hash_5tuple().

2014-03-24 Thread Alex Wang
Thx Jarno, Looks good and tested with spare, and clang. Acked-by: Alex Wang On Mon, Mar 24, 2014 at 3:42 PM, Jarno Rajahalme wrote: > First part of the hash was discarded as basis was used too late. > > Also be explicit about the input type expected by mhash_add(). > > Signed-off-by: Jarno Ra

Re: [ovs-dev] [PATCH] lib/flow: Fix flow_hash_5tuple().

2014-03-24 Thread Jarno Rajahalme
Thanks for the review! Pushed to master, Jarno On Mar 24, 2014, at 3:46 PM, Alex Wang wrote: > Thx Jarno, > > Looks good and tested with spare, and clang. > > Acked-by: Alex Wang > > > On Mon, Mar 24, 2014 at 3:42 PM, Jarno Rajahalme > wrote: > First part of the hash was discarded as

Re: [ovs-dev] [PATCH v4 1/7] datapath: Avoid assigning a NULL pointer to flow actions.

2014-03-24 Thread Jarno Rajahalme
Pushed to master, Jarno On Mar 24, 2014, at 1:41 PM, Pravin Shelar wrote: > On Mon, Mar 24, 2014 at 1:24 PM, Jarno Rajahalme > wrote: >> >> On Mar 24, 2014, at 12:24 PM, Pravin Shelar wrote: >> >> On Mon, Mar 24, 2014 at 11:56 AM, Jarno Rajahalme >> wrote: >> >> Flow SET can accept an

Re: [ovs-dev] [PATCH] datapath: Fix bad format specifiers on 32-bit architectures.

2014-03-24 Thread Jarno Rajahalme
I just pushed the patch that removes the offending pr_info from datapath, Jarno On Mar 24, 2014, at 3:33 PM, Ben Pfaff wrote: > Thanks! > > On Mon, Mar 24, 2014 at 03:38:03PM -0700, Jarno Rajahalme wrote: >> Right, >> >> I forgot about it, I?ll push a patch that removes it. >> >> Sorry for

[ovs-dev] [bond megaflow v4 0/4] Bond megaflow and recirculation

2014-03-24 Thread Andy Zhou
This is the first patch series to add megaflow support for bond interface using recirculation. The final goal is that the bonding port selection will be made within the datapath, using recirculation. Currently, the bonding port selection is made in the user space, preventing possible wider mega f

[ovs-dev] [bond megaflow v4 3/4] dpif-netdev: user space datapath recirculation

2014-03-24 Thread Andy Zhou
Add basic recirculation infrastructure and user space data path support for it. The following bond mega flow patch will make use of this infrastructure. Signed-off-by: Andy Zhou --- v1->v2: Rewritten based on having post recirculation rules stored in table 254. V2->V3: Force recirc_i

[ovs-dev] [bond megaflow v4 1/4] lib/flow: add dp_hash and recirc_id to struct flow

2014-03-24 Thread Andy Zhou
Signed-off-by: Andy Zhou --- v1 -> v2: Minor adjustment. v2 -> v3: In comments, discouraging controllers to use newly added recirc_id and dp_hash fields. Reject openflow messages that references recirc_id and dp_hash fields. V3 -> v4: Rebase. --- include/openf

[ovs-dev] [bond megaflow v4 2/4] ofproto-dpif: Added Per backer recirculation ID management

2014-03-24 Thread Andy Zhou
Recirculation ID needs to be unique per datapath. Its usage will be tracked by the backer that corresponds to the datapath. In theory, Recirculation ID can be any uint32_t value, except 0. This implementation limits to a smaller range just for ease of debugging. Make the range size 0 effectively d

Re: [ovs-dev] [bond megaflow v3 0/4] Bond megaflow and recirculation

2014-03-24 Thread Andy Zhou
Please ignore this series. I have sent out v4 with some bug fixes. Also re-based to the latest master. On Fri, Mar 21, 2014 at 7:48 PM, Andy Zhou wrote: > This is the first patch series to add megaflow support for bond interface > using recirculation. > > The final goal is that the bonding port s

Re: [ovs-dev] [PATCH V2 00/10] Openvswitch: Add support Intel DPDK ports

2014-03-24 Thread Pravin Shelar
Thanks guys for reviews. I pushed patch series to master. On Fri, Mar 21, 2014 at 11:02 AM, Pravin wrote: > Following patch adds DPDK netdev-class to userspace datapath. > Approach taken in this patch differs from Intel DPDK vSwitch > where DPDK datapath switching is done in saparate process. Th

[ovs-dev] [PATCH] dpif-netdev: Fix a compilation warning

2014-03-24 Thread Andy Zhou
Building OVS tree without DPDK produced the following warning message. lib/dpif-netdev.c:1868:5: error: statement with no effect This error message is complaining the return value of the following macro, (0), is not being used. #define pmd_thread_setaffinity_cpu(c) (0) The patch fixe

Re: [ovs-dev] [PATCH] dpif-netdev: Fix a compilation warning

2014-03-24 Thread Pravin Shelar
On Mon, Mar 24, 2014 at 9:23 PM, Andy Zhou wrote: > Building OVS tree without DPDK produced the following warning message. > lib/dpif-netdev.c:1868:5: error: statement with no effect > > This error message is complaining the return value of the following > macro, (0), is not being used. >

Re: [ovs-dev] [PATCH] dpif-netdev: Fix a compilation warning

2014-03-24 Thread Andy Zhou
Thanks Pravin, I will push it soon so that other people won't run into build issues. I agree with you that do / while will also work for void function types. It is shorter than inline although inline provides argument type checking. Would do{} while (0) work for none void functions? What happens

Re: [ovs-dev] [PATCH] dpif-netdev: Fix a compilation warning

2014-03-24 Thread Ben Pfaff
I'd rather go with inline here because it will not warn about unused variables, whereas I expect that "do {} while (0)" will in at least some cases. On Mon, Mar 24, 2014 at 10:51:11PM -0700, Andy Zhou wrote: > Thanks Pravin, I will push it soon so that other people won't run into > build issues. >

Re: [ovs-dev] [PATCH] dpif-netdev: Fix a compilation warning

2014-03-24 Thread Andy Zhou
Thanks, pushed. On Mon, Mar 24, 2014 at 10:53 PM, Ben Pfaff wrote: > I'd rather go with inline here because it will not warn about unused > variables, whereas I expect that "do {} while (0)" will in at least some > cases. > > On Mon, Mar 24, 2014 at 10:51:11PM -0700, Andy Zhou wrote: >> Thanks Pr