[PATCH v6 4/8] ethdev: use GRE protocol struct for flow matching
Thomas Monjalon
thomas at monjalon.net
Thu Feb 2 18:16:32 CET 2023
02/02/2023 13:44, Ferruh Yigit:
> --- a/lib/net/rte_gre.h
> +++ b/lib/net/rte_gre.h
> @@ -28,6 +28,8 @@ extern "C" {
> */
> __extension__
> struct rte_gre_hdr {
> + union {
> + struct {
> #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
> uint16_t res2:4; /**< Reserved */
> uint16_t s:1; /**< Sequence Number Present bit */
> @@ -45,6 +47,9 @@ struct rte_gre_hdr {
> uint16_t res3:5; /**< Reserved */
> uint16_t ver:3; /**< Version Number */
> #endif
> + };
> + rte_be16_t c_rsvd0_ver;
> + };
> uint16_t proto; /**< Protocol Type */
Why adding an unioned field c_rsvd0_ver?
More information about the dev
mailing list