From: Sean Zhang Date: Fri, 11 Feb 2022 01:45:27 +0000 (+0200) Subject: net: add optional fields in GRE header X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7786991fae06bc1488dcdfde244910d7920207e9;p=dpdk.git net: add optional fields in GRE header There are optional fields in GRE header(checksum/key/sequence), this patch adds definition of structures of the optional fields. Signed-off-by: Sean Zhang Acked-by: Ori Kam --- diff --git a/lib/net/rte_gre.h b/lib/net/rte_gre.h index 5897756b99..6c6aef6fca 100644 --- a/lib/net/rte_gre.h +++ b/lib/net/rte_gre.h @@ -48,6 +48,28 @@ struct rte_gre_hdr { uint16_t proto; /**< Protocol Type */ } __rte_packed; +/** + * Optional field checksum in GRE header + */ +struct rte_gre_hdr_opt_checksum_rsvd { + rte_be16_t checksum; + rte_be16_t reserved1; +} __rte_packed; + +/** + * Optional field key in GRE header + */ +struct rte_gre_hdr_opt_key { + rte_be32_t key; +} __rte_packed; + +/** + * Optional field sequence in GRE header + */ +struct rte_gre_hdr_opt_sequence { + rte_be32_t sequence; +} __rte_packed; + #ifdef __cplusplus } #endif