meta-flow: Update mf_field description of size.
authorJustin Pettit <jpettit@nicira.com>
Sun, 30 Oct 2011 03:31:00 +0000 (20:31 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 4 Nov 2011 20:08:43 +0000 (13:08 -0700)
Commit 7257b5 (Implement new fragment handling policy.) added a new
"is_frag" meta-field that used fewer bits than the width of the field.
A comment in mf_field lists these cases, but "is_frag" wasn't included.
This commit updates that.

lib/meta-flow.h

index 1242f9f..9f3b2ee 100644 (file)
@@ -157,9 +157,12 @@ struct mf_field {
 
     /* Size.
      *
-     * Most fields have n_bytes * 8 == n_bits.  There are only two exceptions
-     * currently: "dl_vlan" is 2 bytes but only 12 bits, and "dl_vlan_pcp" is
-     * 1 byte but only 3 bits. */
+     * Most fields have n_bytes * 8 == n_bits.  There are a few exceptions:
+     *
+     *     - "dl_vlan" is 2 bytes but only 12 bits.
+     *     - "dl_vlan_pcp" is 1 byte but only 3 bits.
+     *     - "is_frag" is 1 byte but only 2 bits.
+     */
     unsigned int n_bytes;       /* Width of the field in bytes. */
     unsigned int n_bits;        /* Number of significant bits in field. */