diff options
author | Jesse Gross <jesse@nicira.com> | 2010-08-14 12:25:58 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2010-08-20 19:43:06 -0700 |
commit | 16e9d4f64f4ad7adf3e5f619e65a2045282b3969 (patch) | |
tree | 9bf05235d4a40796135b1c01931439c4b41fb41b /include | |
parent | bd1bcd39a51c6110a94392ab1551b36b8df6bc59 (diff) |
gre: Don't require incoming checksum.
The current meaning of the GRE checksum option is to include
checksums on transmit and require packets to have them on receive.
In addition, incoming packets with checksums are always validated
regardless of this option. Requiring checksums on receive creates
surprising behavior and interoperability issues. This disables the
requirement on receive. The new behavior is that the sender decides
whether to checksum packets and the receiver will validate packets
with checksums (similar to UDP).
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/gre.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/openvswitch/gre.h b/include/openvswitch/gre.h index 396a67d9..a9ac1d98 100644 --- a/include/openvswitch/gre.h +++ b/include/openvswitch/gre.h @@ -42,8 +42,7 @@ #include <linux/types.h> -#define GRE_F_IN_CSUM (1 << 0) /* Require incoming packets to have checksums. */ -#define GRE_F_OUT_CSUM (1 << 1) /* Checksum outgoing packets. */ +#define GRE_F_CSUM (1 << 1) /* Checksum packets. */ #define GRE_F_IN_KEY_MATCH (1 << 2) /* Store the key in tun_id to match in flow table. */ #define GRE_F_OUT_KEY_ACTION (1 << 3) /* Get the key from a SET_TUNNEL action. */ #define GRE_F_TOS_INHERIT (1 << 4) /* Inherit the ToS from the inner packet. */ |