[ovs-dev] [PATCH 2/2] ofproto: Wildcard TTL on IP tunnels

Haggai Eran haggaie at mellanox.com
Tue Jan 12 15:19:42 UTC 2016


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 at kernel.org>
Cc: Joe Stringer <joe at ovn.org>
Signed-off-by: Haggai Eran <haggaie at mellanox.com>
---
 ofproto/tunnel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c
index b85c2b51aa48..1d449a573705 100644
--- a/ofproto/tunnel.c
+++ b/ofproto/tunnel.c
@@ -369,7 +369,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;
-- 
1.7.11.2




More information about the dev mailing list