From 7dc18ae96d33813a68367e72da5edbdd95d1a35a Mon Sep 17 00:00:00 2001 From: William Tu Date: Tue, 15 May 2018 16:10:48 -0400 Subject: userspace: add erspan tunnel support. ERSPAN is a tunneling protocol based on GRE tunnel. The patch add erspan tunnel support for ovs-vswitchd with userspace datapath. Configuring erspan tunnel is similar to gre tunnel, but with additional erspan's parameters. Matching a flow on erspan's metadata is also supported, see ovs-fields for more details. Signed-off-by: William Tu Signed-off-by: Greg Rose Signed-off-by: Ben Pfaff --- lib/tnl-ports.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/tnl-ports.c') diff --git a/lib/tnl-ports.c b/lib/tnl-ports.c index b814f7a0a..57531794c 100644 --- a/lib/tnl-ports.c +++ b/lib/tnl-ports.c @@ -171,7 +171,8 @@ tnl_type_to_nw_proto(const char type[]) if (!strcmp(type, "stt")) { return IPPROTO_TCP; } - if (!strcmp(type, "gre")) { + if (!strcmp(type, "gre") || !strcmp(type, "erspan") || + !strcmp(type, "ip6erspan")) { return IPPROTO_GRE; } if (!strcmp(type, "vxlan")) { -- cgit v1.2.1