ofproto: Hold ofproto_mutex when enabling or disabling eviction.
authorBen Pfaff <blp@nicira.com>
Thu, 2 Jul 2015 19:50:59 +0000 (12:50 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 2 Jul 2015 19:54:06 +0000 (12:54 -0700)
commitfea7ac6166b5f7e542cc89d57a8d821e99978dd1
treed288037d377a3ad67e3a3c47ebfbfdc8a834dc57
parent6692f27fe39c5e29ef2725256c4bdff130609cb1
ofproto: Hold ofproto_mutex when enabling or disabling eviction.

ofproto_enable_eviction() and ofproto_disable_eviction() require
ofproto_mutex (and they were even annotated that way, though not on their
prototypes but only at definition), but it wasn't being held.  This fixes
the problem.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/ofproto.c