5#ifndef _RTE_PMD_IAVF_H_
6#define _RTE_PMD_IAVF_H_
86extern int rte_pmd_ifd_dynfield_proto_xtr_metadata_offs;
89extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_vlan_mask;
90extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask;
91extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask;
92extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask;
93extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_tcp_mask;
94extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask;
95extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipsec_crypto_said_mask;
100#define RTE_PMD_IFD_DYNF_PROTO_XTR_METADATA(m) \
101 RTE_MBUF_DYNFIELD((m), \
102 rte_pmd_ifd_dynfield_proto_xtr_metadata_offs, \
109#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_VLAN \
110 (rte_pmd_ifd_dynflag_proto_xtr_vlan_mask)
116#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV4 \
117 (rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask)
123#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6 \
124 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask)
130#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW \
131 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask)
137#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_TCP \
138 (rte_pmd_ifd_dynflag_proto_xtr_tcp_mask)
144#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET \
145 (rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask)
158 return rte_pmd_ifd_dynfield_proto_xtr_metadata_offs != -1;
194 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
195 "vlan,stag=%u:%u:%u,ctag=%u:%u:%u",
196 data.raw.data0, data.raw.data1,
204 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
205 "ipv4,ver=%u,hdrlen=%u,tos=%u,ttl=%u,proto=%u",
206 data.raw.data0, data.raw.data1,
213 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
214 "ipv6,ver=%u,tc=%u,flow_hi4=0x%x,nexthdr=%u,hoplimit=%u",
215 data.raw.data0, data.raw.data1,
222 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
223 "ipv6_flow,ver=%u,tc=%u,flow=0x%x%04x",
224 data.raw.data0, data.raw.data1,
225 data.ipv6_flow.version,
227 data.ipv6_flow.flowhi4,
228 data.ipv6_flow.flowlo16);
230 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
231 "tcp,doff=%u,flags=%s%s%s%s%s%s%s%s",
232 data.raw.data0, data.raw.data1,
234 data.tcp.cwr ?
"C" :
"",
235 data.tcp.ece ?
"E" :
"",
236 data.tcp.urg ?
"U" :
"",
237 data.tcp.ack ?
"A" :
"",
238 data.tcp.psh ?
"P" :
"",
239 data.tcp.rst ?
"R" :
"",
240 data.tcp.syn ?
"S" :
"",
241 data.tcp.fin ?
"F" :
"");
243 printf(
" - Flexible descriptor's Extraction: ip_offset=%u",
#define __rte_always_inline
static __rte_experimental void rte_pmd_ifd_dump_proto_xtr_metadata(struct rte_mbuf *m)
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_VLAN
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV4
static __rte_experimental __rte_always_inline uint32_t rte_pmd_ifd_dynf_proto_xtr_metadata_get(struct rte_mbuf *m)
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_TCP
#define RTE_PMD_IFD_DYNF_PROTO_XTR_METADATA(m)
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6
static __rte_experimental __rte_always_inline int rte_pmd_ifd_dynf_proto_xtr_metadata_avail(void)