ofproto: Eliminate 'ofproto_node' member from struct rule.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Sep 2013 23:41:32 +0000 (16:41 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 04:18:43 +0000 (21:18 -0700)
commitf8d5d1ab40b9189b13266a169d504c3421398710
tree10d778535fe3010b6fc5d64a4b9f9af4e9651c69
parent505ed3fbc1ff20720d2419a62626b2c3247a036f
ofproto: Eliminate 'ofproto_node' member from struct rule.

The ofproto_node member is convenient for collecting lists of rules, but
it is also challenging for concurrency because only a single thread at a
time can put a given rule on a list.  This commit eliminates the
ofproto_node member and introduces a new 'struct rule_collection' that
can be use in a thread-safe manner.

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