Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-20 Thread Ben Pfaff
Ah. Is it OK for us to keep complaining about you removing it though? On Tue, Aug 20, 2013 at 01:10:06PM -0700, Ethan Jackson wrote: > I never removed it, just complained about it. > > Ethan > > On Tue, Aug 20, 2013 at 12:47 PM, Ben Pfaff wrote: > > On Sun, Aug 18, 2013 at 02:56:55PM +1000, Si

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-20 Thread Ethan Jackson
I never removed it, just complained about it. Ethan On Tue, Aug 20, 2013 at 12:47 PM, Ben Pfaff wrote: > On Sun, Aug 18, 2013 at 02:56:55PM +1000, Simon Horman wrote: >> On Thu, Aug 08, 2013 at 02:37:48PM -0700, Ben Pfaff wrote: >> > On Thu, Aug 08, 2013 at 02:32:08PM -0700, Ethan Jackson wrote:

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-20 Thread Ben Pfaff
On Sun, Aug 18, 2013 at 02:56:55PM +1000, Simon Horman wrote: > On Thu, Aug 08, 2013 at 02:37:48PM -0700, Ben Pfaff wrote: > > On Thu, Aug 08, 2013 at 02:32:08PM -0700, Ethan Jackson wrote: > > > > Simon presented numbers that showed it to be a valuable optimization > > > > in some cases, otherwise

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-17 Thread Simon Horman
On Thu, Aug 08, 2013 at 02:37:48PM -0700, Ben Pfaff wrote: > On Thu, Aug 08, 2013 at 02:32:08PM -0700, Ethan Jackson wrote: > > > Simon presented numbers that showed it to be a valuable optimization > > > in some cases, otherwise I'd just say get rid of it. > > > > If that's the only reason we hav

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ben Pfaff
On Thu, Aug 08, 2013 at 03:50:01PM -0700, Ethan Jackson wrote: > > What about the "cookies" hindex in struct ofproto, does it need > > locking or removal? > > I don't think so. The only thing that cares about cookies is > ofproto.c which is single threaded. We needed to lock expirable > because

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ethan Jackson
> What about the "cookies" hindex in struct ofproto, does it need > locking or removal? I don't think so. The only thing that cares about cookies is ofproto.c which is single threaded. We needed to lock expirable because ofproto-dpif-xlate messes with it indirectly by doing a list_remove on rule

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ben Pfaff
On Thu, Aug 08, 2013 at 02:37:48PM -0700, Ben Pfaff wrote: > On Thu, Aug 08, 2013 at 02:32:08PM -0700, Ethan Jackson wrote: > > > Simon presented numbers that showed it to be a valuable optimization > > > in some cases, otherwise I'd just say get rid of it. > > > > If that's the only reason we hav

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ben Pfaff
On Thu, Aug 08, 2013 at 02:32:08PM -0700, Ethan Jackson wrote: > > Simon presented numbers that showed it to be a valuable optimization > > in some cases, otherwise I'd just say get rid of it. > > If that's the only reason we have it, I vote we ditch it. It's a new > world with multithreading, I'

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ethan Jackson
> Simon presented numbers that showed it to be a valuable optimization > in some cases, otherwise I'd just say get rid of it. If that's the only reason we have it, I vote we ditch it. It's a new world with multithreading, I'd like to have a clean slate in the direction of thread safety and add op

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ben Pfaff
On Thu, Aug 08, 2013 at 02:04:25PM -0700, Ethan Jackson wrote: > > There is some gratuitous whitespace change (tabs vs. spaces?) in > > xlate_fin_timeout(). > > > > There's something about this change that makes me uncomfortable but I > > can't quite put my finger on what it is. > > I agree, I don

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ethan Jackson
> There is some gratuitous whitespace change (tabs vs. spaces?) in > xlate_fin_timeout(). > > There's something about this change that makes me uncomfortable but I > can't quite put my finger on what it is. I agree, I don't like it. Ideally we'd just get rid of the expirable list, but I don't kno

Re: [ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ben Pfaff
On Thu, Aug 08, 2013 at 12:58:28PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson There is some gratuitous whitespace change (tabs vs. spaces?) in xlate_fin_timeout(). There's something about this change that makes me uncomfortable but I can't quite put my finger on what it is. Acke

[ovs-dev] [thread 09/15] ofproto-dpif: Lock the expirable list.

2013-08-08 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c | 18 ++ ofproto/ofproto-dpif.c |2 ++ ofproto/ofproto-provider.h |4 +++- ofproto/ofproto.c|8 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/ofproto/ofproto-