Skip to content

Commit

Permalink
Track ip version of tunnel in chassis_tunnel struct
Browse files Browse the repository at this point in the history
This will be used in a later patch to calculate tunneling overhead for
effective path MTU.

Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
booxter authored and putnopvut committed May 30, 2023
1 parent 4b10571 commit 06d8db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/local_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions controller/local_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,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,
Expand Down

0 comments on commit 06d8db6

Please sign in to comment.