diff options
| author | Andrew Evans <aevans@nicira.com> | 2011-04-29 17:05:58 -0700 |
|---|---|---|
| committer | Andrew Evans <aevans@nicira.com> | 2011-04-29 17:05:58 -0700 |
| commit | 66409d1bccbdddd8833f74876a1e7ef250034d4e (patch) | |
| tree | feab460d2ddfb860ae80312a14fcaf6e47a39787 /include | |
| parent | 8522b383863cbc8f0d530fc7d44c0643dcac541d (diff) | |
| download | openvswitch-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.h | 8 |
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 */ |
