5 #ifndef _RTE_PMD_IAVF_H_ 6 #define _RTE_PMD_IAVF_H_ 18 #include <rte_compat.h> 87 extern int rte_pmd_ifd_dynfield_proto_xtr_metadata_offs;
90 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_vlan_mask;
91 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask;
92 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask;
93 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask;
94 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_tcp_mask;
95 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask;
96 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipsec_crypto_said_mask;
101 #define RTE_PMD_IFD_DYNF_PROTO_XTR_METADATA(m) \ 102 RTE_MBUF_DYNFIELD((m), \ 103 rte_pmd_ifd_dynfield_proto_xtr_metadata_offs, \ 110 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_VLAN \ 111 (rte_pmd_ifd_dynflag_proto_xtr_vlan_mask) 117 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV4 \ 118 (rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask) 124 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6 \ 125 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask) 131 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW \ 132 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask) 138 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_TCP \ 139 (rte_pmd_ifd_dynflag_proto_xtr_tcp_mask) 145 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET \ 146 (rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask) 159 return rte_pmd_ifd_dynfield_proto_xtr_metadata_offs != -1;
195 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x]," 196 "vlan,stag=%u:%u:%u,ctag=%u:%u:%u",
197 data.raw.data0, data.raw.data1,
205 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x]," 206 "ipv4,ver=%u,hdrlen=%u,tos=%u,ttl=%u,proto=%u",
207 data.raw.data0, data.raw.data1,
214 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x]," 215 "ipv6,ver=%u,tc=%u,flow_hi4=0x%x,nexthdr=%u,hoplimit=%u",
216 data.raw.data0, data.raw.data1,
223 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x]," 224 "ipv6_flow,ver=%u,tc=%u,flow=0x%x%04x",
225 data.raw.data0, data.raw.data1,
226 data.ipv6_flow.version,
228 data.ipv6_flow.flowhi4,
229 data.ipv6_flow.flowlo16);
231 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x]," 232 "tcp,doff=%u,flags=%s%s%s%s%s%s%s%s",
233 data.raw.data0, data.raw.data1,
235 data.tcp.cwr ?
"C" :
"",
236 data.tcp.ece ?
"E" :
"",
237 data.tcp.urg ?
"U" :
"",
238 data.tcp.ack ?
"A" :
"",
239 data.tcp.psh ?
"P" :
"",
240 data.tcp.rst ?
"R" :
"",
241 data.tcp.syn ?
"S" :
"",
242 data.tcp.fin ?
"F" :
"");
244 printf(
" - Flexible descriptor's Extraction: ip_offset=%u",
#define __rte_always_inline
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET
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_IPV6
static __rte_experimental __rte_always_inline int rte_pmd_ifd_dynf_proto_xtr_metadata_avail(void)
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW
#define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_TCP
#define RTE_PMD_IFD_DYNF_PROTO_XTR_METADATA(m)
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_IPV4