5 #ifndef _RTE_PMD_IAVF_H_
6 #define _RTE_PMD_IAVF_H_
86 extern int rte_pmd_ifd_dynfield_proto_xtr_metadata_offs;
89 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_vlan_mask;
90 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask;
91 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask;
92 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask;
93 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_tcp_mask;
94 extern uint64_t rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask;
99 #define RTE_PMD_IFD_DYNF_PROTO_XTR_METADATA(m) \
100 RTE_MBUF_DYNFIELD((m), \
101 rte_pmd_ifd_dynfield_proto_xtr_metadata_offs, \
108 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_VLAN \
109 (rte_pmd_ifd_dynflag_proto_xtr_vlan_mask)
115 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV4 \
116 (rte_pmd_ifd_dynflag_proto_xtr_ipv4_mask)
122 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6 \
123 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_mask)
129 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW \
130 (rte_pmd_ifd_dynflag_proto_xtr_ipv6_flow_mask)
136 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_TCP \
137 (rte_pmd_ifd_dynflag_proto_xtr_tcp_mask)
143 #define RTE_IAVF_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET \
144 (rte_pmd_ifd_dynflag_proto_xtr_ip_offset_mask)
157 return rte_pmd_ifd_dynfield_proto_xtr_metadata_offs != -1;
193 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
194 "vlan,stag=%u:%u:%u,ctag=%u:%u:%u",
195 data.raw.data0, data.raw.data1,
203 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
204 "ipv4,ver=%u,hdrlen=%u,tos=%u,ttl=%u,proto=%u",
205 data.raw.data0, data.raw.data1,
212 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
213 "ipv6,ver=%u,tc=%u,flow_hi4=0x%x,nexthdr=%u,hoplimit=%u",
214 data.raw.data0, data.raw.data1,
221 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
222 "ipv6_flow,ver=%u,tc=%u,flow=0x%x%04x",
223 data.raw.data0, data.raw.data1,
224 data.ipv6_flow.version,
226 data.ipv6_flow.flowhi4,
227 data.ipv6_flow.flowlo16);
229 printf(
" - Flexible descriptor's Metadata: [0x%04x:0x%04x],"
230 "tcp,doff=%u,flags=%s%s%s%s%s%s%s%s",
231 data.raw.data0, data.raw.data1,
233 data.tcp.cwr ?
"C" :
"",
234 data.tcp.ece ?
"E" :
"",
235 data.tcp.urg ?
"U" :
"",
236 data.tcp.ack ?
"A" :
"",
237 data.tcp.psh ?
"P" :
"",
238 data.tcp.rst ?
"R" :
"",
239 data.tcp.syn ?
"S" :
"",
240 data.tcp.fin ?
"F" :
"");
242 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