summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Evans <aevans@nicira.com>2011-04-29 17:05:58 -0700
committerAndrew Evans <aevans@nicira.com>2011-04-29 17:05:58 -0700
commit66409d1bccbdddd8833f74876a1e7ef250034d4e (patch)
treefeab460d2ddfb860ae80312a14fcaf6e47a39787 /include
parent8522b383863cbc8f0d530fc7d44c0643dcac541d (diff)
downloadopenvswitch-66409d1bccbdddd8833f74876a1e7ef250034d4e.tar.gz
tunneling: Add df_default and df_inherit tunnel options.
Split existing pmtud tunnel option's functionality into three. Existing pmtud option still exists, but now governs only whether datapath sends ICMP frag needed messages. New df_inherit option controls whether DF bit is copied from packet inner header to outer tunnel header. New df_default option controls whether DF bit is set if inner packet isn't IP or if df_inherit is disabled. Suggested-by: Jesse Gross <jesse@nicira.com> Signed-off-by: Andrew Evans <aevans@nicira.com> Feature #5456.
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/tunnel.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/openvswitch/tunnel.h b/include/openvswitch/tunnel.h
index a394f8a8d..5e2e91644 100644
--- a/include/openvswitch/tunnel.h
+++ b/include/openvswitch/tunnel.h
@@ -65,8 +65,10 @@ enum {
#define TNL_F_CSUM (1 << 0) /* Checksum packets. */
#define TNL_F_TOS_INHERIT (1 << 1) /* Inherit the ToS from the inner packet. */
#define TNL_F_TTL_INHERIT (1 << 2) /* Inherit the TTL from the inner packet. */
-#define TNL_F_PMTUD (1 << 3) /* Enable path MTU discovery. */
-#define TNL_F_HDR_CACHE (1 << 4) /* Enable tunnel header caching. */
-#define TNL_F_IPSEC (1 << 5) /* Traffic is IPsec encrypted. */
+#define TNL_F_DF_INHERIT (1 << 3) /* Inherit the DF bit from the inner packet. */
+#define TNL_F_DF_DEFAULT (1 << 4) /* Set the DF bit if inherit off or not IP. */
+#define TNL_F_PMTUD (1 << 5) /* Enable path MTU discovery. */
+#define TNL_F_HDR_CACHE (1 << 6) /* Enable tunnel header caching. */
+#define TNL_F_IPSEC (1 << 7) /* Traffic is IPsec encrypted. */
#endif /* openvswitch/tunnel.h */