On Sat, Jul 19, 2014 at 10:07:16PM +0300, Jarno Rajahalme wrote: > > > On Jul 19, 2014, at 8:27 PM, Ben Pfaff <b...@nicira.com> wrote: > > > > We could make some operations lockless, like read and store, > > These would be enough for RCU cmap and classifier, right? Refcount > needs the read-modify-write operations, though.
OK, let's do it then. I guess we'd need to somehow make sure we have proper memory barriers. One way would be to only enable this on GCC and use __sync_synchronize(). Another way would be to enable this only on x86 and use a call to an extern function to act as a compiler barrier. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev