ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.
authorRyan Wilson <wryan@nicira.com>
Wed, 28 May 2014 00:34:14 +0000 (17:34 -0700)
committerAlex Wang <alexw@nicira.com>
Wed, 28 May 2014 00:41:19 +0000 (17:41 -0700)
commit84f0f298298465f9bd6f7e794b671587e4556503
tree620e552b70ad07d7667706af3bd7659f7755c23d
parent8cc868015c32dd9e9085f106c03697ea0e808c97
ofproto-dpif-xlate: Implement RCU locking in ofproto-dpif-xlate.

Before, a global read-write lock protected the ofproto-dpif
/ ofproto-dpif-xlate interface.  Handler and revalidator threads
had to wait while configuration was being changed.  This patch
implements RCU locking which allows handlers and revalidators
to operate while configuration is being updated.

Signed-off-by: Ryan Wilson <wryan@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif-xlate.h
ofproto/ofproto-dpif.c
ofproto/ofproto-dpif.h