ofproto: Protect index by cookie with ofproto_mutex.
authorBen Pfaff <blp@nicira.com>
Mon, 9 Sep 2013 21:26:23 +0000 (14:26 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 04:23:54 +0000 (21:23 -0700)
commit2fe1428e36036e0f02348fc84618da300a2ab436
treecb6c6dc6f73e5a97919cd78e243f066672b1de3f
parent4f2c159f462f6f84ea0cb30b183813a7c360c4db
ofproto: Protect index by cookie with ofproto_mutex.

The cookie index is only used for flow_mods, so it makes sense to use this
global mutex.

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