summaryrefslogtreecommitdiff
path: root/ofproto/tunnel.c
diff options
context:
space:
mode:
authorHaggai Eran <haggaie@mellanox.com>2016-01-14 13:29:08 +0200
committerJesse Gross <jesse@kernel.org>2016-01-19 13:14:27 -0800
commitfba633f13c8351b9c2c4bd0be2e9281fd99a34b9 (patch)
treec5175a8ba05c71aa4a195de2bb67ff793dc6f4cc /ofproto/tunnel.c
parent00ec40176a86e72e60a55d2972d2eaa374b15650 (diff)
downloadopenvswitch-fba633f13c8351b9c2c4bd0be2e9281fd99a34b9.tar.gz
ofproto: Wildcard TTL on IP tunnels
There is no need to set the mask on the outer header IP TTL [1]. The only requirement is that the TTL will be non-zero. Clear the mask in tnl_wc_init(). [1] OVS VXLAN decap rule has full match on TTL for the outer headers? http://www.spinics.net/lists/netdev/msg351961.html Cc: Jesse Gross <jesse@kernel.org> Cc: Joe Stringer <joe@ovn.org> Signed-off-by: Haggai Eran <haggaie@mellanox.com> Signed-off-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'ofproto/tunnel.c')
-rw-r--r--ofproto/tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c
index 5cf6c7540..24b717a3c 100644
--- a/ofproto/tunnel.c
+++ b/ofproto/tunnel.c
@@ -373,7 +373,7 @@ tnl_wc_init(struct flow *flow, struct flow_wildcards *wc)
FLOW_TNL_F_CSUM |
FLOW_TNL_F_KEY);
wc->masks.tunnel.ip_tos = UINT8_MAX;
- wc->masks.tunnel.ip_ttl = UINT8_MAX;
+ wc->masks.tunnel.ip_ttl = 0;
/* The tp_src and tp_dst members in flow_tnl are set to be always
* wildcarded, not to unwildcard them here. */
wc->masks.tunnel.tp_src = 0;