Skip to content

Commit

Permalink
netlink: removed incorrect optimization
Browse files Browse the repository at this point in the history
This optimization caused FLOW_TNL_F_UDPIF flag not to be used in
hash calculation for geneve tunnel when revalidating flows which
resulted in different cache hash values and incorrect behaviour.

Reported-at: antrea-io/antrea#897
Signed-off-by: Toms Atteka <cpp.code.lv@gmail.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
TomCodeLV authored and ovsrobot committed Nov 20, 2020
1 parent 7bfb195 commit 9a45473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tun-metadata.c
Expand Up @@ -828,7 +828,7 @@ tun_metadata_to_geneve_nlattr(const struct flow_tnl *tun,
} else {
tun_metadata_to_geneve_nlattr_mask(key, tun, flow, b);
}
} else if (flow->metadata.present.len || is_mask) {
} else {
nl_msg_put_unspec(b, OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS,
tun->metadata.opts.gnv,
flow->metadata.present.len);
Expand Down

0 comments on commit 9a45473

Please sign in to comment.