For the series:

Acked-by: Mark Michelson <[email protected]>

On 5/31/23 16:10, Ihar Hrachyshka wrote:
This will be used in a later patch to calculate tunneling overhead for
effective path MTU.

Acked-by: Dumitru Ceara <[email protected]>
Signed-off-by: Ihar Hrachyshka <[email protected]>
Signed-off-by: Mark Michelson <[email protected]>
(cherry picked from commit 935034b4065b3ad052aa2b0d711254db53fcb938)
(cherry picked from commit c7016446863adc074d14464c4206f86378c96a54)
(cherry picked from commit d65f58edd94268438a8dcf75438c23cb11493216)
---
  controller/local_data.c | 2 ++
  controller/local_data.h | 1 +
  2 files changed, 3 insertions(+)

diff --git a/controller/local_data.c b/controller/local_data.c
index 035f10fff..0c301b8e8 100644
--- a/controller/local_data.c
+++ b/controller/local_data.c
@@ -22,6 +22,7 @@
  #include "lib/util.h"
  #include "lib/vswitch-idl.h"
  #include "openvswitch/vlog.h"
+#include "socket-util.h"
/* OVN includes. */
  #include "encaps.h"
@@ -447,6 +448,7 @@ local_nonvif_data_run(const struct ovsrec_bridge *br_int,
                  tun->chassis_id = xstrdup(tunnel_id);
                  tun->ofport = u16_to_ofp(ofport);
                  tun->type = tunnel_type;
+                tun->is_ipv6 = ip ? addr_is_ipv6(ip) : false;
free(hash_id);
                  free(ip);
diff --git a/controller/local_data.h b/controller/local_data.h
index b5429eb58..7dc53992a 100644
--- a/controller/local_data.h
+++ b/controller/local_data.h
@@ -132,6 +132,7 @@ struct chassis_tunnel {
      char *chassis_id;
      ofp_port_t ofport;
      enum chassis_tunnel_type type;
+    bool is_ipv6;
  };
void local_nonvif_data_run(const struct ovsrec_bridge *br_int,

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to