Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Do initial rule lookup for callers.

2013-10-09 Thread Ben Pfaff
On Wed, Oct 09, 2013 at 04:08:58PM -0700, Ethan Jackson wrote: > None of the functions available in ofproto-dpif.h are thread safe > unless holding the xlate_rwlock because one can't know that an ofproto > or ofport used as argument will survive during the function call. For > this reason, ofproto

[ovs-dev] [PATCH] ofproto-dpif-xlate: Do initial rule lookup for callers.

2013-10-09 Thread Ethan Jackson
None of the functions available in ofproto-dpif.h are thread safe unless holding the xlate_rwlock because one can't know that an ofproto or ofport used as argument will survive during the function call. For this reason, ofproto-dpif-upcall's invocation of rule_dpif_lookup() is unsafe because the o