classifier: Prepare for "struct cls_rule" needing to be destroyed.
authorBen Pfaff <blp@nicira.com>
Mon, 20 Aug 2012 18:29:43 +0000 (11:29 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Sep 2012 19:24:27 +0000 (12:24 -0700)
commit48d28ac16112f72ef0985ec2d013425202af8f5c
treef98d4df798f2ef071229a61cbcb2abe0e6a18767
parent81a76618be9ea195a1e4a881ba9591728891d10b
classifier: Prepare for "struct cls_rule" needing to be destroyed.

Until now, "struct cls_rule" didn't own any data outside its own memory
block.  An upcoming commit will make "struct cls_rule" sometimes own blocks
of memory, so it needs "destroy" and to a lesser extent "clone" functions.
This commit adds these in advance, even though they are mostly no-ops, to
make it possible to separately review the memory management.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/classifier.c
lib/classifier.h
ofproto/ofproto.c
tests/test-classifier.c
utilities/ovs-ofctl.c