aboutsummaryrefslogtreecommitdiff
path: root/lib/meta-flow.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-10-29 20:31:00 -0700
committerJustin Pettit <jpettit@nicira.com>2011-11-04 13:08:43 -0700
commit9df6a67988a32ad65e5b358f460bacf9b4cf34a2 (patch)
tree63aacf87257b08970a9f8839380d06128b839794 /lib/meta-flow.h
parentb3e0370a37daeecc44ddaf03bbd98c2e8ff4513d (diff)
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.
Diffstat (limited to 'lib/meta-flow.h')
-rw-r--r--lib/meta-flow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/meta-flow.h b/lib/meta-flow.h
index 1242f9ff..9f3b2eec 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. */