1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2019 Marvell International Ltd.
5 #include "otx2_ethdev.h"
6 #include "otx2_ethdev_sec.h"
9 #define NPC_MAX_FIELD_NAME_SIZE 80
10 #define NPC_RX_ACTIONOP_MASK GENMASK(3, 0)
11 #define NPC_RX_ACTION_PFFUNC_MASK GENMASK(19, 4)
12 #define NPC_RX_ACTION_INDEX_MASK GENMASK(39, 20)
13 #define NPC_RX_ACTION_MATCH_MASK GENMASK(55, 40)
14 #define NPC_RX_ACTION_FLOWKEY_MASK GENMASK(60, 56)
16 #define NPC_TX_ACTION_INDEX_MASK GENMASK(31, 12)
17 #define NPC_TX_ACTION_MATCH_MASK GENMASK(47, 32)
19 #define NIX_RX_VTAGACT_VTAG0_RELPTR_MASK GENMASK(7, 0)
20 #define NIX_RX_VTAGACT_VTAG0_LID_MASK GENMASK(10, 8)
21 #define NIX_RX_VTAGACT_VTAG0_TYPE_MASK GENMASK(14, 12)
22 #define NIX_RX_VTAGACT_VTAG0_VALID_MASK BIT_ULL(15)
24 #define NIX_RX_VTAGACT_VTAG1_RELPTR_MASK GENMASK(39, 32)
25 #define NIX_RX_VTAGACT_VTAG1_LID_MASK GENMASK(42, 40)
26 #define NIX_RX_VTAGACT_VTAG1_TYPE_MASK GENMASK(46, 44)
27 #define NIX_RX_VTAGACT_VTAG1_VALID_MASK BIT_ULL(47)
29 #define NIX_TX_VTAGACT_VTAG0_RELPTR_MASK GENMASK(7, 0)
30 #define NIX_TX_VTAGACT_VTAG0_LID_MASK GENMASK(10, 8)
31 #define NIX_TX_VTAGACT_VTAG0_OP_MASK GENMASK(13, 12)
32 #define NIX_TX_VTAGACT_VTAG0_DEF_MASK GENMASK(25, 16)
34 #define NIX_TX_VTAGACT_VTAG1_RELPTR_MASK GENMASK(39, 32)
35 #define NIX_TX_VTAGACT_VTAG1_LID_MASK GENMASK(42, 40)
36 #define NIX_TX_VTAGACT_VTAG1_OP_MASK GENMASK(45, 44)
37 #define NIX_TX_VTAGACT_VTAG1_DEF_MASK GENMASK(57, 48)
39 struct npc_rx_parse_nibble_s {
62 const char *intf_str[] = {
67 const char *ltype_str[NPC_MAX_LID][NPC_MAX_LT] = {
68 [NPC_LID_LA][0] = "NONE",
69 [NPC_LID_LA][NPC_LT_LA_ETHER] = "LA_ETHER",
70 [NPC_LID_LA][NPC_LT_LA_IH_NIX_ETHER] = "LA_IH_NIX_ETHER",
71 [NPC_LID_LA][NPC_LT_LA_HIGIG2_ETHER] = "LA_HIGIG2_ETHER",
72 [NPC_LID_LA][NPC_LT_LA_IH_NIX_HIGIG2_ETHER] = "LA_IH_NIX_HIGIG2_ETHER",
73 [NPC_LID_LB][0] = "NONE",
74 [NPC_LID_LB][NPC_LT_LB_CTAG] = "LB_CTAG",
75 [NPC_LID_LB][NPC_LT_LB_STAG_QINQ] = "LB_STAG_QINQ",
76 [NPC_LID_LB][NPC_LT_LB_ETAG] = "LB_ETAG",
77 [NPC_LID_LB][NPC_LT_LB_EXDSA] = "LB_EXDSA",
78 [NPC_LID_LB][NPC_LT_LB_VLAN_EXDSA] = "LB_VLAN_EXDSA",
79 [NPC_LID_LC][0] = "NONE",
80 [NPC_LID_LC][NPC_LT_LC_IP] = "LC_IP",
81 [NPC_LID_LC][NPC_LT_LC_IP6] = "LC_IP6",
82 [NPC_LID_LC][NPC_LT_LC_ARP] = "LC_ARP",
83 [NPC_LID_LC][NPC_LT_LC_IP6_EXT] = "LC_IP6_EXT",
84 [NPC_LID_LC][NPC_LT_LC_NGIO] = "LC_NGIO",
85 [NPC_LID_LD][0] = "NONE",
86 [NPC_LID_LD][NPC_LT_LD_ICMP] = "LD_ICMP",
87 [NPC_LID_LD][NPC_LT_LD_ICMP6] = "LD_ICMP6",
88 [NPC_LID_LD][NPC_LT_LD_UDP] = "LD_UDP",
89 [NPC_LID_LD][NPC_LT_LD_TCP] = "LD_TCP",
90 [NPC_LID_LD][NPC_LT_LD_SCTP] = "LD_SCTP",
91 [NPC_LID_LD][NPC_LT_LD_GRE] = "LD_GRE",
92 [NPC_LID_LD][NPC_LT_LD_NVGRE] = "LD_NVGRE",
93 [NPC_LID_LE][0] = "NONE",
94 [NPC_LID_LE][NPC_LT_LE_VXLAN] = "LE_VXLAN",
95 [NPC_LID_LE][NPC_LT_LE_ESP] = "LE_ESP",
96 [NPC_LID_LE][NPC_LT_LE_GTPC] = "LE_GTPC",
97 [NPC_LID_LE][NPC_LT_LE_GTPU] = "LE_GTPU",
98 [NPC_LID_LE][NPC_LT_LE_GENEVE] = "LE_GENEVE",
99 [NPC_LID_LE][NPC_LT_LE_VXLANGPE] = "LE_VXLANGPE",
100 [NPC_LID_LF][0] = "NONE",
101 [NPC_LID_LF][NPC_LT_LF_TU_ETHER] = "LF_TU_ETHER",
102 [NPC_LID_LG][0] = "NONE",
103 [NPC_LID_LG][NPC_LT_LG_TU_IP] = "LG_TU_IP",
104 [NPC_LID_LG][NPC_LT_LG_TU_IP6] = "LG_TU_IP6",
105 [NPC_LID_LH][0] = "NONE",
106 [NPC_LID_LH][NPC_LT_LH_TU_UDP] = "LH_TU_UDP",
107 [NPC_LID_LH][NPC_LT_LH_TU_TCP] = "LH_TU_TCP",
108 [NPC_LID_LH][NPC_LT_LH_TU_SCTP] = "LH_TU_SCTP",
109 [NPC_LID_LH][NPC_LT_LH_TU_ESP] = "LH_TU_ESP",
113 otx2_get_nibbles(struct rte_flow *flow, uint16_t size, uint32_t bit_offset)
115 uint32_t byte_index, noffset;
119 bytes = (uint8_t *)flow->mcam_data;
120 mask = (1ULL << (size * 4)) - 1;
121 byte_index = bit_offset / 8;
122 noffset = bit_offset % 8;
123 data = *(uint16_t *)&bytes[byte_index];
131 otx2_flow_print_parse_nibbles(FILE *file, struct rte_flow *flow,
132 uint64_t parse_nibbles)
134 struct npc_rx_parse_nibble_s *rx_parse;
135 uint32_t data, offset = 0;
137 rx_parse = (struct npc_rx_parse_nibble_s *)&parse_nibbles;
139 if (rx_parse->chan) {
140 data = otx2_get_nibbles(flow, 3, offset);
141 fprintf(file, "\tNPC_PARSE_NIBBLE_CHAN:%#03X\n", data);
145 if (rx_parse->errlev) {
146 data = otx2_get_nibbles(flow, 1, offset);
147 fprintf(file, "\tNPC_PARSE_NIBBLE_ERRLEV:%#X\n", data);
151 if (rx_parse->errcode) {
152 data = otx2_get_nibbles(flow, 2, offset);
153 fprintf(file, "\tNPC_PARSE_NIBBLE_ERRCODE:%#02X\n", data);
157 if (rx_parse->l2l3bm) {
158 data = otx2_get_nibbles(flow, 1, offset);
159 fprintf(file, "\tNPC_PARSE_NIBBLE_L2L3_BCAST:%#X\n", data);
163 if (rx_parse->latype) {
164 data = otx2_get_nibbles(flow, 1, offset);
165 fprintf(file, "\tNPC_PARSE_NIBBLE_LA_LTYPE:%s\n",
166 ltype_str[NPC_LID_LA][data]);
170 if (rx_parse->laflags) {
171 data = otx2_get_nibbles(flow, 2, offset);
172 fprintf(file, "\tNPC_PARSE_NIBBLE_LA_FLAGS:%#02X\n", data);
176 if (rx_parse->lbtype) {
177 data = otx2_get_nibbles(flow, 1, offset);
178 fprintf(file, "\tNPC_PARSE_NIBBLE_LB_LTYPE:%s\n",
179 ltype_str[NPC_LID_LB][data]);
183 if (rx_parse->lbflags) {
184 data = otx2_get_nibbles(flow, 2, offset);
185 fprintf(file, "\tNPC_PARSE_NIBBLE_LB_FLAGS:%#02X\n", data);
189 if (rx_parse->lctype) {
190 data = otx2_get_nibbles(flow, 1, offset);
191 fprintf(file, "\tNPC_PARSE_NIBBLE_LC_LTYPE:%s\n",
192 ltype_str[NPC_LID_LC][data]);
196 if (rx_parse->lcflags) {
197 data = otx2_get_nibbles(flow, 2, offset);
198 fprintf(file, "\tNPC_PARSE_NIBBLE_LC_FLAGS:%#02X\n", data);
202 if (rx_parse->ldtype) {
203 data = otx2_get_nibbles(flow, 1, offset);
204 fprintf(file, "\tNPC_PARSE_NIBBLE_LD_LTYPE:%s\n",
205 ltype_str[NPC_LID_LD][data]);
209 if (rx_parse->ldflags) {
210 data = otx2_get_nibbles(flow, 2, offset);
211 fprintf(file, "\tNPC_PARSE_NIBBLE_LD_FLAGS:%#02X\n", data);
215 if (rx_parse->letype) {
216 data = otx2_get_nibbles(flow, 1, offset);
217 fprintf(file, "\tNPC_PARSE_NIBBLE_LE_LTYPE:%s\n",
218 ltype_str[NPC_LID_LE][data]);
222 if (rx_parse->leflags) {
223 data = otx2_get_nibbles(flow, 2, offset);
224 fprintf(file, "\tNPC_PARSE_NIBBLE_LE_FLAGS:%#02X\n", data);
228 if (rx_parse->lftype) {
229 data = otx2_get_nibbles(flow, 1, offset);
230 fprintf(file, "\tNPC_PARSE_NIBBLE_LF_LTYPE:%s\n",
231 ltype_str[NPC_LID_LF][data]);
235 if (rx_parse->lfflags) {
236 data = otx2_get_nibbles(flow, 2, offset);
237 fprintf(file, "\tNPC_PARSE_NIBBLE_LF_FLAGS:%#02X\n", data);
241 if (rx_parse->lgtype) {
242 data = otx2_get_nibbles(flow, 1, offset);
243 fprintf(file, "\tNPC_PARSE_NIBBLE_LG_LTYPE:%s\n",
244 ltype_str[NPC_LID_LG][data]);
248 if (rx_parse->lgflags) {
249 data = otx2_get_nibbles(flow, 2, offset);
250 fprintf(file, "\tNPC_PARSE_NIBBLE_LG_FLAGS:%#02X\n", data);
254 if (rx_parse->lhtype) {
255 data = otx2_get_nibbles(flow, 1, offset);
256 fprintf(file, "\tNPC_PARSE_NIBBLE_LH_LTYPE:%s\n",
257 ltype_str[NPC_LID_LH][data]);
261 if (rx_parse->lhflags) {
262 data = otx2_get_nibbles(flow, 2, offset);
263 fprintf(file, "\tNPC_PARSE_NIBBLE_LH_FLAGS:%#02X\n", data);
268 otx2_flow_print_xtractinfo(FILE *file, struct npc_xtract_info *lfinfo,
269 struct rte_flow *flow, int lid, int lt)
271 uint8_t *datastart, *maskstart;
274 datastart = (uint8_t *)&flow->mcam_data + lfinfo->key_off;
275 maskstart = (uint8_t *)&flow->mcam_mask + lfinfo->key_off;
277 fprintf(file, "\t%s, hdr offset:%#X, len:%#X, key offset:%#X, ",
278 ltype_str[lid][lt], lfinfo->hdr_off,
279 lfinfo->len, lfinfo->key_off);
281 fprintf(file, "Data:0X");
282 for (i = lfinfo->len - 1; i >= 0; i--)
283 fprintf(file, "%02X", datastart[i]);
287 fprintf(file, "Mask:0X");
289 for (i = lfinfo->len - 1; i >= 0; i--)
290 fprintf(file, "%02X", maskstart[i]);
296 otx2_flow_print_item(FILE *file, struct otx2_eth_dev *hw,
297 struct npc_xtract_info *xinfo, struct rte_flow *flow,
298 int intf, int lid, int lt, int ld)
300 struct otx2_npc_flow_info *npc_flow = &hw->npc_flow;
301 struct npc_xtract_info *lflags_info;
304 otx2_flow_print_xtractinfo(file, xinfo, flow, lid, lt);
306 if (xinfo->flags_enable) {
307 lf_cfg = npc_flow->prx_lfcfg[ld].i;
310 for (i = 0; i < NPC_MAX_LFL; i++) {
311 lflags_info = npc_flow->prx_fxcfg[intf]
314 otx2_flow_print_xtractinfo(file, lflags_info,
322 otx2_flow_dump_patterns(FILE *file, struct otx2_eth_dev *hw,
323 struct rte_flow *flow)
325 struct otx2_npc_flow_info *npc_flow = &hw->npc_flow;
326 struct npc_lid_lt_xtract_info *lt_xinfo;
327 struct npc_xtract_info *xinfo;
328 uint32_t intf, lid, ld, i;
329 uint64_t parse_nibbles;
332 intf = flow->nix_intf;
333 parse_nibbles = npc_flow->keyx_supp_nmask[intf];
334 otx2_flow_print_parse_nibbles(file, flow, parse_nibbles);
336 for (i = 0; i < flow->num_patterns; i++) {
337 lid = flow->dump_data[i].lid;
338 ltype = flow->dump_data[i].ltype;
339 lt_xinfo = &npc_flow->prx_dxcfg[intf][lid][ltype];
341 for (ld = 0; ld < NPC_MAX_LD; ld++) {
342 xinfo = <_xinfo->xtract[ld];
345 otx2_flow_print_item(file, hw, xinfo, flow, intf, lid,
352 otx2_flow_dump_tx_action(FILE *file, uint64_t npc_action)
354 char index_name[NPC_MAX_FIELD_NAME_SIZE] = "Index:";
355 uint32_t tx_op, index, match_id;
357 tx_op = npc_action & NPC_RX_ACTIONOP_MASK;
359 fprintf(file, "\tActionOp:");
362 case NIX_TX_ACTIONOP_DROP:
363 fprintf(file, "NIX_TX_ACTIONOP_DROP (%lu)\n",
364 (uint64_t)NIX_RX_ACTIONOP_DROP);
366 case NIX_TX_ACTIONOP_UCAST_DEFAULT:
367 fprintf(file, "NIX_TX_ACTIONOP_UCAST_DEFAULT (%lu)\n",
368 (uint64_t)NIX_TX_ACTIONOP_UCAST_DEFAULT);
370 case NIX_TX_ACTIONOP_UCAST_CHAN:
371 fprintf(file, "NIX_TX_ACTIONOP_UCAST_DEFAULT (%lu)\n",
372 (uint64_t)NIX_TX_ACTIONOP_UCAST_CHAN);
373 strncpy(index_name, "Transmit Channel:",
374 NPC_MAX_FIELD_NAME_SIZE);
376 case NIX_TX_ACTIONOP_MCAST:
377 fprintf(file, "NIX_TX_ACTIONOP_MCAST (%lu)\n",
378 (uint64_t)NIX_TX_ACTIONOP_MCAST);
379 strncpy(index_name, "Multicast Table Index:",
380 NPC_MAX_FIELD_NAME_SIZE);
382 case NIX_TX_ACTIONOP_DROP_VIOL:
383 fprintf(file, "NIX_TX_ACTIONOP_DROP_VIOL (%lu)\n",
384 (uint64_t)NIX_TX_ACTIONOP_DROP_VIOL);
388 index = ((npc_action & NPC_TX_ACTION_INDEX_MASK) >> 12) & 0xFFFFF;
390 fprintf(file, "\t%s:%#05X\n", index_name, index);
392 match_id = ((npc_action & NPC_TX_ACTION_MATCH_MASK) >> 32) & 0xFFFF;
394 fprintf(file, "\tMatch Id:%#04X\n", match_id);
398 otx2_flow_dump_rx_action(FILE *file, uint64_t npc_action)
400 uint32_t rx_op, pf_func, index, match_id, flowkey_alg;
401 char index_name[NPC_MAX_FIELD_NAME_SIZE] = "Index:";
403 rx_op = npc_action & NPC_RX_ACTIONOP_MASK;
405 fprintf(file, "\tActionOp:");
408 case NIX_RX_ACTIONOP_DROP:
409 fprintf(file, "NIX_RX_ACTIONOP_DROP (%lu)\n",
410 (uint64_t)NIX_RX_ACTIONOP_DROP);
412 case NIX_RX_ACTIONOP_UCAST:
413 fprintf(file, "NIX_RX_ACTIONOP_UCAST (%lu)\n",
414 (uint64_t)NIX_RX_ACTIONOP_UCAST);
415 strncpy(index_name, "RQ Index", NPC_MAX_FIELD_NAME_SIZE);
417 case NIX_RX_ACTIONOP_UCAST_IPSEC:
418 fprintf(file, "NIX_RX_ACTIONOP_UCAST_IPSEC (%lu)\n",
419 (uint64_t)NIX_RX_ACTIONOP_UCAST_IPSEC);
420 strncpy(index_name, "RQ Index:", NPC_MAX_FIELD_NAME_SIZE);
422 case NIX_RX_ACTIONOP_MCAST:
423 fprintf(file, "NIX_RX_ACTIONOP_MCAST (%lu)\n",
424 (uint64_t)NIX_RX_ACTIONOP_MCAST);
425 strncpy(index_name, "Multicast/mirror table index",
426 NPC_MAX_FIELD_NAME_SIZE);
428 case NIX_RX_ACTIONOP_RSS:
429 fprintf(file, "NIX_RX_ACTIONOP_RSS (%lu)\n",
430 (uint64_t)NIX_RX_ACTIONOP_RSS);
431 strncpy(index_name, "RSS Group Index",
432 NPC_MAX_FIELD_NAME_SIZE);
434 case NIX_RX_ACTIONOP_PF_FUNC_DROP:
435 fprintf(file, "NIX_RX_ACTIONOP_PF_FUNC_DROP (%lu)\n",
436 (uint64_t)NIX_RX_ACTIONOP_PF_FUNC_DROP);
438 case NIX_RX_ACTIONOP_MIRROR:
439 fprintf(file, "NIX_RX_ACTIONOP_MIRROR (%lu)\n",
440 (uint64_t)NIX_RX_ACTIONOP_MIRROR);
441 strncpy(index_name, "Multicast/mirror table index",
442 NPC_MAX_FIELD_NAME_SIZE);
446 pf_func = ((npc_action & NPC_RX_ACTION_PFFUNC_MASK) >> 4) & 0xFFFF;
448 fprintf(file, "\tPF_FUNC: %#04X\n", pf_func);
450 index = ((npc_action & NPC_RX_ACTION_INDEX_MASK) >> 20) & 0xFFFFF;
452 fprintf(file, "\t%s:%#05X\n", index_name, index);
454 match_id = ((npc_action & NPC_RX_ACTION_MATCH_MASK) >> 40) & 0xFFFF;
456 fprintf(file, "\tMatch Id:%#04X\n", match_id);
458 flowkey_alg = ((npc_action & NPC_RX_ACTION_FLOWKEY_MASK) >> 56) & 0x1F;
460 fprintf(file, "\tFlow Key Alg:%#X\n", flowkey_alg);
464 otx2_flow_dump_parsed_action(FILE *file, uint64_t npc_action, bool is_rx)
467 fprintf(file, "NPC RX Action:%#016lX\n", npc_action);
468 otx2_flow_dump_rx_action(file, npc_action);
470 fprintf(file, "NPC TX Action:%#016lX\n", npc_action);
471 otx2_flow_dump_tx_action(file, npc_action);
476 otx2_flow_dump_rx_vtag_action(FILE *file, uint64_t vtag_action)
478 uint32_t type, lid, relptr;
480 if (vtag_action & NIX_RX_VTAGACT_VTAG0_VALID_MASK) {
481 relptr = vtag_action & NIX_RX_VTAGACT_VTAG0_RELPTR_MASK;
482 lid = ((vtag_action & NIX_RX_VTAGACT_VTAG0_LID_MASK) >> 8)
484 type = ((vtag_action & NIX_RX_VTAGACT_VTAG0_TYPE_MASK) >> 12)
487 fprintf(file, "\tVTAG0:relptr:%#X\n", relptr);
488 fprintf(file, "\tlid:%#X\n", lid);
489 fprintf(file, "\ttype:%#X\n", type);
492 if (vtag_action & NIX_RX_VTAGACT_VTAG1_VALID_MASK) {
493 relptr = ((vtag_action & NIX_RX_VTAGACT_VTAG1_RELPTR_MASK)
495 lid = ((vtag_action & NIX_RX_VTAGACT_VTAG1_LID_MASK) >> 40)
497 type = ((vtag_action & NIX_RX_VTAGACT_VTAG1_TYPE_MASK) >> 44)
500 fprintf(file, "\tVTAG1:relptr:%#X\n", relptr);
501 fprintf(file, "\tlid:%#X\n", lid);
502 fprintf(file, "\ttype:%#X\n", type);
507 otx2_get_vtag_opname(uint32_t op, char *opname, int len)
511 strncpy(opname, "NOP", len - 1);
514 strncpy(opname, "INSERT", len - 1);
517 strncpy(opname, "REPLACE", len - 1);
523 otx2_flow_dump_tx_vtag_action(FILE *file, uint64_t vtag_action)
525 uint32_t relptr, lid, op, vtag_def;
528 relptr = vtag_action & NIX_TX_VTAGACT_VTAG0_RELPTR_MASK;
529 lid = ((vtag_action & NIX_TX_VTAGACT_VTAG0_LID_MASK) >> 8) & 0x7;
530 op = ((vtag_action & NIX_TX_VTAGACT_VTAG0_OP_MASK) >> 12) & 0x3;
531 vtag_def = ((vtag_action & NIX_TX_VTAGACT_VTAG0_DEF_MASK) >> 16)
534 otx2_get_vtag_opname(op, opname, sizeof(opname));
536 fprintf(file, "\tVTAG0 relptr:%#X\n", relptr);
537 fprintf(file, "\tlid:%#X\n", lid);
538 fprintf(file, "\top:%s\n", opname);
539 fprintf(file, "\tvtag_def:%#X\n", vtag_def);
541 relptr = ((vtag_action & NIX_TX_VTAGACT_VTAG1_RELPTR_MASK) >> 32)
543 lid = ((vtag_action & NIX_TX_VTAGACT_VTAG1_LID_MASK) >> 40) & 0x7;
544 op = ((vtag_action & NIX_TX_VTAGACT_VTAG1_OP_MASK) >> 44) & 0x3;
545 vtag_def = ((vtag_action & NIX_TX_VTAGACT_VTAG1_DEF_MASK) >> 48)
548 otx2_get_vtag_opname(op, opname, sizeof(opname));
550 fprintf(file, "\tVTAG1:relptr:%#X\n", relptr);
551 fprintf(file, "\tlid:%#X\n", lid);
552 fprintf(file, "\top:%s\n", opname);
553 fprintf(file, "\tvtag_def:%#X\n", vtag_def);
557 otx2_flow_dump_vtag_action(FILE *file, uint64_t vtag_action, bool is_rx)
560 fprintf(file, "NPC RX VTAG Action:%#016lX\n", vtag_action);
561 otx2_flow_dump_rx_vtag_action(file, vtag_action);
563 fprintf(file, "NPC TX VTAG Action:%#016lX\n", vtag_action);
564 otx2_flow_dump_tx_vtag_action(file, vtag_action);
569 otx2_flow_dump(FILE *file, struct otx2_eth_dev *hw, struct rte_flow *flow)
574 fprintf(file, "MCAM Index:%d\n", flow->mcam_id);
575 fprintf(file, "Interface :%s (%d)\n", intf_str[flow->nix_intf],
577 fprintf(file, "Priority :%d\n", flow->priority);
579 if (flow->nix_intf == NIX_INTF_RX)
582 otx2_flow_dump_parsed_action(file, flow->npc_action, is_rx);
583 otx2_flow_dump_vtag_action(file, flow->vtag_action, is_rx);
584 fprintf(file, "Patterns:\n");
585 otx2_flow_dump_patterns(file, hw, flow);
587 fprintf(file, "MCAM Raw Data :\n");
589 for (i = 0; i < OTX2_MAX_MCAM_WIDTH_DWORDS; i++) {
590 fprintf(file, "\tDW%d :%016lX\n", i, flow->mcam_data[i]);
591 fprintf(file, "\tDW%d_Mask:%016lX\n", i, flow->mcam_mask[i]);