Re: [ovs-dev] [PATCH] authors: Update authors list with my new email.

2015-09-01 Thread Ethan Jackson
Yeah, there's another Ethan Jackson at MSR unfortunately. On Tue, Sep 1, 2015 at 10:42 AM, Ben Pfaff wrote: > On Tue, Sep 01, 2015 at 10:38:26AM -0700, Ethan J. Jackson wrote: >> From: Ethan Jackson >> >> Signed-off-by: Ethan J. Jackson >> --- >> AUTHORS

Re: [ovs-dev] [PATCH] authors: Update authors list with my new email.

2015-09-01 Thread Ethan Jackson
2015, at 10:38 AM, Ethan J. Jackson wrote: > > > > From: Ethan Jackson > > > > Signed-off-by: Ethan J. Jackson > > --- > > AUTHORS | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/AUTHORS b/AUTHORS > > index 4

Re: [ovs-dev] [PATCH v3 1/2] ofproto-dpif-upcall: Make ukey actions modifiable with RCU.

2015-08-12 Thread Ethan Jackson
agreed, sent a new version. Ethan On Wed, Aug 12, 2015 at 5:01 PM, Jarno Rajahalme wrote: > >> On Aug 12, 2015, at 4:13 PM, Ethan J. Jackson wrote: >> >> From: Ethan Jackson >> >> Future patches will need to modify ukey actions in some instances. >

Re: [ovs-dev] [PATCH v2 1/2] upcall: Fix minor race when deleting ukeys.

2015-08-12 Thread Ethan Jackson
; revalidator/purge case, which could hit something like this, but I > don't think there is a case where we use this functionality while OVS > is under load, so the likelyhood of problems is low. > > On 11 August 2015 at 12:18, Ethan Jackson wrote: >> Yeah sorry this patch

Re: [ovs-dev] [PATCH v2 1/2] upcall: Fix minor race when deleting ukeys.

2015-08-11 Thread Ethan Jackson
>>> On Aug 10, 2015, at 6:46 PM, Ethan J. Jackson wrote: >>> >>> From: Ethan Jackson >>> >>> Since revalidator_sweep() doesn't hold the ukey mutex for each full >>> loop iteration, it's theoretically possible that two threads ma

Re: [ovs-dev] [PATCH] ofproto: Allow in-place modifications of datapath flows.

2015-08-10 Thread Ethan Jackson
the bond rebalance test cases to prove that modify is used in >> the case we currently know suffers from the lack of modify support? >> >> Also, there are some minor comments below you could address at the same time. >> >> Jarno >> >>> On Aug 5, 2015, at

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-08-06 Thread Ethan Jackson
Merged and backported to 2.4. Thanks Ethan On Thu, Aug 6, 2015 at 11:23 AM, Ethan Jackson wrote: > Great, I'll merge both today. > > Thanks a lot, > Ethan > > On Thu, Aug 6, 2015 at 9:00 AM, Stokes, Ian wrote: >> No problem, >> >> I've sent a pa

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-08-06 Thread Ethan Jackson
Great, I'll merge both today. Thanks a lot, Ethan On Thu, Aug 6, 2015 at 9:00 AM, Stokes, Ian wrote: > No problem, > > I've sent a patch to the mailing list with these changes for INSTALL.DPDK.md. > > Thanks > Ian > >> -Original Message- >> F

[ovs-dev] [PATCH] ofproto: Allow in-place modifications of datapath flows.

2015-08-05 Thread Ethan Jackson
t with the MODIFY flag set. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-upcall.c | 118 +++--- 1 file changed, 87 insertions(+), 31 deletions(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 59010c2..7abc97d 10

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-08-04 Thread Ethan Jackson
te up a note for theINSTALL.DPDK.md > explaining the issue. > > Thanks > Ian > >> -Original Message- >> From: Ben Pfaff [mailto:b...@nicira.com] >> Sent: Monday, August 03, 2015 6:11 PM >> To: Ethan Jackson >> Cc: Stokes, Ian; Justin Pettit; Pravin

Re: [ovs-dev] [PATCH v3] dpif-netdev: fix race for queues between pmd threads

2015-08-04 Thread Ethan Jackson
Hey, Really sorry this has taken so long to merge. I dropped the ball. It's in now. Ethan On Tue, Aug 4, 2015 at 5:26 AM, Ilya Maximets wrote: > Will anyone plan to apply this patch? > > Best regards, Ilya Maximets. > > On 28.07.2015 23:48, Flavio Leitner wrote: >> On Tue, Jul 28, 2015 at 09:

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-08-01 Thread Ethan Jackson
thout something like the patch below. > Not until we have more explicit configuration details available for the HW > device from DPDK. > > Thanks > Ian > >> -Original Message- >> From: Ethan Jackson [mailto:et...@nicira.com] >> Sent: Wednesday, J

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.

2015-07-29 Thread Ethan Jackson
Sorry for taking so long to get to this. The one question I have is: Is OVS the right layer to be fixing this? Isn't this really an issue of DPDK reporting a number of available queues that for practical purposes is wrong? I.E. Shouldn't this be fixed by the DPDK driver of this system? This pat

Re: [ovs-dev] [PATCH] netdev-dpdk: add support for rings in secondary processes in IVSHMEM setups

2015-07-29 Thread Ethan Jackson
g around vhost-user. My inclination would be to drop the patch instead of implementing this logic unless there's consensus that IVSHMEM is going to be an relevant IO mechanism in the future. > However, maybe for your use-case this isn’t an issue? Yeah for our (Melvin + Me) specific us

Re: [ovs-dev] [PATCH] ovn: Fix broken build.

2015-07-28 Thread Ethan Jackson
Ah my bad sorry. Acked-by: Ethan Jackson On Tue, Jul 28, 2015 at 6:53 PM, Ben Pfaff wrote: > Fixes the following error: > > The following files are in git but not the distribution: > ovn/OVN-GW-HA.md > > CC: Ethan Jackson > Signed-off-by: Ben Pfaff > --

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Restore txq/rxq number if initialization fails.

2015-07-23 Thread Ethan Jackson
think that the cause is this patch. > When we tried branch-2.4, we ran into no errors. > Today I am working on confirming that this is the patch. > > Luis E. P. > > Sent from my iPhone > >> On Jul 23, 2015, at 15:38, Ethan Jackson wrote: >> >> Ben, Justin,

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Restore txq/rxq number if initialization fails.

2015-07-23 Thread Ethan Jackson
Ben, Justin, should this be backported? I'm not up on the policy at the moment. Etha On Thu, Jul 23, 2015 at 3:42 AM, Traynor, Kevin wrote: > >> -Original Message- >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di >> Proietto >> Sent: Thursday, July 16, 2015 7:48

Re: [ovs-dev] [PATCH] netdev-dpdk: add support for rings in secondary processes in IVSHMEM setups

2015-07-22 Thread Ethan Jackson
, Jul 22, 2015 at 04:34:39PM -0700, Ethan Jackson wrote: >> Sure, Melvin could you add that to the next version you send out >> (after this version is reviewed). >> >> Ethan >> >> On Wed, Jul 22, 2015 at 4:31 PM, Ben Pfaff wrote: >> > I understand now. I

Re: [ovs-dev] [PATCH] netdev-dpdk: add support for rings in secondary processes in IVSHMEM setups

2015-07-22 Thread Ethan Jackson
Sure, Melvin could you add that to the next version you send out (after this version is reviewed). Ethan On Wed, Jul 22, 2015 at 4:31 PM, Ben Pfaff wrote: > I understand now. I recommend adding a Co-authored-by, then, to make > that clear. > > On Wed, Jul 22, 2015 at 04:29:55PM

Re: [ovs-dev] [PATCH] netdev-dpdk: add support for rings in secondary processes in IVSHMEM setups

2015-07-22 Thread Ethan Jackson
g_create() when called from a secondary process. It also introduces >> two >> functions: netdev_dpdk_ring_rxq_recv() and netdev_dpdk_ring_send__() to >> handle >> tx/rx on dpdk rings in secondary processes. >> >> Signed-off-by: Melvin Walls >> Signed-o

Re: [ovs-dev] [PATCH] doc: Document proposed OVN Gateway HA design.

2015-07-21 Thread Ethan Jackson
No worries. I sent a new version (actually ran spell check on this one ;) ) On Tue, Jul 21, 2015 at 11:35 AM, Ben Pfaff wrote: > On Tue, Jul 21, 2015 at 11:32:21AM -0700, Ethan Jackson wrote: >> Thanks for the review, I've addressed the comments and will send out >> another

[ovs-dev] [PATCH v2] doc: Document proposed OVN Gateway HA design.

2015-07-21 Thread Ethan Jackson
similar systems. The hope is that it can be used as a starting point for design discussions and an eventual implementation. Signed-off-by: Ethan Jackson --- ovn/OVN-GW-HA.md | 375 +++ 1 file changed, 375 insertions(+) create mode 100644 ovn/OVN-GW

Re: [ovs-dev] [PATCH] doc: Document proposed OVN Gateway HA design.

2015-07-21 Thread Ethan Jackson
Thanks for the review, I've addressed the comments and will send out another version of the patch shortly. One comment on the feedback below. > Under "Controller Independent Active-backup", I am not sure that I buy > the argument here, because currently ovn-northd doesn't care about the > layout

[ovs-dev] [PATCH] doc: Document proposed OVN Gateway HA design.

2015-07-09 Thread Ethan Jackson
similar systems. The hope is that it can be used as a starting point for design discussions and an eventual implementation. Signed-off-by: Ethan Jackson --- OVN-GW-HA.md | 374 +++ 1 file changed, 374 insertions(+) create mode 100644 OVN-GW

Re: [ovs-dev] [PATCH v3] datapath/README: fixed some typos

2015-07-02 Thread Ethan Jackson
Acked-by: Ethan Jackson Merged. Changed some tabs to spaces Ethan On Thu, Jul 2, 2015 at 12:34 PM, Luis E. P wrote: > Signed-off-by: Luis E. P > --- > AUTHORS| 1 + > datapath/README.md | 7 --- > 2 files changed, 5 insertions(+), 3 deletions(-) > > d

Re: [ovs-dev] [PATCH 2/2] AUTHORS: added Luis E. P. to list

2015-07-02 Thread Ethan Jackson
put a v3 in the next patch. > > --Justin > > >> On Jul 2, 2015, at 12:01 PM, Luis E Pena wrote: >> >> Should I redo this patch with my name in the first list? >> >>> On Jul 2, 2015, at 11:15, Ben Pfaff wrote: >>> >>> On Thu, Jul 02, 20

Re: [ovs-dev] [PATCH 1/2] datapaht/README: fixed some minor typos

2015-07-02 Thread Ethan Jackson
> Also, there is a typo in the subject. Doh, I should have caught that. Ethan ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] AUTHORS: added Luis E. P. to list

2015-07-02 Thread Ethan Jackson
Typically adding yourself to the authors file wouldn't be a separate patch, I'd just merge this into the previous one. Also, Looking at the file now the first list of people are those who have "authored or signed off on commits in the Open vSwitch source code". I think the patch you suggested tec

Re: [ovs-dev] [PATCH 1/2] datapaht/README: fixed some minor typos

2015-07-02 Thread Ethan Jackson
The patch introduces some trailing whitespace. > - - If userspace's notion of the flow key for the packet matches the > + - If the userspace's notion of the flow key for the packet matches the I don't agree with this change. It's pretty common to talk about userspace without a "the" as the REA

Re: [ovs-dev] [PATCH] lacp: Remove packed attribute from struct lacp_pdu.

2015-06-16 Thread Ethan Jackson
Acked-by: Ethan Jackson On Tue, Jun 16, 2015 at 10:53 AM, Flavio Leitner wrote: > On Tue, Jun 16, 2015 at 08:47:34AM -0700, Ben Pfaff wrote: >> The packed annotation doesn't do anything here because all of the members >> in the structure are naturally aligned. >> &

Re: [ovs-dev] [PATCH] dpif-netdev: Prefetch next packet before miniflow_extract().

2015-06-16 Thread Ethan Jackson
If you tried it and it didn't improve, then I think what we have now is great. Ethan On Tue, Jun 16, 2015 at 9:08 AM, Daniele Di Proietto wrote: > > On 16/06/2015 09:55, "Gray, Mark D" wrote: > >>> >> >>> Acked-by: Ethan Jackson >> >&

Re: [ovs-dev] [PATCH] dpif-netdev: Prefetch next packet before miniflow_extract().

2015-06-15 Thread Ethan Jackson
Acked-by: Ethan Jackson One question I had for a future patch. Have you considered prefetching more packets at once? I.E. 4 at a time or something? That's how these things are typically written, though I don't know if it would actually affect things. Merged. Ethan On Mon, Jun 15,

Re: [ovs-dev] [PATCH v3] dpif-netdev: Fix non-pmd thread queue id.

2015-06-03 Thread Ethan Jackson
Acked-by: Ethan Jackson Merged. Ethan On Wed, Jun 3, 2015 at 10:45 AM, Flavio Leitner wrote: > On Wed, Jun 03, 2015 at 03:55:16PM +0100, Daniele Di Proietto wrote: >> Non pmd threads have a core_id == UINT32_MAX, while queue ids used by >> netdevs range from 0 to the

Re: [ovs-dev] dpdk vhost-user patch questions.

2015-06-03 Thread Ethan Jackson
Great thanks a lot for the detailed response, this is super helpful. I'll take a look at the presentation and read the documentation. Ethan On Wed, Jun 3, 2015 at 3:09 PM, Gray, Mark D wrote: > Hi Ethan > >> >> I have some general questions about the vhost user feature which aren't >> totally cl

[ovs-dev] dpdk vhost-user patch questions.

2015-06-03 Thread Ethan Jackson
I have some general questions about the vhost user feature which aren't totally clear to me. I would greatly appreciate some clarification, or pointers to documentation. 1) Since vhost-user is using standard Qemu interfaces, will it support all of the features of the standard vhost implementation

Re: [ovs-dev] [PATCH] utilities: Add new pipeline generator script.

2015-05-27 Thread Ethan Jackson
> This is useful and I think we would like to use it here. I have a few > questions. Great! I really hope this moves the community in the direction of more realistic test cases. > How come the pipeline is set up with metadata instead of a chain of tables > as I presume that would also work? I

Re: [ovs-dev] [PATCH v7] netdev-dpdk: add dpdk vhost-user ports

2015-05-22 Thread Ethan Jackson
Pravin has been handling this on our end, so he'll do it. Btw how does this perform out of curiosity? Ethan On Fri, May 22, 2015 at 1:33 PM, Flavio Leitner wrote: > On Fri, May 22, 2015 at 04:40:00PM +0100, Ciara Loftus wrote: >> This patch adds support for a new port type to the userspace >> d

Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-22 Thread Ethan Jackson
h headers do not work if these are not defined */ > +#define __SSE2__ > +#define __SSE__ > +#define __MMX__ > +#include_next > +#undef __MMX__ > +#undef __SSE__ > +#undef __SSE2__ > > > ---8<--- > > > I have tested this with GCC 4.8 and GCC 4.9 headers.

Re: [ovs-dev] [PATCH v3 4/4] netdev-dpdk: Adapt the requested number of tx and rx queues.

2015-05-22 Thread Ethan Jackson
In netdev_dpdk_send__() I folded in an OVS_UNLIKELY around the txq_needs_locking check as I'd like to optimize for the standard case where we don't. Otherwise looks good to me, I'll merge this series shortly. Acked-by: Ethan Jackson On Fri, May 22, 2015 at 9:14 AM, Daniele Di

Re: [ovs-dev] [PATCH v3 3/4] netdev-dpdk: Use specific spinlock for stats.

2015-05-22 Thread Ethan Jackson
Acked-by: Ethan Jackson On Fri, May 22, 2015 at 9:14 AM, Daniele Di Proietto wrote: > Right now ethernet and ring devices use a mutex, while vhost devices use > a mutex or a spinlock to protect statistics. This commit introduces a > single spinlock that's always used for

Re: [ovs-dev] [PATCH v3 2/4] netdev-dpdk: Properly support non pmd threads.

2015-05-22 Thread Ethan Jackson
Acked-by: Ethan Jackson On Fri, May 22, 2015 at 9:14 AM, Daniele Di Proietto wrote: > We used to reserve DPDK lcore 0 for non pmd operations, making it > difficult to use core 0 for packet processing. > DPDK 2.0 properly support non EAL threads with lcore LCORE_ID_ANY. > >

Re: [ovs-dev] [PATCH v3 1/4] ovs-numa: Change 'core_id' to unsigned.

2015-05-22 Thread Ethan Jackson
Acked-by: Ethan Jackson On Fri, May 22, 2015 at 9:14 AM, Daniele Di Proietto wrote: > DPDK lcore_id is unsigned. We need to support big values like > LCORE_ID_ANY (=UINT32_MAX). Therefore I am changing the type everywhere > in OVS. > > Signed-off-by: Daniele Di Proietto &g

Re: [ovs-dev] [PATCH] dpif-netdev: Increase the number of EMC entries

2015-05-21 Thread Ethan Jackson
Applied, thanks! Ethan On Thu, May 21, 2015 at 8:38 AM, Daniele Di Proietto wrote: > I totally agree with the suggested change. Should the need arise, > we could make it configurable later. > > Acked-by: Daniele Di Proietto > > On 13/05/2015 14:54, "Ciara Loftus" wrote: > >>Prior to this comm

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Use default NIC configuration.

2015-05-21 Thread Ethan Jackson
Applied, thanks! On Thu, May 21, 2015 at 9:26 AM, Kevin Traynor wrote: > This patch simplifies Rx/Tx NIC configuration by removing > custom values and using the defaults provided by the DPDK > PMDs. This also enables Rx vectorisation which improves > performance. > > v2: rebase to master > > Sign

Re: [ovs-dev] [PATCH] dpif-netdev: Clear flow batches before execute.

2015-05-21 Thread Ethan Jackson
Thanks, I've merged. On Thu, May 21, 2015 at 1:44 PM, Pravin Shelar wrote: > On Wed, May 20, 2015 at 5:06 PM, Ethan Jackson wrote: >> When executing actions, it's possible a recirculation will occur >> causing dp_netdev_input() to be called multiple times. If the batc

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2015-05-21 Thread Ethan Jackson
Daniele/Vasmi, You were the last two on our end to stand up ivshmem. Would you mind resubmitting this patch with whatever tweaks you needed to make it work? Ethan On Thu, May 21, 2015 at 12:41 PM, Flavio Leitner wrote: > On Wed, May 20, 2015 at 01:22:18PM -0700, Ethan Jackson wrote: >

[ovs-dev] [PATCH] dpif-netdev: Clear flow batches before execute.

2015-05-20 Thread Ethan Jackson
th the original lookup. This could be very bad. This patch fixes the problem by zeroing out flow batch pointers before calling packet_batch_execute(). This probably has a slightly negative performance impact, though I haven't tried it. Signed-off-by: Ethan Jackson --- lib/dpif-netdev.c | 5

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2015-05-20 Thread Ethan Jackson
Hey guys, I know this is a super old thread, but is there any interest in reviving it? On our end we've had a terrible time getting ivshmem working until we found this documentation. I expect future users will have the same problem. I'd resubmit the patch myself, but I have none of the technica

Re: [ovs-dev] [PATCH] dpdk: Ditch MAX_PKT_BURST macro.

2015-05-19 Thread Ethan Jackson
Cool thanks for trying it out. I'll merge soon. Ethan On Mon, May 18, 2015 at 1:22 PM, Traynor, Kevin wrote: > >> -Original Message- >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ethan Jackson >> Sent: Monday, May 18, 2015 5:08 PM >> To

Re: [ovs-dev] [PATCH] dpdk: Ditch MAX_PKT_BURST macro.

2015-05-19 Thread Ethan Jackson
Cool thanks for trying it out. I'll merge soon. Ethan On Mon, May 18, 2015 at 1:22 PM, Traynor, Kevin wrote: > >> -Original Message- >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ethan Jackson >> Sent: Monday, May 18, 2015 5:08 PM >> To

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Fix sparse warnings.

2015-05-19 Thread Ethan Jackson
Thanks I'll merge soon On Mon, May 18, 2015 at 1:26 PM, Daniele Di Proietto wrote: > > Acked-by: Daniele Di Proietto > > On 18/05/2015 16:53, "Ethan Jackson" wrote: > >>These are all minor style issues. >> >>Signed-off-by

Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-19 Thread Ethan Jackson
intrin.h,xsaveintrin.h, > xsaveoptintrin.h > > Do we want to generate these at build time, maybe? > > On 18/05/2015 16:53, "Ethan Jackson" wrote: > >>Sparse doesn't like several of the DPDK header files. This patch >>works around it so we can get

Re: [ovs-dev] [PATCH] dpdk: Ditch MAX_PKT_BURST macro.

2015-05-18 Thread Ethan Jackson
This version of the patch breaks sparse, I sent out another. Ethan On Sat, May 16, 2015 at 11:24 AM, Ethan Jackson wrote: > The MAX_PKT_BURST and NETDEV_MAX_RX_BATCH macros had a confusing > relationship. They basically purport to do the same thing, making it > unclear which is the

[ovs-dev] [PATCH v2] dpdk: Ditch MAX_PKT_BURST macro.

2015-05-18 Thread Ethan Jackson
ff-by: Ethan Jackson --- lib/dpif-netdev.c | 16 lib/netdev-dpdk.c | 9 +++-- lib/netdev.h | 2 +- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index f1d65f5..96c71ac 100644 --- a/lib/dpif-netdev.c +++ b/lib

[ovs-dev] [PATCH 2/2] netdev-dpdk: Fix sparse warnings.

2015-05-18 Thread Ethan Jackson
These are all minor style issues. Signed-off-by: Ethan Jackson --- lib/netdev-dpdk.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 505ab75..5f8c60f 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c

[ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-18 Thread Ethan Jackson
Sparse doesn't like several of the DPDK header files. This patch works around it so we can get analysis when compiling DPDK. Signed-off-by: Ethan Jackson --- include/sparse/automake.mk | 4 include/sparse/emmintrin.h | 21 + include/sparse/rte_atomic.h

[ovs-dev] [PATCH] dpdk: Ditch MAX_PKT_BURST macro.

2015-05-16 Thread Ethan Jackson
ff-by: Ethan Jackson --- lib/dpif-netdev.c | 10 +- lib/netdev-dpdk.c | 7 ++- lib/netdev.h | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index f1d65f5..4216865 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-net

Re: [ovs-dev] [PATCH] utilities: Add new pipeline generator script.

2015-05-08 Thread Ethan Jackson
> Would we care about making it run also with python3? Only 3 changes > are required (see inline). I don't think we care. At least none of the other python code in the OVS tree does, this seems like an arbitrary place to start worrying about it. > I think it would be useful to add an option to i

Re: [ovs-dev] [PATCH RFC 1/1] netdev-dpdk: Add QoS API for netdev-dpdk.

2015-05-08 Thread Ethan Jackson
Hi Ian, This email is in response to your QoS patch here: http://openvswitch.org/pipermail/dev/2015-January/050642.html I don't seem to have received it, which makes me thing the email was sent during that brief window when the dev list was down. Apologies for getting to it so late. Anyways, t

Re: [ovs-dev] [PATCH] utilities: Add new pipeline generator script.

2015-04-26 Thread Ethan Jackson
> Is it useful without accompanying code to generate appropriate packets > to exercise the flows? Yes. Daniele is using it with at the moment by running packet traces directly through the system. Plus a lot of synthetic workloads we use regularly would be more characteristic if run on something

[ovs-dev] [PATCH] utilities: Add new pipeline generator script.

2015-04-24 Thread Ethan Jackson
twork virtualization workloads. Signed-off-by: Ethan Jackson --- utilities/automake.mk| 5 +- utilities/ovs-pipegen.py | 122 +++ 2 files changed, 125 insertions(+), 2 deletions(-) create mode 100755 utilities/ovs-pipegen.py diff --git a/util

Re: [ovs-dev] [PATCH RFC 0/1] dpif-netdev: Make EMC Size Configurable

2015-04-21 Thread Ethan Jackson
I really don't think this should be configurable, I can't imagine a situation in which a user would have enough knowledge to tweak the knob correctly. I think the only reason we'd want to configure it is the current EMC size is too small at the moment. My preference would be to figure out how to

Re: [ovs-dev] [PATCH 5/5] dpif-netdev: Reset RSS hash when recirculating.

2015-04-20 Thread Ethan Jackson
a new value and account for the changes in the > packet or in the metadata. > > Requested-by: Ethan Jackson > Signed-off-by: Daniele Di Proietto > --- > lib/dpif-netdev.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/dpif-netdev.c b/lib/dpif-net

Re: [ovs-dev] [PATCH 4/5] dpif-netdev: Batch packets when recirculating.

2015-04-20 Thread Ethan Jackson
Looks like a big win. Acked-by: Ethan Jackson On Wed, Apr 15, 2015 at 11:11 AM, Daniele Di Proietto wrote: > Now that we have per packet metadata, there's no need to split packet > batches when recirculating. > > Signed-off-by: Daniele Di Proietto > --- >

Re: [ovs-dev] [PATCH 3/5] dp-packet: Rename 'dp_hash' in 'rss_hash'.

2015-04-20 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Apr 15, 2015 at 11:11 AM, Daniele Di Proietto wrote: > We already have the 'dp_hash' embedded in the metadata. This caused > confusion in the code. With this commit it should be clear that > 'rss_hash' is the packet hash used

Re: [ovs-dev] [PATCH 2/5] dpif-netdev: Cache time_msec() calls for each received batch.

2015-04-20 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Apr 15, 2015 at 11:11 AM, Daniele Di Proietto wrote: > Calling time_msec() (which calls clock_gettime()) too often might be > expensive. With this commit OVS makes only one call per received > batch and caches the result. > > Suggested-by

Re: [ovs-dev] [PATCH 1/5] dpif-netdev: Store actions data and size contiguously.

2015-04-20 Thread Ethan Jackson
I'll merge this shortly. Acked-by: Ethan Jackson On Wed, Apr 15, 2015 at 11:11 AM, Daniele Di Proietto wrote: > As stated by the comment above the structure, the 'action' pointer does not > change during the 'dp_netdev_actions' lifetime: we might as well embe

Re: [ovs-dev] [PATCH 2/2] ovsdb: integrate perf-counter infrastructure into ovsdb-server

2015-04-13 Thread Ethan Jackson
Acked-by: Ethan Jackson Any reason not to just add some sampling points by default? Wouldn't it be a useful debugging mechanism in the field? Also btw, why is this better than perf? Ethan On Sat, Mar 21, 2015 at 12:00 AM, Andy Zhou wrote: > This integration also adds two commands: &

Re: [ovs-dev] [PATCH 1/2] lib: add a hardware performance counter access library.

2015-04-13 Thread Ethan Jackson
There's some trailing whitespace and minor gramatical errors which I've fixed in the following patch. If you're willing to apply it, then go ahead and merge. Acked-by: Ethan Jackson --- lib/perf-counter.c | 6 +++--- lib/perf-counter.h | 10 +- 2 files changed, 8 i

Re: [ovs-dev] [PATCH v2 1/7] netdev-dpdk: Use specific spinlock for stats.

2015-04-10 Thread Ethan Jackson
n ovs_mutex, if > you think it’s better > >> On 10 Apr 2015, at 02:00, Ethan Jackson wrote: >> >> Could you explain a little more clearly why you want to use an >> rte_spinlock over an ovs_mutex? It's not entirely clear from the >> commit message. >>

Re: [ovs-dev] [PATCH v6 2/6] dpif-netdev: Make datapath and flow stats atomic.

2015-04-09 Thread Ethan Jackson
Acked-by: Ethan Jackson On Tue, Apr 7, 2015 at 12:02 PM, Daniele Di Proietto wrote: > A read operation from a non atomic shared value (without external > locking) can return incorrect values. Using the atomic semantics > prevents this from happening. > > However: > * No m

Re: [ovs-dev] [PATCH v5 6/7] dpif-provider: Add class init function.

2015-04-06 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Apr 1, 2015 at 9:21 AM, Daniele Di Proietto wrote: > This init function is called when the dpif class is registered. It will > be used by following commits > > Signed-off-by: Daniele Di Proietto > --- > lib/dpif-netdev.c | 1 + > li

Re: [ovs-dev] [PATCH v5 5/7] dpif-netdev: Add simple per pmd-thread cycles counters.

2015-04-06 Thread Ethan Jackson
I don't really like the names of the two new functions, they're verbose and don't convey much information (one or the other is fine, both less so). I'm not sure what would be better, but off the top of my head let me suggest something like: cycle_reset() cycle_tally() Think about it, there's pro

Re: [ovs-dev] [PATCH 3/3] ovs-dev.py: Remove vport-*.ko at same time as openvswitch.ko.

2015-04-05 Thread Ethan Jackson
I think this is fine. Though I agree with Justin the script documentation should be update. I can take care of that tomorrow. Acked-by: Ethan Jackson On Sun, Apr 5, 2015 at 1:40 PM, Ben Pfaff wrote: > This is hardly urgent so I'll leave this one for Ethan to review. > > On Sun

Re: [ovs-dev] [PATCH v5 4/7] dpif-netdev: Count exact match cache hits.

2015-04-02 Thread Ethan Jackson
Yeah I'd definitely like to see a re-spin of this with a "relaxed increment" helper. Acked-by: Ethan Jackson On Wed, Apr 1, 2015 at 9:21 AM, Daniele Di Proietto wrote: > We used to count exact match cache hits and masked classifier hits > together. This commit splits th

Re: [ovs-dev] [PATCH v5 3/7] dpif-netdev: Make datapath and flow stats atomic.

2015-04-02 Thread Ethan Jackson
tonic, so just writing the value should be fine. There should be a comment in dp_netdev_flow_used() explaining why we do updates the way we do. Alternatively, the patch might benefit from a "relaxed add" helper local to dpif_netdev which does a relaxed read, add, relaxed write. Acked-by

Re: [ovs-dev] [PATCH v5 0/7] Add pmd thread statistics

2015-04-02 Thread Ethan Jackson
Oops nvm, looks like they ended up in my spam folder. Ethan On Thu, Apr 2, 2015 at 6:03 PM, Ethan Jackson wrote: > Could you please resend the emails for these patches? They showed up > on the mailing list, but for some reason they didn't end up in my > inbox. Wondering if

Re: [ovs-dev] [PATCH v5 0/7] Add pmd thread statistics

2015-04-02 Thread Ethan Jackson
Could you please resend the emails for these patches? They showed up on the mailing list, but for some reason they didn't end up in my inbox. Wondering if there's was a temporary failure or something. Ethan On Wed, Apr 1, 2015 at 9:20 AM, Daniele Di Proietto wrote: > The goal of this series is

Re: [ovs-dev] [PATCH v5 2/7] dpif-netdev: Group statistics updates in the slow path.

2015-04-02 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Apr 1, 2015 at 9:20 AM, Daniele Di Proietto wrote: > Since statistics updates might require locking (in future commits) > grouping them will reduce the locking overhead. > > Signed-off-by: Daniele Di Proietto > --- > lib/dpif-netdev.c | 1

Re: [ovs-dev] [PATCH v5 1/7] dpif-netdev: Remove support for DPIF_FP_ZERO_STATS flag

2015-04-02 Thread Ethan Jackson
Acked-by: Ethan Jackson On Wed, Apr 1, 2015 at 9:20 AM, Daniele Di Proietto wrote: > Since flow statistics are thread local and updated without any lock, > it is not correct to do a memset from another thread. > > This commit simply removes the support for the flag. It is not

Re: [ovs-dev] [PATCHv4 5/9] dpif-netdev: Use u64_stats_sync when reading/writing stats.

2015-03-30 Thread Ethan Jackson
You're not going to like my review of this patch =) So the code is very high quality, though I haven't read it super closely yet. My main question, is if this is really the right approach to handle stats in the DPDK fast path in general. So here's my question: why not just use atomic variables f

Re: [ovs-dev] [PATCHv4 2/9] dpif-netdev: Group statistics updates in the slow path.

2015-03-30 Thread Ethan Jackson
> Since statistics updates might require locking (in future commits) > grouping them will reduce the locking overhead. Do they actually require locking in future commits or is this speculative? Adding locks for these stats seems like a pretty significant step backwards, have you measured the over

Re: [ovs-dev] [PATCHv4 1/9] dpif-netdev: Account for and free lost packets.

2015-03-30 Thread Ethan Jackson
Acked-by: Ethan Jackson Merged, thanks. On Fri, Mar 27, 2015 at 9:29 AM, Daniele Di Proietto wrote: > Packets for which an upcall has failed (lost packets) must be deleted. > We also need to count them as MISS and LOST. > > Signed-off-by: Daniele Di Proietto > --- > lib

Re: [ovs-dev] [PATCH v4 4/5] ofproto-dpif: Restore metadata and registers on recirculation.

2015-03-25 Thread Ethan Jackson
#x27;t think it should block the patch. Also itd be nice to switch bonds to using this same framework. Acked-by: Ethan Jackson On Tue, Mar 24, 2015 at 11:08 AM, Jarno Rajahalme wrote: > Thank you for the review. Ethan promised to review this as well, so I’ll wait > for his verdic

Re: [ovs-dev] [PATCH 2/6] netdev-dpdk: Adapt the requested number of tx and rx queues.

2015-03-24 Thread Ethan Jackson
Patch no longer applies unfortunately, daniele could you please rebase and resend it when you have a chance? Ethan On Thu, Mar 12, 2015 at 11:04 AM, Daniele Di Proietto wrote: > This commit changes the semantics of 'netdev_set_multiq()' to allow OVS > DPDK to run on device with limited multi que

Re: [ovs-dev] [PATCH 1/6] netdev-dpdk: create smaller mempools in case of failure

2015-03-19 Thread Ethan Jackson
I suppose my only question with this patch is why we can't just allocate MIN_NB_MBUF sized pools in the first place. Acked-by: Ethan Jackson On Thu, Mar 12, 2015 at 11:04 AM, Daniele Di Proietto wrote: > If rte_mempool_create() fails with ENOMEM, try asking for a smaller > mem

Re: [ovs-dev] [PATCH] mac-learning: Implement per-port MAC learning fairness.

2015-02-12 Thread Ethan Jackson
Solution seems clean, I'm happy with this as well. Acked-by: Ethan Jackson On Thu, Feb 12, 2015 at 11:02 AM, Alex Wang wrote: > Looks good to me, > > /* A MAC learning table entry. >> - * Guarded by owning 'mac_learning''s rwlock */ >> + *

Re: [ovs-dev] [PATCH] dpif-netdev: Fix rare flow add race condition.

2015-01-03 Thread Ethan Jackson
oalesced version and you can tell me what you think. Ethan On Sat, Jan 3, 2015 at 2:53 PM, Ethan Jackson wrote: > Before this patch, dp_netdev_flow_add() inserted newly minted flows in > the "flow_table" cmap before inserting them into the per core "dpcls" > cl

[ovs-dev] [PATCH] dpif-netdev: Fix rare flow add race condition.

2015-01-03 Thread Ethan Jackson
low(). By inserting into the per core classifier before the cmap, all the values are guaranteed to be initialized during flow dumps. With this patch, I can no longer reproduce the crash. Signed-off-by: Ethan Jackson --- lib/dpif-netdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

[ovs-dev] [PATCH] cfm: Mark CFM as deprecated.

2014-12-18 Thread Ethan Jackson
The current implementation is not standards compliant and inferior to BFD in every way. This patch marks it as deprecated so it may be removed in the future. Signed-off-by: Ethan Jackson --- lib/cfm.c| 7 +++ vswitchd/vswitch.xml | 4 2 files changed, 11 insertions

[ovs-dev] RFC: A plan for stats.

2014-09-20 Thread Ethan Jackson
I'm doing some performance testing which heavily stresses the OVS DPDK slow path, and notice we spend a ridiculous amount of CPU time on the rule_dpif stats mutex. For my test case, by commenting out the mutex I literally doubled the performance. I'm in a bit of a rush, so as a short term hack, I

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-18 Thread Ethan Jackson
In our experience, most people actually expect this number to be fairly high. For example, our traffic generator runs a little bit of traffic to populate caches, pauses for a couple of seconds, before finally starting the main test. On top of that, we've had some minor complaints from people mana

Re: [ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ethan Jackson
ou think? Ethan On Wed, Sep 17, 2014 at 1:42 PM, Ben Pfaff wrote: > On Wed, Sep 17, 2014 at 01:25:19PM -0700, Ethan Jackson wrote: >> Frequently we've run into controller bugs which result in hundreds of >> thousands, or even millions of rules being installed in an OpenFlow >

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

2014-09-17 Thread Ethan Jackson
FYI All I've dropped this patch. Ethan On Mon, Sep 8, 2014 at 2:42 PM, Ben Pfaff wrote: > 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? >> >

[ovs-dev] [PATCH] ofproto: Warn about excessive rule counts in OpenFlow tables.

2014-09-17 Thread Ethan Jackson
tential problem. Signed-off-by: Ethan Jackson --- ofproto/ofproto.c | 8 1 file changed, 8 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 7b1d478..754d290 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1522,6 +1522,14 @@ ofproto_run(st

Re: [ovs-dev] [PATCH 2/2] ovs-dev.py: skip clang if configure fails

2014-09-16 Thread Ethan Jackson
Acked-by: Ethan Jackson On Sun, Sep 14, 2014 at 8:06 PM, Joe Stringer wrote: > Although I reviewed and applied #1, I'll leave this one up to Ethan as it's > more relevant to his other proposed changes. > > On 13 September 2014 05:35, Daniele Di Proietto > wrote:

Re: [ovs-dev] [PATCH] ofproto: Increase default datapath max_idle time.

2014-09-14 Thread Ethan Jackson
Acked-by: Ethan Jackson On Thu, Sep 11, 2014 at 3:03 PM, Joe Stringer wrote: > The datapath max_idle value determines how long to wait before deleting > an idle datapath flow when operating below the flow_limit. This patch > increases the max_idle to 10 seconds, which allows datapath

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 st

[ovs-dev] [ovs-dev 2/3] ovs-dev.py: Support additional optimization flags.

2014-09-05 Thread Ethan Jackson
They may or may not make a difference, but there's no reason not to support passing them. Signed-off-by: Ethan Jackson --- utilities/ovs-dev.py | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index e454e18..36

[ovs-dev] [ovs-dev 3/3] ovs-dev.py: Support running the clang binaries.

2014-09-05 Thread Ethan Jackson
They have slightly different support characteristics, so it's nice to easily switch between them for testing. Signed-off-by: Ethan Jackson --- utilities/ovs-dev.py | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-d

  1   2   3   4   5   6   7   8   9   10   >