crypto/cnxk: move IPsec SA creation to common
[dpdk.git] / drivers / common / cnxk / roc_npc_mcam_dump.c
index 19b4901..679e3d7 100644 (file)
@@ -69,6 +69,8 @@ static const char *const ltype_str[NPC_MAX_LID][NPC_MAX_LT] = {
        [NPC_LID_LA][NPC_LT_LA_IH_NIX_ETHER] = "LA_IH_NIX_ETHER",
        [NPC_LID_LA][NPC_LT_LA_HIGIG2_ETHER] = "LA_HIGIG2_ETHER",
        [NPC_LID_LA][NPC_LT_LA_IH_NIX_HIGIG2_ETHER] = "LA_IH_NIX_HIGIG2_ETHER",
+       [NPC_LID_LA][NPC_LT_LA_CUSTOM_PRE_L2_ETHER] =
+               "NPC_LT_LA_CUSTOM_PRE_L2_ETHER",
        [NPC_LID_LB][0] = "NONE",
        [NPC_LID_LB][NPC_LT_LB_CTAG] = "LB_CTAG",
        [NPC_LID_LB][NPC_LT_LB_STAG_QINQ] = "LB_STAG_QINQ",
@@ -159,6 +161,12 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
+       if (rx_parse->laflags) {
+               data = npc_get_nibbles(flow, 2, offset);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LA_FLAGS:%#02X\n", data);
+               offset += 8;
+       }
+
        if (rx_parse->latype) {
                data = npc_get_nibbles(flow, 1, offset);
                fprintf(file, "\tNPC_PARSE_NIBBLE_LA_LTYPE:%s\n",
@@ -166,9 +174,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->laflags) {
+       if (rx_parse->lbflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LA_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LB_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -179,9 +187,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->lbflags) {
+       if (rx_parse->lcflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LB_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LC_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -192,9 +200,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->lcflags) {
+       if (rx_parse->ldflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LC_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LD_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -205,9 +213,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->ldflags) {
+       if (rx_parse->leflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LD_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LE_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -218,9 +226,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->leflags) {
+       if (rx_parse->lfflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LE_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LF_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -231,9 +239,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->lfflags) {
+       if (rx_parse->lgflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LF_FLAGS:%#02X\n", data);
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LG_FLAGS:%#02X\n", data);
                offset += 8;
        }
 
@@ -244,10 +252,9 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                offset += 4;
        }
 
-       if (rx_parse->lgflags) {
+       if (rx_parse->lhflags) {
                data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LG_FLAGS:%#02X\n", data);
-               offset += 8;
+               fprintf(file, "\tNPC_PARSE_NIBBLE_LH_FLAGS:%#02X\n", data);
        }
 
        if (rx_parse->lhtype) {
@@ -256,11 +263,6 @@ npc_flow_print_parse_nibbles(FILE *file, struct roc_npc_flow *flow,
                        ltype_str[NPC_LID_LH][data]);
                offset += 4;
        }
-
-       if (rx_parse->lhflags) {
-               data = npc_get_nibbles(flow, 2, offset);
-               fprintf(file, "\tNPC_PARSE_NIBBLE_LH_FLAGS:%#02X\n", data);
-       }
 }
 
 static void