[ovs-dev] [PATCH V2 38/41] tunnel: add support for erspan and ip6erspan type.
Greg Rose
gvrose8192 at gmail.com
Fri May 18 01:57:51 UTC 2018
From: William Tu <u9012063 at gmail.com>
This patch adds support for erspan and ip6erspan.
Signed-off-by: William Tu <u9012063 at gmail.com>
---
lib/odp-util.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 2109fac..d7b5bcd 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -2882,7 +2882,8 @@ tun_key_to_attr(struct ofpbuf *a, const struct flow_tnl *tun_key,
nl_msg_end_nested(a, vxlan_opts_ofs);
}
tun_metadata_to_geneve_nlattr(tun_key, tun_flow_key, key_buf, a);
- if (tun_key->erspan_ver) {
+ if (!tnl_type || !strcmp(tnl_type, "erspan") ||
+ !strcmp(tnl_type, "ip6erspan")) {
struct erspan_metadata opts;
opts.version = tun_key->erspan_ver;
--
1.8.3.1
More information about the dev
mailing list