Skip to content
  • William Tu's avatar
    tunnel: fix tunnel flags set/clear. · 81f9ef5a
    William Tu authored
    
    
    Existing code only set these tunnel flags (df, csum, and key) when the
    flag is set in the output tunnel port, but did not clear when the flag
    is unset.  The patch fixes it by setting and clearing it accordingly.
    
    Two existing testcases need to fix:
    'tunnel - Geneve option present' has no key set up, so we should match
    'flags(df)' instead of 'flags(df|key)'.  The second case
    'tunnel - concomitant IPv6 and IPv4 tunnels' follows the same pattern.
    One additional test case 'tunnel - Mix Geneve/GRE options' is added.
    
    Signed-off-by: default avatarWilliam Tu <u9012063@gmail.com>
    VMWare-BZ: #2019012
    Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
    81f9ef5a