ofproto: Break subrules out of "struct rule" into new "struct facet".
authorBen Pfaff <blp@nicira.com>
Fri, 12 Nov 2010 22:45:57 +0000 (14:45 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Nov 2010 22:45:57 +0000 (14:45 -0800)
commitbcf8411196260599d9b2a405627c1a867f43eb03
treeb62e3ae08600da764472bce664128fe99c93d883
parenta339aa8162f4ac29784bc4e35612137f9cb1a025
ofproto: Break subrules out of "struct rule" into new "struct facet".

Until now, there have been three types of struct rule:

   - An OpenFlow rule with wildcards, that may have exact-match "subrules".

   - An OpenFlow rule without wildcards.

   - A subrule that has no wildcards.

This is at best confusing.  At worst, it leads to bugs.

This commit changes the situation to:

   - "struct rule" represents an OpenFlow rule, with or without wildcards.

   - "struct facet" is what was called a subrule before.

This commit is intended to be more or less the minimal patch necessary to
implement this change.  Followup commits will further improve the code.
ofproto/ofproto.c