X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev-tunnel.c;h=fdc1d976a4fc493bd673dafcdc6c6bade0bc8751;hb=e6494c64e35f62411f770be086ba6a0914afaf5d;hp=d0ecd98e204e7e603f6f392f570a282aebcf0292;hpb=a28716da6f6043ede3c1550906b9d8cd0f1d1b32;p=openvswitch diff --git a/lib/netdev-tunnel.c b/lib/netdev-tunnel.c index d0ecd98e..fdc1d976 100644 --- a/lib/netdev-tunnel.c +++ b/lib/netdev-tunnel.c @@ -66,6 +66,7 @@ parse_config(const char *name, const char *type, const struct shash *args, memset(config, 0, sizeof *config); config->flags |= TNL_F_PMTUD; + config->flags |= TNL_F_HDR_CACHE; SHASH_FOR_EACH (node, args) { if (!strcmp(node->name, "remote_ip")) { @@ -121,6 +122,10 @@ parse_config(const char *name, const char *type, const struct shash *args, if (!strcmp(node->data, "false")) { config->flags &= ~TNL_F_PMTUD; } + } else if (!strcmp(node->name, "header_cache")) { + if (!strcmp(node->data, "false")) { + config->flags &= ~TNL_F_HDR_CACHE; + } } else { VLOG_WARN("%s: unknown %s argument '%s'", name, type, node->name); }