RE: [PATCH v3] net: add bit fields to IPv6 header definition

2024-06-18 Thread Morten Brørup
> struct rte_ipv6_hdr { > - rte_be32_t vtc_flow;/**< IP version, traffic class & flow label. > */ > + union { > + rte_be32_t vtc_flow;/**< IP version, traffic class & > flow > label. */ > + __extension__ > + struct { > +#if RTE_BYTE_ORDER ==

[PATCH v3] net: add bit fields to IPv6 header definition

2024-06-18 Thread Gregory Etelson
DPDK IPv6 header definition combined the `version`, `traffic class` and `flow label` header fields into a single 32 bits structure member `vtc_flow`. The patch expands IPv6 header definition with dedicated structure members for the `version`, `traffic class` and `flow label` fields. The `traffic c