ofproto-dpif: Clarify that 'one_subfacet' may not always be valid.
authorJustin Pettit <jpettit@nicira.com>
Thu, 7 Mar 2013 02:03:54 +0000 (18:03 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 8 Mar 2013 01:40:47 +0000 (17:40 -0800)
Signed-off-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index ff93dc3..228e280 100644 (file)
@@ -487,7 +487,9 @@ struct facet {
 
     /* Storage for a single subfacet, to reduce malloc() time and space
      * overhead.  (A facet always has at least one subfacet and in the common
-     * case has exactly one subfacet.) */
+     * case has exactly one subfacet.  However, 'one_subfacet' may not
+     * always be valid, since it could have been removed after newer
+     * subfacets were pushed onto the 'subfacets' list.) */
     struct subfacet one_subfacet;
 };