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:55:55 +0000 (15:55 -0700)
commit884e1dc43275683c9a2bf23ce4e46d8fb43a3d41
tree3335f6dcfde8a3af34d8257f91783e034439cb22
parent448c2fa80c7ef9358179a0cdc68cf1feca782e6d
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