Re: [ovs-dev] [PATCH] ofproto-dpif: Expose datapath ND Extensions capability to ovsdb

2019-11-22 Thread Ben Pfaff
On Fri, Nov 22, 2019 at 03:09:02PM -0300, Flavio Leitner wrote:
> 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 

Thanks!  Applied to master.
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


[ovs-dev] [PATCH] ofproto-dpif: Expose datapath ND Extensions capability to ovsdb

2019-11-22 Thread Flavio Leitner
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 
---
 ofproto/ofproto-dpif.c | 1 +
 vswitchd/vswitch.xml   | 5 +
 2 files changed, 6 insertions(+)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 5360e7209..2cd786a16 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -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");
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index d4cc3b9ed..09e7bdf5f 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -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.
   
+  
+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.
+  
   
 
   When Open vSwitch translates actions from OpenFlow into the datapath
-- 
2.23.0

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev