[PATCH v6 8/8] net: mark all big endian types
Thomas Monjalon
thomas at monjalon.net
Thu Feb 2 18:20:28 CET 2023
02/02/2023 13:45, Ferruh Yigit:
> --- a/lib/ethdev/rte_flow.h
> +++ b/lib/ethdev/rte_flow.h
> @@ -642,8 +642,8 @@ struct rte_flow_item_higig2_hdr {
> static const struct rte_flow_item_higig2_hdr rte_flow_item_higig2_hdr_mask = {
> .hdr = {
> .ppt1 = {
> - .classification = 0xffff,
> - .vid = 0xfff,
> + .classification = RTE_BE16(0xffff),
> + .vid = RTE_BE16(0xfff),
0xffff could be UINT16_MAX
More information about the dev
mailing list