/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-2019 Broadcom
+ * Copyright(c) 2014-2021 Broadcom
* All rights reserved.
*/
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:
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:
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:
case TF_DEVICE_MODULE_TYPE_IDENTIFIER:
return tf_ident_2_str(mod_type);
case TF_DEVICE_MODULE_TYPE_TABLE:
- return tf_tcam_tbl_2_str(mod_type);
- case TF_DEVICE_MODULE_TYPE_TCAM:
return tf_tbl_type_2_str(mod_type);
+ case TF_DEVICE_MODULE_TYPE_TCAM:
+ return tf_tcam_tbl_2_str(mod_type);
case TF_DEVICE_MODULE_TYPE_EM:
return tf_em_tbl_type_2_str(mod_type);
default: