5 #ifndef _RTE_PMD_ICE_H_ 6 #define _RTE_PMD_ICE_H_ 86 extern int rte_net_ice_dynfield_proto_xtr_metadata_offs;
89 extern uint64_t rte_net_ice_dynflag_proto_xtr_vlan_mask;
90 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv4_mask;
91 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv6_mask;
92 extern uint64_t rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask;
93 extern uint64_t rte_net_ice_dynflag_proto_xtr_tcp_mask;
94 extern uint64_t rte_net_ice_dynflag_proto_xtr_ip_offset_mask;
99 #define RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(m) \ 100 RTE_MBUF_DYNFIELD((m), \ 101 rte_net_ice_dynfield_proto_xtr_metadata_offs, \ 108 #define RTE_PKT_RX_DYNF_PROTO_XTR_VLAN \ 109 (rte_net_ice_dynflag_proto_xtr_vlan_mask) 115 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV4 \ 116 (rte_net_ice_dynflag_proto_xtr_ipv4_mask) 122 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6 \ 123 (rte_net_ice_dynflag_proto_xtr_ipv6_mask) 129 #define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW \ 130 (rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask) 136 #define RTE_PKT_RX_DYNF_PROTO_XTR_TCP \ 137 (rte_net_ice_dynflag_proto_xtr_tcp_mask) 143 #define RTE_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET \ 144 (rte_net_ice_dynflag_proto_xtr_ip_offset_mask) 156 return rte_net_ice_dynfield_proto_xtr_metadata_offs != -1;
192 printf(
" - Protocol Extraction:[0x%04x:0x%04x],vlan,stag=%u:%u:%u,ctag=%u:%u:%u",
193 data.raw.data0, data.raw.data1,
201 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv4,ver=%u,hdrlen=%u,tos=%u,ttl=%u,proto=%u",
202 data.raw.data0, data.raw.data1,
209 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv6,ver=%u,tc=%u,flow_hi4=0x%x,nexthdr=%u,hoplimit=%u",
210 data.raw.data0, data.raw.data1,
217 printf(
" - Protocol Extraction:[0x%04x:0x%04x],ipv6_flow,ver=%u,tc=%u,flow=0x%x%04x",
218 data.raw.data0, data.raw.data1,
219 data.ipv6_flow.version,
221 data.ipv6_flow.flowhi4,
222 data.ipv6_flow.flowlo16);
224 printf(
" - Protocol Extraction:[0x%04x:0x%04x],tcp,doff=%u,flags=%s%s%s%s%s%s%s%s",
225 data.raw.data0, data.raw.data1,
227 data.tcp.cwr ?
"C" :
"",
228 data.tcp.ece ?
"E" :
"",
229 data.tcp.urg ?
"U" :
"",
230 data.tcp.ack ?
"A" :
"",
231 data.tcp.psh ?
"P" :
"",
232 data.tcp.rst ?
"R" :
"",
233 data.tcp.syn ?
"S" :
"",
234 data.tcp.fin ?
"F" :
"");
236 printf(
" - Protocol Offset:ip_offset=%u",
#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_IP_OFFSET
#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