ofproto: Rename struct rule's evict lock and use it more widely.
authorEthan Jackson <ethan@nicira.com>
Wed, 4 Sep 2013 00:23:44 +0000 (17:23 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 4 Sep 2013 22:58:20 +0000 (15:58 -0700)
commitd617c36f029c3804d4f3c701e63e42cd4573ec5d
tree1e287f50a3baae286db8fae2bff3c6ab52a9d871
parentf50b0780416946199780bd09bda414a00089a1ff
ofproto: Rename struct rule's evict lock and use it more widely.

There are a few fields in struct rule which are accessible by
functions in ofproto-dpif and therefore need to accessed in a thread
safe manner.  This patch achieves this by generalizing the rules evict
rwlock and requiring a writelock to be held to edit them.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c