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 00:43:01 +0000 (17:43 -0700)
commita8e547c1ef6ff83adab8f0caaccd46fd4a6418d6
treeff6373cd50e2957abd9ff9ad71bac93083df7421
parenta9b22b7f1757c93b3d540c4c43d35d56b4e17c57
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