From 9df6a67988a32ad65e5b358f460bacf9b4cf34a2 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Sat, 29 Oct 2011 20:31:00 -0700 Subject: [PATCH] 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. --- lib/meta-flow.h | 9 ++++++--- 1 file 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. */ -- 2.30.2