2 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(C) 2019 Marvell International Ltd.
10 #include <rte_byteorder.h>
20 struct rte_higig2_frc {
21 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
34 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
53 * higig2 ppt type0 header
55 struct rte_higig2_ppt_type0 {
56 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
58 uint32_t mirror_done:1;
59 uint32_t mirror_only:1;
60 uint32_t ingress_tagged:1;
64 uint32_t label_present:1;
76 uint32_t hdr_ext_length:3;
77 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
80 uint32_t ingress_tagged:1;
81 uint32_t mirror_only:1;
82 uint32_t mirror_done:1;
86 uint32_t label_present:1;
96 uint32_t hdr_ext_length:3;
104 * higig2 ppt type1 header.
107 struct rte_higig2_ppt_type1 {
108 uint16_t classification;
111 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
117 uint16_t hdr_ext_len:3;
118 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
123 uint16_t hdr_ext_len:3;
133 struct rte_higig2_hdr {
134 struct rte_higig2_frc fcr;
136 struct rte_higig2_ppt_type0 ppt0;
137 struct rte_higig2_ppt_type1 ppt1;
145 #endif /* RTE_HIGIG_H_ */