event/dlb2: add v2.5 sequence number management
[dpdk.git] / drivers / net / bnxt / tf_core / tf_util.c
index 3d26d3f..ca37df5 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-2019 Broadcom
+ * Copyright(c) 2014-2021 Broadcom
  * All rights reserved.
  */
 
@@ -24,8 +24,10 @@ const char *
 tf_ident_2_str(enum tf_identifier_type id_type)
 {
        switch (id_type) {
-       case TF_IDENT_TYPE_L2_CTXT:
-               return "l2_ctxt_remap";
+       case TF_IDENT_TYPE_L2_CTXT_HIGH:
+               return "l2_ctxt_remap_high";
+       case TF_IDENT_TYPE_L2_CTXT_LOW:
+               return "l2_ctxt_remap_low";
        case TF_IDENT_TYPE_PROF_FUNC:
                return "prof_func";
        case TF_IDENT_TYPE_WC_PROF:
@@ -43,8 +45,10 @@ const char *
 tf_tcam_tbl_2_str(enum tf_tcam_tbl_type tcam_type)
 {
        switch (tcam_type) {
-       case TF_TCAM_TBL_TYPE_L2_CTXT_TCAM:
-               return "l2_ctxt_tcam";
+       case TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_HIGH:
+               return "l2_ctxt_tcam_high";
+       case TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_LOW:
+               return "l2_ctxt_tcam_low";
        case TF_TCAM_TBL_TYPE_PROF_TCAM:
                return "prof_tcam";
        case TF_TCAM_TBL_TYPE_WC_TCAM:
@@ -88,14 +92,8 @@ tf_tbl_type_2_str(enum tf_tbl_type tbl_type)
                return "NAT Source Port";
        case TF_TBL_TYPE_ACT_MODIFY_DPORT:
                return "NAT Destination Port";
-       case TF_TBL_TYPE_ACT_MODIFY_IPV4_SRC:
-               return "NAT IPv4 Source";
-       case TF_TBL_TYPE_ACT_MODIFY_IPV4_DEST:
-               return "NAT IPv4 Destination";
-       case TF_TBL_TYPE_ACT_MODIFY_IPV6_SRC:
-               return "NAT IPv6 Source";
-       case TF_TBL_TYPE_ACT_MODIFY_IPV6_DEST:
-               return "NAT IPv6 Destination";
+       case TF_TBL_TYPE_ACT_MODIFY_IPV4:
+               return "NAT IPv4";
        case TF_TBL_TYPE_METER_PROF:
                return "Meter Profile";
        case TF_TBL_TYPE_METER_INST: