From: Justin Pettit <jpettit@nicira.com>
Date: Sun, 30 Oct 2011 03:31:00 +0000 (-0700)
Subject: meta-flow: Update mf_field description of size.
X-Git-Tag: v1.4.0~208
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9df6a67988a32ad65e5b358f460bacf9b4cf34a2;p=sliver-openvswitch.git

meta-flow: Update mf_field description of size.

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.
---

diff --git a/lib/meta-flow.h b/lib/meta-flow.h
index 1242f9ff3..9f3b2eecc 100644
--- a/lib/meta-flow.h
+++ b/lib/meta-flow.h
@@ -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. */