diff options
author | William Tu <u9012063@gmail.com> | 2019-07-01 12:45:22 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-07-03 12:58:57 -0700 |
commit | a3173ee1476840aaa6d90640169bd276568ff4c1 (patch) | |
tree | 148580f1131908b1e796c8cf0fa0ca3313bcaffd /lib | |
parent | ec7a138d88b24db77e2142d149b7b42a45eb1cdc (diff) | |
download | openvswitch-a3173ee1476840aaa6d90640169bd276568ff4c1.tar.gz |
tunnel: Add layer 2 IPv6 GRE encapsulation support.
The patch adds ip6gre support. Tunnel type 'ip6gre' with packet_type=
legacy_l2 is a layer 2 GRE tunnel over IPv6, carrying inner ethernet packets
and encap with GRE header with outer IPv6 header. Encapsulation of layer 3
packet over IPv6 GRE, ip6gre, is not supported yet. I tested it by running:
# make check-kernel TESTSUITEFLAGS='-k ip6gre'
under kernel 5.2 and for userspace:
# make check TESTSUITEFLAGS='-k ip6gre'
Tested-by: Greg Rose <gvrose8192@gmail.com>
Tested-at: https://travis-ci.org/gvrose8192/ovs-experimental/builds/552977116
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpif-netlink-rtnl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/dpif-netlink-rtnl.c b/lib/dpif-netlink-rtnl.c index 2e23a8c14..582274c46 100644 --- a/lib/dpif-netlink-rtnl.c +++ b/lib/dpif-netlink-rtnl.c @@ -104,7 +104,13 @@ vport_type_to_kind(enum ovs_vport_type type, case OVS_VPORT_TYPE_IP6ERSPAN: return "ip6erspan"; case OVS_VPORT_TYPE_IP6GRE: - return "ip6gre"; + if (tnl_cfg->pt_mode == NETDEV_PT_LEGACY_L2) { + return "ip6gretap"; + } else if (tnl_cfg->pt_mode == NETDEV_PT_LEGACY_L3) { + return NULL; + } else { + return NULL; + } case OVS_VPORT_TYPE_NETDEV: case OVS_VPORT_TYPE_INTERNAL: case OVS_VPORT_TYPE_LISP: |