]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ofproto-dpif: Expose datapath ND Extensions capability to ovsdb
authorFlavio Leitner <fbl@sysclose.org>
Fri, 22 Nov 2019 18:09:02 +0000 (15:09 -0300)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Nov 2019 22:03:36 +0000 (14:03 -0800)
Document and expose datapath ND Extensions capability to ovsdb.

Fixes: d0d571493 ("ofproto-dpif: Allow IPv6 ND Extensions only if supported")
Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif.c
vswitchd/vswitch.xml

index 5360e7209e5db6fae3ed8425606ffb4e4bc2f409..2cd786a16199be84951ac45484578db4f9efb0b0 100644 (file)
@@ -5532,6 +5532,7 @@ get_datapath_cap(const char *datapath_type, struct smap *cap)
     smap_add(cap, "ct_state_nat", odp.ct_state_nat ? "true" : "false");
     smap_add(cap, "ct_orig_tuple", odp.ct_orig_tuple ? "true" : "false");
     smap_add(cap, "ct_orig_tuple6", odp.ct_orig_tuple6 ? "true" : "false");
+    smap_add(cap, "nd_ext", odp.nd_ext ? "true" : "false");
 
     /* DPIF_SUPPORT_FIELDS */
     smap_add(cap, "masked_set_action", s.masked_set_action ? "true" : "false");
index d4cc3b9ed5c341ac845bd3e4263c72f911a6a913..09e7bdf5f5d28806efb37ce7bee2927e9d8f53c7 100644 (file)
@@ -5828,6 +5828,11 @@ ovs-vsctl add-port br0 p0 -- set Interface p0 type=patch options:peer=p1 \
         packet to be sent to the Open vSwitch slow path, which is likely to
         make it too slow for mirroring traffic in bulk.
       </column>
+      <column name="capabilities" key="nd_ext" type='{"type": "boolean"}'>
+        True if the datapath supports OVS_KEY_ATTR_ND_EXTENSIONS to match on
+        ICMPv6 "ND reserved" and “ND option type“ header fields. If false,
+        the datapath reports error if the feature is used.
+      </column>
       <group title="Clone Actions">
         <p>
           When Open vSwitch translates actions from OpenFlow into the datapath