5 #ifndef _RTE_PMD_ICE_H_
6 #define _RTE_PMD_ICE_H_
84 extern int rte_net_ice_dynfield_proto_xtr_metadata_offs;
87 extern uint64_t rte_net_ice_dynflag_proto_xtr_vlan_mask;
88 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv4_mask;
89 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv6_mask;
90 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask;
91 extern uint64_t rte_net_ice_dynflag_proto_xtr_tcp_mask;
96 #define RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(m) \
97 RTE_MBUF_DYNFIELD((m), \
98 rte_net_ice_dynfield_proto_xtr_metadata_offs, \
105 #define RTE_PKT_RX_DYNF_PROTO_XTR_VLAN \
106 (rte_net_ice_dynflag_proto_xtr_vlan_mask)
112 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV4 \
113 (rte_net_ice_dynflag_proto_xtr_ipv4_mask)
119 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6 \
120 (rte_net_ice_dynflag_proto_xtr_ipv6_mask)
126 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW \
127 (rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask)
133 #define RTE_PKT_RX_DYNF_PROTO_XTR_TCP \
134 (rte_net_ice_dynflag_proto_xtr_tcp_mask)
146 return rte_net_ice_dynfield_proto_xtr_metadata_offs != -1;
182 printf(
" - Protocol Extraction:[0x%04x:0x%04x],vlan,stag=%u:%u:%u,ctag=%u:%u:%u",
183 data.raw.data0, data.raw.data1,
191 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv4,ver=%u,hdrlen=%u,tos=%u,ttl=%u,proto=%u",
192 data.raw.data0, data.raw.data1,
199 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv6,ver=%u,tc=%u,flow_hi4=0x%x,nexthdr=%u,hoplimit=%u",
200 data.raw.data0, data.raw.data1,
207 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv6_flow,ver=%u,tc=%u,flow=0x%x%04x",
208 data.raw.data0, data.raw.data1,
209 data.ipv6_flow.version,
211 data.ipv6_flow.flowhi4,
212 data.ipv6_flow.flowlo16);
214 printf(
" - Protocol Extraction:[0x%04x:0x%04x],tcp,doff=%u,flags=%s%s%s%s%s%s%s%s",
215 data.raw.data0, data.raw.data1,
217 data.tcp.cwr ?
"C" :
"",
218 data.tcp.ece ?
"E" :
"",
219 data.tcp.urg ?
"U" :
"",
220 data.tcp.ack ?
"A" :
"",
221 data.tcp.psh ?
"P" :
"",
222 data.tcp.rst ?
"R" :
"",
223 data.tcp.syn ?
"S" :
"",
224 data.tcp.fin ?
"F" :
"");
#define __rte_always_inline
static __rte_experimental __rte_always_inline int rte_net_ice_dynf_proto_xtr_metadata_avail(void)
static __rte_experimental __rte_always_inline uint32_t rte_net_ice_dynf_proto_xtr_metadata_get(struct rte_mbuf *m)
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6
static __rte_experimental void rte_net_ice_dump_proto_xtr_metadata(struct rte_mbuf *m)
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV4
#define RTE_PKT_RX_DYNF_PROTO_XTR_TCP
#define RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(m)
#define RTE_PKT_RX_DYNF_PROTO_XTR_VLAN