1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Cavium, Inc
5 #ifndef __OCTEONTX_RXTX_H__
6 #define __OCTEONTX_RXTX_H__
8 #include <ethdev_driver.h>
10 #define OFFLOAD_FLAGS \
11 uint16_t rx_offload_flags; \
12 uint16_t tx_offload_flags
14 #define BIT(nr) (1UL << (nr))
16 #define OCCTX_RX_OFFLOAD_NONE (0)
17 #define OCCTX_RX_MULTI_SEG_F BIT(0)
18 #define OCCTX_RX_OFFLOAD_CSUM_F BIT(1)
19 #define OCCTX_RX_VLAN_FLTR_F BIT(2)
21 #define OCCTX_TX_OFFLOAD_NONE (0)
22 #define OCCTX_TX_MULTI_SEG_F BIT(0)
23 #define OCCTX_TX_OFFLOAD_L3_L4_CSUM_F BIT(1)
24 #define OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F BIT(2)
25 #define OCCTX_TX_OFFLOAD_MBUF_NOFF_F BIT(3)
27 /* Packet type table */
28 #define PTYPE_SIZE OCCTX_PKI_LTYPE_LAST
30 /* octeontx send header sub descriptor structure */
32 union octeontx_send_hdr_w0_u {
57 union octeontx_send_hdr_w1_u {
60 uint64_t tso_mss : 14;
71 struct octeontx_send_hdr_s {
72 union octeontx_send_hdr_w0_u w0;
73 union octeontx_send_hdr_w1_u w1;
76 static const uint32_t __rte_cache_aligned
77 ptype_table[PTYPE_SIZE][PTYPE_SIZE][PTYPE_SIZE] = {
78 [LC_NONE][LE_NONE][LF_NONE] = RTE_PTYPE_UNKNOWN,
79 [LC_NONE][LE_NONE][LF_IPSEC_ESP] = RTE_PTYPE_UNKNOWN,
80 [LC_NONE][LE_NONE][LF_IPFRAG] = RTE_PTYPE_L4_FRAG,
81 [LC_NONE][LE_NONE][LF_IPCOMP] = RTE_PTYPE_UNKNOWN,
82 [LC_NONE][LE_NONE][LF_TCP] = RTE_PTYPE_L4_TCP,
83 [LC_NONE][LE_NONE][LF_UDP] = RTE_PTYPE_L4_UDP,
84 [LC_NONE][LE_NONE][LF_GRE] = RTE_PTYPE_TUNNEL_GRE,
85 [LC_NONE][LE_NONE][LF_UDP_GENEVE] = RTE_PTYPE_TUNNEL_GENEVE,
86 [LC_NONE][LE_NONE][LF_UDP_VXLAN] = RTE_PTYPE_TUNNEL_VXLAN,
87 [LC_NONE][LE_NONE][LF_NVGRE] = RTE_PTYPE_TUNNEL_NVGRE,
89 [LC_IPV4][LE_NONE][LF_NONE] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_UNKNOWN,
90 [LC_IPV4][LE_NONE][LF_IPSEC_ESP] =
91 RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L3_IPV4,
92 [LC_IPV4][LE_NONE][LF_IPFRAG] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L4_FRAG,
93 [LC_IPV4][LE_NONE][LF_IPCOMP] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_UNKNOWN,
94 [LC_IPV4][LE_NONE][LF_TCP] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L4_TCP,
95 [LC_IPV4][LE_NONE][LF_UDP] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L4_UDP,
96 [LC_IPV4][LE_NONE][LF_GRE] = RTE_PTYPE_L3_IPV4 | RTE_PTYPE_TUNNEL_GRE,
97 [LC_IPV4][LE_NONE][LF_UDP_GENEVE] =
98 RTE_PTYPE_L3_IPV4 | RTE_PTYPE_TUNNEL_GENEVE,
99 [LC_IPV4][LE_NONE][LF_UDP_VXLAN] =
100 RTE_PTYPE_L3_IPV4 | RTE_PTYPE_TUNNEL_VXLAN,
101 [LC_IPV4][LE_NONE][LF_NVGRE] =
102 RTE_PTYPE_L3_IPV4 | RTE_PTYPE_TUNNEL_NVGRE,
104 [LC_IPV4_OPT][LE_NONE][LF_NONE] =
105 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_UNKNOWN,
106 [LC_IPV4_OPT][LE_NONE][LF_IPSEC_ESP] =
107 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_L3_IPV4,
108 [LC_IPV4_OPT][LE_NONE][LF_IPFRAG] =
109 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_L4_FRAG,
110 [LC_IPV4_OPT][LE_NONE][LF_IPCOMP] =
111 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_UNKNOWN,
112 [LC_IPV4_OPT][LE_NONE][LF_TCP] =
113 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_L4_TCP,
114 [LC_IPV4_OPT][LE_NONE][LF_UDP] =
115 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_L4_UDP,
116 [LC_IPV4_OPT][LE_NONE][LF_GRE] =
117 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_TUNNEL_GRE,
118 [LC_IPV4_OPT][LE_NONE][LF_UDP_GENEVE] =
119 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_TUNNEL_GENEVE,
120 [LC_IPV4_OPT][LE_NONE][LF_UDP_VXLAN] =
121 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_TUNNEL_VXLAN,
122 [LC_IPV4_OPT][LE_NONE][LF_NVGRE] =
123 RTE_PTYPE_L3_IPV4_EXT | RTE_PTYPE_TUNNEL_NVGRE,
125 [LC_IPV6][LE_NONE][LF_NONE] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_UNKNOWN,
126 [LC_IPV6][LE_NONE][LF_IPSEC_ESP] =
127 RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L3_IPV4,
128 [LC_IPV6][LE_NONE][LF_IPFRAG] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_FRAG,
129 [LC_IPV6][LE_NONE][LF_IPCOMP] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_UNKNOWN,
130 [LC_IPV6][LE_NONE][LF_TCP] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_TCP,
131 [LC_IPV6][LE_NONE][LF_UDP] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_L4_UDP,
132 [LC_IPV6][LE_NONE][LF_GRE] = RTE_PTYPE_L3_IPV6 | RTE_PTYPE_TUNNEL_GRE,
133 [LC_IPV6][LE_NONE][LF_UDP_GENEVE] =
134 RTE_PTYPE_L3_IPV6 | RTE_PTYPE_TUNNEL_GENEVE,
135 [LC_IPV6][LE_NONE][LF_UDP_VXLAN] =
136 RTE_PTYPE_L3_IPV6 | RTE_PTYPE_TUNNEL_VXLAN,
137 [LC_IPV6][LE_NONE][LF_NVGRE] =
138 RTE_PTYPE_L3_IPV4 | RTE_PTYPE_TUNNEL_NVGRE,
139 [LC_IPV6_OPT][LE_NONE][LF_NONE] =
140 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_UNKNOWN,
141 [LC_IPV6_OPT][LE_NONE][LF_IPSEC_ESP] =
142 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_L3_IPV4,
143 [LC_IPV6_OPT][LE_NONE][LF_IPFRAG] =
144 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_L4_FRAG,
145 [LC_IPV6_OPT][LE_NONE][LF_IPCOMP] =
146 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_UNKNOWN,
147 [LC_IPV6_OPT][LE_NONE][LF_TCP] =
148 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_L4_TCP,
149 [LC_IPV6_OPT][LE_NONE][LF_UDP] =
150 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_L4_UDP,
151 [LC_IPV6_OPT][LE_NONE][LF_GRE] =
152 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_TUNNEL_GRE,
153 [LC_IPV6_OPT][LE_NONE][LF_UDP_GENEVE] =
154 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_TUNNEL_GENEVE,
155 [LC_IPV6_OPT][LE_NONE][LF_UDP_VXLAN] =
156 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_TUNNEL_VXLAN,
157 [LC_IPV6_OPT][LE_NONE][LF_NVGRE] =
158 RTE_PTYPE_L3_IPV6_EXT | RTE_PTYPE_TUNNEL_NVGRE,
163 static __rte_always_inline uint64_t
164 octeontx_pktmbuf_detach(struct rte_mbuf *m, struct rte_mbuf **m_tofree)
166 struct rte_mempool *mp = m->pool;
167 uint32_t mbuf_size, buf_len;
172 /* Update refcount of direct mbuf */
173 md = rte_mbuf_from_indirect(m);
174 /* The real data will be in the direct buffer, inform callers this */
176 refcount = rte_mbuf_refcnt_update(md, -1);
178 priv_size = rte_pktmbuf_priv_size(mp);
179 mbuf_size = (uint32_t)(sizeof(struct rte_mbuf) + priv_size);
180 buf_len = rte_pktmbuf_data_room_size(mp);
182 m->priv_size = priv_size;
183 m->buf_addr = (char *)m + mbuf_size;
184 m->buf_iova = rte_mempool_virt2iova(m) + mbuf_size;
185 m->buf_len = (uint16_t)buf_len;
186 rte_pktmbuf_reset_headroom(m);
192 /* Now indirect mbuf is safe to free */
196 rte_mbuf_refcnt_set(md, 1);
207 static __rte_always_inline uint64_t
208 octeontx_prefree_seg(struct rte_mbuf *m, struct rte_mbuf **m_tofree)
210 if (likely(rte_mbuf_refcnt_read(m) == 1)) {
211 if (!RTE_MBUF_DIRECT(m))
212 return octeontx_pktmbuf_detach(m, m_tofree);
217 } else if (rte_mbuf_refcnt_update(m, -1) == 0) {
218 if (!RTE_MBUF_DIRECT(m))
219 return octeontx_pktmbuf_detach(m, m_tofree);
221 rte_mbuf_refcnt_set(m, 1);
227 /* Mbuf is having refcount more than 1 so need not to be freed */
231 static __rte_always_inline void
232 octeontx_tx_checksum_offload(uint64_t *cmd_buf, const uint16_t flags,
235 struct octeontx_send_hdr_s *send_hdr =
236 (struct octeontx_send_hdr_s *)cmd_buf;
237 uint64_t ol_flags = m->ol_flags;
239 /* PKO Checksum L4 Algorithm Enumeration
241 * 0x1 - UDP L4 checksum
242 * 0x2 - TCP L4 checksum
243 * 0x3 - SCTP L4 checksum
245 const uint8_t csum = (!(((ol_flags ^ PKT_TX_UDP_CKSUM) >> 52) & 0x3) +
246 (!(((ol_flags ^ PKT_TX_TCP_CKSUM) >> 52) & 0x3) * 2) +
247 (!(((ol_flags ^ PKT_TX_SCTP_CKSUM) >> 52) & 0x3) * 3));
249 const uint8_t is_tunnel_parsed = (!!(ol_flags & PKT_TX_TUNNEL_GTP) ||
250 !!(ol_flags & PKT_TX_TUNNEL_VXLAN_GPE) ||
251 !!(ol_flags & PKT_TX_TUNNEL_VXLAN) ||
252 !!(ol_flags & PKT_TX_TUNNEL_GRE) ||
253 !!(ol_flags & PKT_TX_TUNNEL_GENEVE) ||
254 !!(ol_flags & PKT_TX_TUNNEL_IP) ||
255 !!(ol_flags & PKT_TX_TUNNEL_IPIP));
257 const uint8_t csum_outer = (!!(ol_flags & PKT_TX_OUTER_UDP_CKSUM) ||
258 !!(ol_flags & PKT_TX_TUNNEL_UDP));
259 const uint8_t outer_l2_len = m->outer_l2_len;
260 const uint8_t l2_len = m->l2_len;
262 if ((flags & OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F) &&
263 (flags & OCCTX_TX_OFFLOAD_L3_L4_CSUM_F)) {
264 if (is_tunnel_parsed) {
266 send_hdr->w0.l3ptr = outer_l2_len;
267 send_hdr->w0.l4ptr = outer_l2_len + m->outer_l3_len;
268 /* Set clk3 for PKO to calculate IPV4 header checksum */
269 send_hdr->w0.ckl3 = !!(ol_flags & PKT_TX_OUTER_IPV4);
272 send_hdr->w0.ckl4 = csum_outer;
275 send_hdr->w1.leptr = send_hdr->w0.l4ptr + l2_len;
276 send_hdr->w1.lfptr = send_hdr->w1.leptr + m->l3_len;
277 /* Set clke for PKO to calculate inner IPV4 header
280 send_hdr->w0.ckle = !!(ol_flags & PKT_TX_IPV4);
283 send_hdr->w0.cklf = csum;
286 send_hdr->w0.l3ptr = l2_len;
287 send_hdr->w0.l4ptr = l2_len + m->l3_len;
288 /* Set clk3 for PKO to calculate IPV4 header checksum */
289 send_hdr->w0.ckl3 = !!(ol_flags & PKT_TX_IPV4);
292 send_hdr->w0.ckl4 = csum;
294 } else if (flags & OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F) {
296 send_hdr->w0.l3ptr = outer_l2_len;
297 send_hdr->w0.l4ptr = outer_l2_len + m->outer_l3_len;
298 /* Set clk3 for PKO to calculate IPV4 header checksum */
299 send_hdr->w0.ckl3 = !!(ol_flags & PKT_TX_OUTER_IPV4);
302 send_hdr->w0.ckl4 = csum_outer;
303 } else if (flags & OCCTX_TX_OFFLOAD_L3_L4_CSUM_F) {
305 send_hdr->w0.l3ptr = l2_len;
306 send_hdr->w0.l4ptr = l2_len + m->l3_len;
307 /* Set clk3 for PKO to calculate IPV4 header checksum */
308 send_hdr->w0.ckl3 = !!(ol_flags & PKT_TX_IPV4);
311 send_hdr->w0.ckl4 = csum;
315 static __rte_always_inline uint16_t
316 __octeontx_xmit_prepare(struct rte_mbuf *tx_pkt, uint64_t *cmd_buf,
319 uint16_t gaura_id, nb_desc = 0;
320 struct rte_mbuf *m_tofree;
326 data_len = tx_pkt->data_len;
327 iova = rte_mbuf_data_iova(tx_pkt);
329 /* Setup PKO_SEND_HDR_S */
330 cmd_buf[nb_desc++] = tx_pkt->data_len & 0xffff;
331 cmd_buf[nb_desc++] = 0x0;
333 /* Enable tx checksum offload */
334 if ((flag & OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F) ||
335 (flag & OCCTX_TX_OFFLOAD_L3_L4_CSUM_F))
336 octeontx_tx_checksum_offload(cmd_buf, flag, tx_pkt);
338 /* SEND_HDR[DF] bit controls if buffer is to be freed or
339 * not, as SG_DESC[I] and SEND_HDR[II] are clear.
341 if (flag & OCCTX_TX_OFFLOAD_MBUF_NOFF_F)
342 cmd_buf[0] |= (octeontx_prefree_seg(tx_pkt, &m_tofree) <<
345 /* Mark mempool object as "put" since it is freed by PKO */
346 if (!(cmd_buf[0] & (1ULL << 58)))
347 RTE_MEMPOOL_CHECK_COOKIES(m_tofree->pool, (void **)&m_tofree,
349 /* Get the gaura Id */
351 octeontx_fpa_bufpool_gaura((uintptr_t)m_tofree->pool->pool_id);
353 /* Setup PKO_SEND_BUFLINK_S */
354 cmd_buf[nb_desc++] = PKO_SEND_BUFLINK_SUBDC |
355 PKO_SEND_BUFLINK_LDTYPE(0x1ull) |
356 PKO_SEND_BUFLINK_GAUAR((long)gaura_id) |
358 cmd_buf[nb_desc++] = iova;
363 static __rte_always_inline uint16_t
364 __octeontx_xmit_mseg_prepare(struct rte_mbuf *tx_pkt, uint64_t *cmd_buf,
367 uint16_t nb_segs, nb_desc = 0;
368 uint16_t gaura_id, len = 0;
369 struct rte_mbuf *m_next = NULL, *m_tofree;
373 nb_segs = tx_pkt->nb_segs;
374 /* Setup PKO_SEND_HDR_S */
375 cmd_buf[nb_desc++] = tx_pkt->pkt_len & 0xffff;
376 cmd_buf[nb_desc++] = 0x0;
378 /* Enable tx checksum offload */
379 if ((flag & OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F) ||
380 (flag & OCCTX_TX_OFFLOAD_L3_L4_CSUM_F))
381 octeontx_tx_checksum_offload(cmd_buf, flag, tx_pkt);
384 m_next = tx_pkt->next;
385 /* Get TX parameters up front, octeontx_prefree_seg might change
389 data_len = tx_pkt->data_len;
390 iova = rte_mbuf_data_iova(tx_pkt);
392 /* Setup PKO_SEND_GATHER_S */
393 cmd_buf[nb_desc] = 0;
395 /* SG_DESC[I] bit controls if buffer is to be freed or
396 * not, as SEND_HDR[DF] and SEND_HDR[II] are clear.
398 if (flag & OCCTX_TX_OFFLOAD_MBUF_NOFF_F) {
400 (octeontx_prefree_seg(tx_pkt, &m_tofree) << 57);
403 /* To handle case where mbufs belong to diff pools, like
406 gaura_id = octeontx_fpa_bufpool_gaura((uintptr_t)
407 m_tofree->pool->pool_id);
409 /* Setup PKO_SEND_GATHER_S */
410 cmd_buf[nb_desc] |= PKO_SEND_GATHER_SUBDC |
411 PKO_SEND_GATHER_LDTYPE(0x1ull) |
412 PKO_SEND_GATHER_GAUAR((long)gaura_id) |
415 /* Mark mempool object as "put" since it is freed by
418 if (!(cmd_buf[nb_desc] & (1ULL << 57))) {
420 RTE_MEMPOOL_CHECK_COOKIES(m_tofree->pool,
421 (void **)&m_tofree, 1, 0);
425 cmd_buf[nb_desc++] = iova;
435 static __rte_always_inline uint16_t
436 __octeontx_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
437 uint16_t nb_pkts, uint64_t *cmd_buf,
438 const uint16_t flags)
440 struct octeontx_txq *txq = tx_queue;
441 octeontx_dq_t *dq = &txq->dq;
442 uint16_t count = 0, nb_desc;
445 while (count < nb_pkts) {
446 if (unlikely(*((volatile int64_t *)dq->fc_status_va) < 0))
449 if (flags & OCCTX_TX_MULTI_SEG_F) {
450 nb_desc = __octeontx_xmit_mseg_prepare(tx_pkts[count],
453 nb_desc = __octeontx_xmit_prepare(tx_pkts[count],
457 octeontx_reg_lmtst(dq->lmtline_va, dq->ioreg_va, cmd_buf,
466 octeontx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts);
468 #define L3L4CSUM_F OCCTX_TX_OFFLOAD_L3_L4_CSUM_F
469 #define OL3OL4CSUM_F OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F
470 #define NOFF_F OCCTX_TX_OFFLOAD_MBUF_NOFF_F
471 #define MULT_F OCCTX_TX_MULTI_SEG_F
473 /* [L3L4CSUM_F] [OL3OL4CSUM_F] [NOFF] [MULTI_SEG] */
474 #define OCCTX_TX_FASTPATH_MODES \
475 T(no_offload, 0, 0, 0, 0, 4, \
476 OCCTX_TX_OFFLOAD_NONE) \
477 T(mseg, 0, 0, 0, 1, 14, \
479 T(l3l4csum, 0, 0, 1, 0, 4, \
481 T(l3l4csum_mseg, 0, 0, 1, 1, 14, \
482 L3L4CSUM_F | MULT_F) \
483 T(ol3ol4csum, 0, 1, 0, 0, 4, \
485 T(ol3l4csum_mseg, 0, 1, 0, 1, 14, \
486 OL3OL4CSUM_F | MULT_F) \
487 T(ol3l4csum_l3l4csum, 0, 1, 1, 0, 4, \
488 OL3OL4CSUM_F | L3L4CSUM_F) \
489 T(ol3l4csum_l3l4csum_mseg, 0, 1, 1, 1, 14, \
490 OL3OL4CSUM_F | L3L4CSUM_F | MULT_F) \
491 T(noff, 1, 0, 0, 0, 4, \
493 T(noff_mseg, 1, 0, 0, 1, 14, \
495 T(noff_l3l4csum, 1, 0, 1, 0, 4, \
496 NOFF_F | L3L4CSUM_F) \
497 T(noff_l3l4csum_mseg, 1, 0, 1, 1, 14, \
498 NOFF_F | L3L4CSUM_F | MULT_F) \
499 T(noff_ol3ol4csum, 1, 1, 0, 0, 4, \
500 NOFF_F | OL3OL4CSUM_F) \
501 T(noff_ol3ol4csum_mseg, 1, 1, 0, 1, 14, \
502 NOFF_F | OL3OL4CSUM_F | MULT_F) \
503 T(noff_ol3ol4csum_l3l4csum, 1, 1, 1, 0, 4, \
504 NOFF_F | OL3OL4CSUM_F | L3L4CSUM_F) \
505 T(noff_ol3ol4csum_l3l4csum_mseg, 1, 1, 1, 1, 14, \
506 NOFF_F | OL3OL4CSUM_F | L3L4CSUM_F | \
509 /* RX offload macros */
510 #define VLAN_FLTR_F OCCTX_RX_VLAN_FLTR_F
511 #define CSUM_F OCCTX_RX_OFFLOAD_CSUM_F
512 #define MULT_RX_F OCCTX_RX_MULTI_SEG_F
514 /* [VLAN_FLTR] [CSUM_F] [MULTI_SEG] */
515 #define OCCTX_RX_FASTPATH_MODES \
516 R(no_offload, 0, 0, 0, OCCTX_RX_OFFLOAD_NONE) \
517 R(mseg, 0, 0, 1, MULT_RX_F) \
518 R(csum, 0, 1, 0, CSUM_F) \
519 R(csum_mseg, 0, 1, 1, CSUM_F | MULT_RX_F) \
520 R(vlan, 1, 0, 0, VLAN_FLTR_F) \
521 R(vlan_mseg, 1, 0, 1, VLAN_FLTR_F | MULT_RX_F) \
522 R(vlan_csum, 1, 1, 0, VLAN_FLTR_F | CSUM_F) \
523 R(vlan_csum_mseg, 1, 1, 1, CSUM_F | VLAN_FLTR_F | \
526 #endif /* __OCTEONTX_RXTX_H__ */