return "sp_tcam";
case TF_TCAM_TBL_TYPE_CT_RULE_TCAM:
return "ct_rule_tcam";
+#ifdef TF_TCAM_SHARED
+ case TF_TCAM_TBL_TYPE_WC_TCAM_HIGH:
+ return "wc_tcam_hi";
+ case TF_TCAM_TBL_TYPE_WC_TCAM_LOW:
+ return "wc_tcam_lo";
+#endif
default:
return "Invalid tcam table type";
}
return "Mirror";
case TF_TBL_TYPE_UPAR:
return "UPAR";
- case TF_TBL_TYPE_EPOCH0:
- return "EPOCH0";
- case TF_TBL_TYPE_EPOCH1:
- return "EPOCH1";
case TF_TBL_TYPE_METADATA:
return "Metadata";
- case TF_TBL_TYPE_CT_STATE:
- return "Connection State";
- case TF_TBL_TYPE_RANGE_PROF:
- return "Range Profile";
- case TF_TBL_TYPE_RANGE_ENTRY:
- return "Range";
- case TF_TBL_TYPE_LAG:
- return "Link Aggregation";
case TF_TBL_TYPE_EM_FKB:
return "EM Flexible Key Builder";
case TF_TBL_TYPE_WC_FKB:
}
const char *
-tf_device_module_type_subtype_2_str(enum tf_device_module_type dm_type,
- uint16_t mod_type)
+tf_module_subtype_2_str(enum tf_module_type module,
+ uint16_t subtype)
{
- switch (dm_type) {
- case TF_DEVICE_MODULE_TYPE_IDENTIFIER:
- return tf_ident_2_str(mod_type);
- case TF_DEVICE_MODULE_TYPE_TABLE:
- 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);
+ switch (module) {
+ case TF_MODULE_TYPE_IDENTIFIER:
+ return tf_ident_2_str(subtype);
+ case TF_MODULE_TYPE_TABLE:
+ return tf_tbl_type_2_str(subtype);
+ case TF_MODULE_TYPE_TCAM:
+ return tf_tcam_tbl_2_str(subtype);
+ case TF_MODULE_TYPE_EM:
+ return tf_em_tbl_type_2_str(subtype);
default:
- return "Invalid Device Module type";
+ return "Invalid Module type";
}
}
const char *
-tf_device_module_type_2_str(enum tf_device_module_type dm_type)
+tf_module_2_str(enum tf_module_type module)
{
- switch (dm_type) {
- case TF_DEVICE_MODULE_TYPE_IDENTIFIER:
+ switch (module) {
+ case TF_MODULE_TYPE_IDENTIFIER:
return "Identifier";
- case TF_DEVICE_MODULE_TYPE_TABLE:
+ case TF_MODULE_TYPE_TABLE:
return "Table";
- case TF_DEVICE_MODULE_TYPE_TCAM:
+ case TF_MODULE_TYPE_TCAM:
return "TCAM";
- case TF_DEVICE_MODULE_TYPE_EM:
+ case TF_MODULE_TYPE_EM:
return "EM";
default:
return "Invalid Device Module type";