Signed-off-by: Justin Pettit <jpet...@ovn.org>
---
 ovn/controller/lflow.c |  3 +++
 ovn/ovn-sb.xml         | 12 ++++++++++++
 tests/test-ovn.c       |  3 +++
 3 files changed, 18 insertions(+)

diff --git a/ovn/controller/lflow.c b/ovn/controller/lflow.c
index 00d1d6e..b77b364 100644
--- a/ovn/controller/lflow.c
+++ b/ovn/controller/lflow.c
@@ -66,6 +66,9 @@ lflow_init(void)
     MFF_LOG_REGS;
 #undef MFF_LOG_REG
 
+    expr_symtab_add_field(&symtab, "xxreg0", MFF_XXREG0, NULL, false);
+    expr_symtab_add_field(&symtab, "xxreg1", MFF_XXREG1, NULL, false);
+
     /* Connection tracking state. */
     expr_symtab_add_field(&symtab, "ct_mark", MFF_CT_MARK, NULL, false);
     expr_symtab_add_field(&symtab, "ct_label", MFF_CT_LABEL, NULL, false);
diff --git a/ovn/ovn-sb.xml b/ovn/ovn-sb.xml
index 00a92e0..7b45bbb 100644
--- a/ovn/ovn-sb.xml
+++ b/ovn/ovn-sb.xml
@@ -738,8 +738,20 @@
         symbols, only names within the flow's logical datapath may be used.
       </p>
 
+      <p>
+        The <code>reg</code><var>X</var> symbols are 32-bit integers.
+        The <code>xxreg</code><var>X</var> symbols are 128-bit integers,
+        which overlay four of the 32-bit registers: <code>xxreg0</code>
+        overlays <code>reg0</code> through <code>reg3</code>, with
+        <code>reg0</code> supplying the most-significant bits of
+        <code>xxreg0</code> and <code>reg3</code> the least-signficant.
+        <code>xxreg1</code> similarly overlays <code>reg4</code> through
+        <code>reg7</code>.
+      </p>
+
       <ul>
         <li><code>reg0</code>...<code>reg9</code></li>
+        <li><code>xxreg0</code> <code>xxreg1</code></li>
         <li><code>inport</code> <code>outport</code></li>
         <li><code>eth.src</code> <code>eth.dst</code> 
<code>eth.type</code></li>
         <li><code>vlan.tci</code> <code>vlan.vid</code> <code>vlan.pcp</code> 
<code>vlan.present</code></li>
diff --git a/tests/test-ovn.c b/tests/test-ovn.c
index a3357a3..fd004c9 100644
--- a/tests/test-ovn.c
+++ b/tests/test-ovn.c
@@ -146,6 +146,9 @@ create_symtab(struct shash *symtab)
     expr_symtab_add_string(symtab, "inport", MFF_REG14, NULL);
     expr_symtab_add_string(symtab, "outport", MFF_REG15, NULL);
 
+    expr_symtab_add_field(symtab, "xxreg0", MFF_XXREG0, NULL, false);
+    expr_symtab_add_field(symtab, "xxreg1", MFF_XXREG1, NULL, false);
+
     expr_symtab_add_field(symtab, "xreg0", MFF_XREG0, NULL, false);
     expr_symtab_add_field(symtab, "xreg1", MFF_XREG1, NULL, false);
     expr_symtab_add_field(symtab, "xreg2", MFF_XREG2, NULL, false);
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to