4 * Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
17 * * Neither the name of Intel Corporation nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 #define RTE_PMD_I40E_RX_MAX_BURST 32
38 #define RTE_PMD_I40E_TX_MAX_BURST 32
40 #define RTE_I40E_VPMD_RX_BURST 32
41 #define RTE_I40E_VPMD_TX_BURST 32
42 #define RTE_I40E_RXQ_REARM_THRESH 32
43 #define RTE_I40E_MAX_RX_BURST RTE_I40E_RXQ_REARM_THRESH
44 #define RTE_I40E_TX_MAX_FREE_BUF_SZ 64
45 #define RTE_I40E_DESCS_PER_LOOP 4
47 #define I40E_RXBUF_SZ_1024 1024
48 #define I40E_RXBUF_SZ_2048 2048
50 /* In none-PXE mode QLEN must be whole number of 32 descriptors. */
51 #define I40E_ALIGN_RING_DESC 32
53 #define I40E_MIN_RING_DESC 64
54 #define I40E_MAX_RING_DESC 4096
56 #define I40E_MIN_TSO_MSS 256
57 #define I40E_MAX_TSO_MSS 9674
59 #define I40E_TX_MAX_SEG UINT8_MAX
60 #define I40E_TX_MAX_MTU_SEG 8
63 #define container_of(ptr, type, member) ({ \
64 typeof(((type *)0)->member)(*__mptr) = (ptr); \
65 (type *)((char *)__mptr - offsetof(type, member)); })
67 #define I40E_TD_CMD (I40E_TX_DESC_CMD_ICRC |\
70 enum i40e_header_split_mode {
71 i40e_header_split_none = 0,
72 i40e_header_split_enabled = 1,
73 i40e_header_split_always = 2,
74 i40e_header_split_reserved
77 #define I40E_HEADER_SPLIT_NONE ((uint8_t)0)
78 #define I40E_HEADER_SPLIT_L2 ((uint8_t)(1 << 0))
79 #define I40E_HEADER_SPLIT_IP ((uint8_t)(1 << 1))
80 #define I40E_HEADER_SPLIT_UDP_TCP ((uint8_t)(1 << 2))
81 #define I40E_HEADER_SPLIT_SCTP ((uint8_t)(1 << 3))
82 #define I40E_HEADER_SPLIT_ALL (I40E_HEADER_SPLIT_L2 | \
83 I40E_HEADER_SPLIT_IP | \
84 I40E_HEADER_SPLIT_UDP_TCP | \
85 I40E_HEADER_SPLIT_SCTP)
87 /* HW desc structure, both 16-byte and 32-byte types are supported */
88 #ifdef RTE_LIBRTE_I40E_16BYTE_RX_DESC
89 #define i40e_rx_desc i40e_16byte_rx_desc
91 #define i40e_rx_desc i40e_32byte_rx_desc
94 struct i40e_rx_entry {
95 struct rte_mbuf *mbuf;
99 * Structure associated with each RX queue.
101 struct i40e_rx_queue {
102 struct rte_mempool *mp; /**< mbuf pool to populate RX ring */
103 volatile union i40e_rx_desc *rx_ring;/**< RX ring virtual address */
104 uint64_t rx_ring_phys_addr; /**< RX ring DMA address */
105 struct i40e_rx_entry *sw_ring; /**< address of RX soft ring */
106 uint16_t nb_rx_desc; /**< number of RX descriptors */
107 uint16_t rx_free_thresh; /**< max free RX desc to hold */
108 uint16_t rx_tail; /**< current value of tail */
109 uint16_t nb_rx_hold; /**< number of held free RX desc */
110 struct rte_mbuf *pkt_first_seg; /**< first segment of current packet */
111 struct rte_mbuf *pkt_last_seg; /**< last segment of current packet */
112 struct rte_mbuf fake_mbuf; /**< dummy mbuf */
113 #ifdef RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC
114 uint16_t rx_nb_avail; /**< number of staged packets ready */
115 uint16_t rx_next_avail; /**< index of next staged packets */
116 uint16_t rx_free_trigger; /**< triggers rx buffer allocation */
117 struct rte_mbuf *rx_stage[RTE_PMD_I40E_RX_MAX_BURST * 2];
120 uint16_t rxrearm_nb; /**< number of remaining to be re-armed */
121 uint16_t rxrearm_start; /**< the idx we start the re-arming from */
122 uint64_t mbuf_initializer; /**< value to init mbufs */
124 uint8_t port_id; /**< device port ID */
125 uint8_t crc_len; /**< 0 if CRC stripped, 4 otherwise */
126 uint16_t queue_id; /**< RX queue index */
127 uint16_t reg_idx; /**< RX queue register index */
128 uint8_t drop_en; /**< if not 0, set register bit */
129 volatile uint8_t *qrx_tail; /**< register address of tail */
130 struct i40e_vsi *vsi; /**< the VSI this queue belongs to */
131 uint16_t rx_buf_len; /* The packet buffer size */
132 uint16_t rx_hdr_len; /* The header buffer size */
133 uint16_t max_pkt_len; /* Maximum packet length */
134 uint8_t hs_mode; /* Header Split mode */
135 bool q_set; /**< indicate if rx queue has been configured */
136 bool rx_deferred_start; /**< don't start this queue in dev start */
137 uint16_t rx_using_sse; /**<flag indicate the usage of vPMD for rx */
138 uint8_t dcb_tc; /**< Traffic class of rx queue */
141 struct i40e_tx_entry {
142 struct rte_mbuf *mbuf;
148 * Structure associated with each TX queue.
150 struct i40e_tx_queue {
151 uint16_t nb_tx_desc; /**< number of TX descriptors */
152 uint64_t tx_ring_phys_addr; /**< TX ring DMA address */
153 volatile struct i40e_tx_desc *tx_ring; /**< TX ring virtual address */
154 struct i40e_tx_entry *sw_ring; /**< virtual address of SW ring */
155 uint16_t tx_tail; /**< current value of tail register */
156 volatile uint8_t *qtx_tail; /**< register address of tail */
157 uint16_t nb_tx_used; /**< number of TX desc used since RS bit set */
158 /**< index to last TX descriptor to have been cleaned */
159 uint16_t last_desc_cleaned;
160 /**< Total number of TX descriptors ready to be allocated. */
162 /**< Start freeing TX buffers if there are less free descriptors than
164 uint16_t tx_free_thresh;
165 /** Number of TX descriptors to use before RS bit is set. */
166 uint16_t tx_rs_thresh;
167 uint8_t pthresh; /**< Prefetch threshold register. */
168 uint8_t hthresh; /**< Host threshold register. */
169 uint8_t wthresh; /**< Write-back threshold reg. */
170 uint8_t port_id; /**< Device port identifier. */
171 uint16_t queue_id; /**< TX queue index. */
174 struct i40e_vsi *vsi; /**< the VSI this queue belongs to */
177 bool q_set; /**< indicate if tx queue has been configured */
178 bool tx_deferred_start; /**< don't start this queue in dev start */
179 uint8_t dcb_tc; /**< Traffic class of tx queue */
182 /** Offload features */
183 union i40e_tx_offload {
186 uint64_t l2_len:7; /**< L2 (MAC) Header Length. */
187 uint64_t l3_len:9; /**< L3 (IP) Header Length. */
188 uint64_t l4_len:8; /**< L4 Header Length. */
189 uint64_t tso_segsz:16; /**< TCP TSO segment size */
190 uint64_t outer_l2_len:8; /**< outer L2 Header Length */
191 uint64_t outer_l3_len:16; /**< outer L3 Header Length */
195 int i40e_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id);
196 int i40e_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id);
197 int i40e_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id);
198 int i40e_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id);
199 const uint32_t *i40e_dev_supported_ptypes_get(struct rte_eth_dev *dev);
200 int i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,
203 unsigned int socket_id,
204 const struct rte_eth_rxconf *rx_conf,
205 struct rte_mempool *mp);
206 int i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,
209 unsigned int socket_id,
210 const struct rte_eth_txconf *tx_conf);
211 void i40e_dev_rx_queue_release(void *rxq);
212 void i40e_dev_tx_queue_release(void *txq);
213 uint16_t i40e_recv_pkts(void *rx_queue,
214 struct rte_mbuf **rx_pkts,
216 uint16_t i40e_recv_scattered_pkts(void *rx_queue,
217 struct rte_mbuf **rx_pkts,
219 uint16_t i40e_xmit_pkts(void *tx_queue,
220 struct rte_mbuf **tx_pkts,
222 uint16_t i40e_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
224 int i40e_tx_queue_init(struct i40e_tx_queue *txq);
225 int i40e_rx_queue_init(struct i40e_rx_queue *rxq);
226 void i40e_free_tx_resources(struct i40e_tx_queue *txq);
227 void i40e_free_rx_resources(struct i40e_rx_queue *rxq);
228 void i40e_dev_clear_queues(struct rte_eth_dev *dev);
229 void i40e_dev_free_queues(struct rte_eth_dev *dev);
230 void i40e_reset_rx_queue(struct i40e_rx_queue *rxq);
231 void i40e_reset_tx_queue(struct i40e_tx_queue *txq);
232 void i40e_tx_queue_release_mbufs(struct i40e_tx_queue *txq);
233 int i40e_alloc_rx_queue_mbufs(struct i40e_rx_queue *rxq);
234 void i40e_rx_queue_release_mbufs(struct i40e_rx_queue *rxq);
236 uint32_t i40e_dev_rx_queue_count(struct rte_eth_dev *dev,
237 uint16_t rx_queue_id);
238 int i40e_dev_rx_descriptor_done(void *rx_queue, uint16_t offset);
239 int i40e_dev_rx_descriptor_status(void *rx_queue, uint16_t offset);
240 int i40e_dev_tx_descriptor_status(void *tx_queue, uint16_t offset);
242 uint16_t i40e_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
244 uint16_t i40e_recv_scattered_pkts_vec(void *rx_queue,
245 struct rte_mbuf **rx_pkts,
247 int i40e_rx_vec_dev_conf_condition_check(struct rte_eth_dev *dev);
248 int i40e_rxq_vec_setup(struct i40e_rx_queue *rxq);
249 int i40e_txq_vec_setup(struct i40e_tx_queue *txq);
250 void i40e_rx_queue_release_mbufs_vec(struct i40e_rx_queue *rxq);
251 uint16_t i40e_xmit_fixed_burst_vec(void *tx_queue, struct rte_mbuf **tx_pkts,
253 void i40e_set_rx_function(struct rte_eth_dev *dev);
254 void i40e_set_tx_function_flag(struct rte_eth_dev *dev,
255 struct i40e_tx_queue *txq);
256 void i40e_set_tx_function(struct rte_eth_dev *dev);
257 void i40e_set_default_ptype_table(struct rte_eth_dev *dev);
258 void i40e_set_default_pctype_table(struct rte_eth_dev *dev);
260 /* For each value it means, datasheet of hardware can tell more details
262 * @note: fix i40e_dev_supported_ptypes_get() if any change here.
264 static inline uint32_t
265 i40e_get_default_pkt_type(uint8_t ptype)
267 static const uint32_t type_table[UINT8_MAX + 1] __rte_cache_aligned = {
270 [1] = RTE_PTYPE_L2_ETHER,
271 [2] = RTE_PTYPE_L2_ETHER_TIMESYNC,
272 /* [3] - [5] reserved */
273 [6] = RTE_PTYPE_L2_ETHER_LLDP,
274 /* [7] - [10] reserved */
275 [11] = RTE_PTYPE_L2_ETHER_ARP,
276 /* [12] - [21] reserved */
278 /* Non tunneled IPv4 */
279 [22] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
281 [23] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
282 RTE_PTYPE_L4_NONFRAG,
283 [24] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
286 [26] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
288 [27] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
290 [28] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
294 [29] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
295 RTE_PTYPE_TUNNEL_IP |
296 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
297 RTE_PTYPE_INNER_L4_FRAG,
298 [30] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
299 RTE_PTYPE_TUNNEL_IP |
300 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
301 RTE_PTYPE_INNER_L4_NONFRAG,
302 [31] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
303 RTE_PTYPE_TUNNEL_IP |
304 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
305 RTE_PTYPE_INNER_L4_UDP,
307 [33] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
308 RTE_PTYPE_TUNNEL_IP |
309 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
310 RTE_PTYPE_INNER_L4_TCP,
311 [34] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
312 RTE_PTYPE_TUNNEL_IP |
313 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
314 RTE_PTYPE_INNER_L4_SCTP,
315 [35] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
316 RTE_PTYPE_TUNNEL_IP |
317 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
318 RTE_PTYPE_INNER_L4_ICMP,
321 [36] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
322 RTE_PTYPE_TUNNEL_IP |
323 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
324 RTE_PTYPE_INNER_L4_FRAG,
325 [37] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
326 RTE_PTYPE_TUNNEL_IP |
327 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
328 RTE_PTYPE_INNER_L4_NONFRAG,
329 [38] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
330 RTE_PTYPE_TUNNEL_IP |
331 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
332 RTE_PTYPE_INNER_L4_UDP,
334 [40] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
335 RTE_PTYPE_TUNNEL_IP |
336 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
337 RTE_PTYPE_INNER_L4_TCP,
338 [41] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
339 RTE_PTYPE_TUNNEL_IP |
340 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
341 RTE_PTYPE_INNER_L4_SCTP,
342 [42] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
343 RTE_PTYPE_TUNNEL_IP |
344 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
345 RTE_PTYPE_INNER_L4_ICMP,
347 /* IPv4 --> GRE/Teredo/VXLAN */
348 [43] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
349 RTE_PTYPE_TUNNEL_GRENAT,
351 /* IPv4 --> GRE/Teredo/VXLAN --> IPv4 */
352 [44] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
353 RTE_PTYPE_TUNNEL_GRENAT |
354 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
355 RTE_PTYPE_INNER_L4_FRAG,
356 [45] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
357 RTE_PTYPE_TUNNEL_GRENAT |
358 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
359 RTE_PTYPE_INNER_L4_NONFRAG,
360 [46] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
361 RTE_PTYPE_TUNNEL_GRENAT |
362 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
363 RTE_PTYPE_INNER_L4_UDP,
365 [48] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
366 RTE_PTYPE_TUNNEL_GRENAT |
367 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
368 RTE_PTYPE_INNER_L4_TCP,
369 [49] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
370 RTE_PTYPE_TUNNEL_GRENAT |
371 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
372 RTE_PTYPE_INNER_L4_SCTP,
373 [50] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
374 RTE_PTYPE_TUNNEL_GRENAT |
375 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
376 RTE_PTYPE_INNER_L4_ICMP,
378 /* IPv4 --> GRE/Teredo/VXLAN --> IPv6 */
379 [51] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
380 RTE_PTYPE_TUNNEL_GRENAT |
381 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
382 RTE_PTYPE_INNER_L4_FRAG,
383 [52] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
384 RTE_PTYPE_TUNNEL_GRENAT |
385 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
386 RTE_PTYPE_INNER_L4_NONFRAG,
387 [53] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
388 RTE_PTYPE_TUNNEL_GRENAT |
389 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
390 RTE_PTYPE_INNER_L4_UDP,
392 [55] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
393 RTE_PTYPE_TUNNEL_GRENAT |
394 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
395 RTE_PTYPE_INNER_L4_TCP,
396 [56] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
397 RTE_PTYPE_TUNNEL_GRENAT |
398 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
399 RTE_PTYPE_INNER_L4_SCTP,
400 [57] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
401 RTE_PTYPE_TUNNEL_GRENAT |
402 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
403 RTE_PTYPE_INNER_L4_ICMP,
405 /* IPv4 --> GRE/Teredo/VXLAN --> MAC */
406 [58] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
407 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER,
409 /* IPv4 --> GRE/Teredo/VXLAN --> MAC --> IPv4 */
410 [59] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
411 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
412 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
413 RTE_PTYPE_INNER_L4_FRAG,
414 [60] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
415 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
416 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
417 RTE_PTYPE_INNER_L4_NONFRAG,
418 [61] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
419 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
420 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
421 RTE_PTYPE_INNER_L4_UDP,
423 [63] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
424 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
425 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
426 RTE_PTYPE_INNER_L4_TCP,
427 [64] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
428 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
429 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
430 RTE_PTYPE_INNER_L4_SCTP,
431 [65] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
432 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
433 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
434 RTE_PTYPE_INNER_L4_ICMP,
436 /* IPv4 --> GRE/Teredo/VXLAN --> MAC --> IPv6 */
437 [66] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
438 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
439 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
440 RTE_PTYPE_INNER_L4_FRAG,
441 [67] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
442 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
443 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
444 RTE_PTYPE_INNER_L4_NONFRAG,
445 [68] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
446 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
447 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
448 RTE_PTYPE_INNER_L4_UDP,
450 [70] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
451 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
452 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
453 RTE_PTYPE_INNER_L4_TCP,
454 [71] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
455 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
456 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
457 RTE_PTYPE_INNER_L4_SCTP,
458 [72] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
459 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
460 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
461 RTE_PTYPE_INNER_L4_ICMP,
463 /* IPv4 --> GRE/Teredo/VXLAN --> MAC/VLAN */
464 [73] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
465 RTE_PTYPE_TUNNEL_GRENAT |
466 RTE_PTYPE_INNER_L2_ETHER_VLAN,
468 /* IPv4 --> GRE/Teredo/VXLAN --> MAC/VLAN --> IPv4 */
469 [74] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
470 RTE_PTYPE_TUNNEL_GRENAT |
471 RTE_PTYPE_INNER_L2_ETHER_VLAN |
472 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
473 RTE_PTYPE_INNER_L4_FRAG,
474 [75] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
475 RTE_PTYPE_TUNNEL_GRENAT |
476 RTE_PTYPE_INNER_L2_ETHER_VLAN |
477 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
478 RTE_PTYPE_INNER_L4_NONFRAG,
479 [76] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
480 RTE_PTYPE_TUNNEL_GRENAT |
481 RTE_PTYPE_INNER_L2_ETHER_VLAN |
482 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
483 RTE_PTYPE_INNER_L4_UDP,
485 [78] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
486 RTE_PTYPE_TUNNEL_GRENAT |
487 RTE_PTYPE_INNER_L2_ETHER_VLAN |
488 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
489 RTE_PTYPE_INNER_L4_TCP,
490 [79] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
491 RTE_PTYPE_TUNNEL_GRENAT |
492 RTE_PTYPE_INNER_L2_ETHER_VLAN |
493 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
494 RTE_PTYPE_INNER_L4_SCTP,
495 [80] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
496 RTE_PTYPE_TUNNEL_GRENAT |
497 RTE_PTYPE_INNER_L2_ETHER_VLAN |
498 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
499 RTE_PTYPE_INNER_L4_ICMP,
501 /* IPv4 --> GRE/Teredo/VXLAN --> MAC/VLAN --> IPv6 */
502 [81] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
503 RTE_PTYPE_TUNNEL_GRENAT |
504 RTE_PTYPE_INNER_L2_ETHER_VLAN |
505 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
506 RTE_PTYPE_INNER_L4_FRAG,
507 [82] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
508 RTE_PTYPE_TUNNEL_GRENAT |
509 RTE_PTYPE_INNER_L2_ETHER_VLAN |
510 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
511 RTE_PTYPE_INNER_L4_NONFRAG,
512 [83] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
513 RTE_PTYPE_TUNNEL_GRENAT |
514 RTE_PTYPE_INNER_L2_ETHER_VLAN |
515 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
516 RTE_PTYPE_INNER_L4_UDP,
518 [85] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
519 RTE_PTYPE_TUNNEL_GRENAT |
520 RTE_PTYPE_INNER_L2_ETHER_VLAN |
521 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
522 RTE_PTYPE_INNER_L4_TCP,
523 [86] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
524 RTE_PTYPE_TUNNEL_GRENAT |
525 RTE_PTYPE_INNER_L2_ETHER_VLAN |
526 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
527 RTE_PTYPE_INNER_L4_SCTP,
528 [87] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
529 RTE_PTYPE_TUNNEL_GRENAT |
530 RTE_PTYPE_INNER_L2_ETHER_VLAN |
531 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
532 RTE_PTYPE_INNER_L4_ICMP,
534 /* Non tunneled IPv6 */
535 [88] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
537 [89] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
538 RTE_PTYPE_L4_NONFRAG,
539 [90] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
542 [92] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
544 [93] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
546 [94] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
550 [95] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
551 RTE_PTYPE_TUNNEL_IP |
552 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
553 RTE_PTYPE_INNER_L4_FRAG,
554 [96] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
555 RTE_PTYPE_TUNNEL_IP |
556 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
557 RTE_PTYPE_INNER_L4_NONFRAG,
558 [97] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
559 RTE_PTYPE_TUNNEL_IP |
560 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
561 RTE_PTYPE_INNER_L4_UDP,
563 [99] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
564 RTE_PTYPE_TUNNEL_IP |
565 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
566 RTE_PTYPE_INNER_L4_TCP,
567 [100] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
568 RTE_PTYPE_TUNNEL_IP |
569 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
570 RTE_PTYPE_INNER_L4_SCTP,
571 [101] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
572 RTE_PTYPE_TUNNEL_IP |
573 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
574 RTE_PTYPE_INNER_L4_ICMP,
577 [102] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
578 RTE_PTYPE_TUNNEL_IP |
579 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
580 RTE_PTYPE_INNER_L4_FRAG,
581 [103] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
582 RTE_PTYPE_TUNNEL_IP |
583 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
584 RTE_PTYPE_INNER_L4_NONFRAG,
585 [104] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
586 RTE_PTYPE_TUNNEL_IP |
587 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
588 RTE_PTYPE_INNER_L4_UDP,
590 [106] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
591 RTE_PTYPE_TUNNEL_IP |
592 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
593 RTE_PTYPE_INNER_L4_TCP,
594 [107] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
595 RTE_PTYPE_TUNNEL_IP |
596 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
597 RTE_PTYPE_INNER_L4_SCTP,
598 [108] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
599 RTE_PTYPE_TUNNEL_IP |
600 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
601 RTE_PTYPE_INNER_L4_ICMP,
603 /* IPv6 --> GRE/Teredo/VXLAN */
604 [109] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
605 RTE_PTYPE_TUNNEL_GRENAT,
607 /* IPv6 --> GRE/Teredo/VXLAN --> IPv4 */
608 [110] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
609 RTE_PTYPE_TUNNEL_GRENAT |
610 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
611 RTE_PTYPE_INNER_L4_FRAG,
612 [111] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
613 RTE_PTYPE_TUNNEL_GRENAT |
614 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
615 RTE_PTYPE_INNER_L4_NONFRAG,
616 [112] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
617 RTE_PTYPE_TUNNEL_GRENAT |
618 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
619 RTE_PTYPE_INNER_L4_UDP,
621 [114] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
622 RTE_PTYPE_TUNNEL_GRENAT |
623 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
624 RTE_PTYPE_INNER_L4_TCP,
625 [115] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
626 RTE_PTYPE_TUNNEL_GRENAT |
627 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
628 RTE_PTYPE_INNER_L4_SCTP,
629 [116] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
630 RTE_PTYPE_TUNNEL_GRENAT |
631 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
632 RTE_PTYPE_INNER_L4_ICMP,
634 /* IPv6 --> GRE/Teredo/VXLAN --> IPv6 */
635 [117] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
636 RTE_PTYPE_TUNNEL_GRENAT |
637 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
638 RTE_PTYPE_INNER_L4_FRAG,
639 [118] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
640 RTE_PTYPE_TUNNEL_GRENAT |
641 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
642 RTE_PTYPE_INNER_L4_NONFRAG,
643 [119] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
644 RTE_PTYPE_TUNNEL_GRENAT |
645 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
646 RTE_PTYPE_INNER_L4_UDP,
648 [121] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
649 RTE_PTYPE_TUNNEL_GRENAT |
650 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
651 RTE_PTYPE_INNER_L4_TCP,
652 [122] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
653 RTE_PTYPE_TUNNEL_GRENAT |
654 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
655 RTE_PTYPE_INNER_L4_SCTP,
656 [123] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
657 RTE_PTYPE_TUNNEL_GRENAT |
658 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
659 RTE_PTYPE_INNER_L4_ICMP,
661 /* IPv6 --> GRE/Teredo/VXLAN --> MAC */
662 [124] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
663 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER,
665 /* IPv6 --> GRE/Teredo/VXLAN --> MAC --> IPv4 */
666 [125] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
667 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
668 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
669 RTE_PTYPE_INNER_L4_FRAG,
670 [126] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
671 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
672 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
673 RTE_PTYPE_INNER_L4_NONFRAG,
674 [127] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
675 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
676 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
677 RTE_PTYPE_INNER_L4_UDP,
679 [129] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
680 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
681 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
682 RTE_PTYPE_INNER_L4_TCP,
683 [130] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
684 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
685 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
686 RTE_PTYPE_INNER_L4_SCTP,
687 [131] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
688 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
689 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
690 RTE_PTYPE_INNER_L4_ICMP,
692 /* IPv6 --> GRE/Teredo/VXLAN --> MAC --> IPv6 */
693 [132] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
694 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
695 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
696 RTE_PTYPE_INNER_L4_FRAG,
697 [133] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
698 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
699 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
700 RTE_PTYPE_INNER_L4_NONFRAG,
701 [134] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
702 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
703 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
704 RTE_PTYPE_INNER_L4_UDP,
706 [136] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
707 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
708 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
709 RTE_PTYPE_INNER_L4_TCP,
710 [137] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
711 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
712 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
713 RTE_PTYPE_INNER_L4_SCTP,
714 [138] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
715 RTE_PTYPE_TUNNEL_GRENAT | RTE_PTYPE_INNER_L2_ETHER |
716 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
717 RTE_PTYPE_INNER_L4_ICMP,
719 /* IPv6 --> GRE/Teredo/VXLAN --> MAC/VLAN */
720 [139] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
721 RTE_PTYPE_TUNNEL_GRENAT |
722 RTE_PTYPE_INNER_L2_ETHER_VLAN,
724 /* IPv6 --> GRE/Teredo/VXLAN --> MAC/VLAN --> IPv4 */
725 [140] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
726 RTE_PTYPE_TUNNEL_GRENAT |
727 RTE_PTYPE_INNER_L2_ETHER_VLAN |
728 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
729 RTE_PTYPE_INNER_L4_FRAG,
730 [141] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
731 RTE_PTYPE_TUNNEL_GRENAT |
732 RTE_PTYPE_INNER_L2_ETHER_VLAN |
733 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
734 RTE_PTYPE_INNER_L4_NONFRAG,
735 [142] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
736 RTE_PTYPE_TUNNEL_GRENAT |
737 RTE_PTYPE_INNER_L2_ETHER_VLAN |
738 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
739 RTE_PTYPE_INNER_L4_UDP,
741 [144] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
742 RTE_PTYPE_TUNNEL_GRENAT |
743 RTE_PTYPE_INNER_L2_ETHER_VLAN |
744 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
745 RTE_PTYPE_INNER_L4_TCP,
746 [145] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
747 RTE_PTYPE_TUNNEL_GRENAT |
748 RTE_PTYPE_INNER_L2_ETHER_VLAN |
749 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
750 RTE_PTYPE_INNER_L4_SCTP,
751 [146] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
752 RTE_PTYPE_TUNNEL_GRENAT |
753 RTE_PTYPE_INNER_L2_ETHER_VLAN |
754 RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |
755 RTE_PTYPE_INNER_L4_ICMP,
757 /* IPv6 --> GRE/Teredo/VXLAN --> MAC/VLAN --> IPv6 */
758 [147] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
759 RTE_PTYPE_TUNNEL_GRENAT |
760 RTE_PTYPE_INNER_L2_ETHER_VLAN |
761 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
762 RTE_PTYPE_INNER_L4_FRAG,
763 [148] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
764 RTE_PTYPE_TUNNEL_GRENAT |
765 RTE_PTYPE_INNER_L2_ETHER_VLAN |
766 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
767 RTE_PTYPE_INNER_L4_NONFRAG,
768 [149] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
769 RTE_PTYPE_TUNNEL_GRENAT |
770 RTE_PTYPE_INNER_L2_ETHER_VLAN |
771 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
772 RTE_PTYPE_INNER_L4_UDP,
774 [151] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
775 RTE_PTYPE_TUNNEL_GRENAT |
776 RTE_PTYPE_INNER_L2_ETHER_VLAN |
777 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
778 RTE_PTYPE_INNER_L4_TCP,
779 [152] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
780 RTE_PTYPE_TUNNEL_GRENAT |
781 RTE_PTYPE_INNER_L2_ETHER_VLAN |
782 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
783 RTE_PTYPE_INNER_L4_SCTP,
784 [153] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
785 RTE_PTYPE_TUNNEL_GRENAT |
786 RTE_PTYPE_INNER_L2_ETHER_VLAN |
787 RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
788 RTE_PTYPE_INNER_L4_ICMP,
790 /* L2 NSH packet type */
791 [154] = RTE_PTYPE_L2_ETHER_NSH,
792 [155] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
794 [156] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
795 RTE_PTYPE_L4_NONFRAG,
796 [157] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
798 [158] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
800 [159] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
802 [160] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
804 [161] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
806 [162] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
807 RTE_PTYPE_L4_NONFRAG,
808 [163] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
810 [164] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
812 [165] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
814 [166] = RTE_PTYPE_L2_ETHER_NSH | RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
817 /* All others reserved */
820 return type_table[ptype];
823 #endif /* _I40E_RXTX_H_ */