Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Don't trace on deep resubmit.

2013-08-03 Thread Ethan Jackson
I changed the commit message to this: While this code is useful for debugging, removing it allows us to hide ofproto_trace() in ofproto-dpif. ofproto_trace() is a complex function which could be difficult to make "obviously" thread safe. Thanks for the review, Ethan On Fri, Aug 2, 2013 at 10:25

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Don't trace on deep resubmit.

2013-08-02 Thread Ben Pfaff
On Fri, Aug 02, 2013 at 10:14:02PM -0700, Ethan Jackson wrote: > > I thought we introduced this to make debugging easier in real problem > > situations. It would be pretty easy to make thread safe with an > > atomic_bool. > > I'm more worried about accessing the ofproto_trace() function from > ou

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Don't trace on deep resubmit.

2013-08-02 Thread Ethan Jackson
> I thought we introduced this to make debugging easier in real problem > situations. It would be pretty easy to make thread safe with an > atomic_bool. I'm more worried about accessing the ofproto_trace() function from outside of ofproto_dpif. I'm trying to keep the interface in ofproto-dpif.h

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Don't trace on deep resubmit.

2013-08-02 Thread Ben Pfaff
On Fri, Aug 02, 2013 at 06:31:38PM -0700, Ethan Jackson wrote: > This code is not particularly important and will be inconvenient to > make thread safe. > > Signed-off-by: Ethan Jackson I thought we introduced this to make debugging easier in real problem situations. It would be pretty easy to

[ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Don't trace on deep resubmit.

2013-08-02 Thread Ethan Jackson
This code is not particularly important and will be inconvenient to make thread safe. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif-xlate.c | 27 +-- ofproto/ofproto-dpif.c |4 +++- ofproto/ofproto-dpif.h |3 --- 3 files changed, 4 insertions