1111#include "bnxt_ulp_utils.h"
1212#include "bnxt_ulp_tf.h"
1313
14- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
15- #include "ulp_template_debug_proto.h"
16- #include "ulp_tf_debug.h"
17- #endif
1814
1915/* Internal function to write the tcam entry */
2016static int32_t
@@ -50,9 +46,6 @@ ulp_mapper_tf_tcam_tbl_entry_write(struct bnxt_ulp_mapper_parms *parms,
5046 tf_dir_2_str (sparms .dir ), sparms .idx );
5147 return - EIO ;
5248 }
53- BNXT_DRV_INF ("tcam[%s][%s][%x] write success.\n" ,
54- tf_tcam_tbl_2_str (sparms .tcam_tbl_type ),
55- tf_dir_2_str (sparms .dir ), sparms .idx );
5649
5750 /* Mark action */
5851 rc = ulp_mapper_mark_act_ptr_process (parms , tbl );
@@ -61,11 +54,6 @@ ulp_mapper_tf_tcam_tbl_entry_write(struct bnxt_ulp_mapper_parms *parms,
6154 return rc ;
6255 }
6356
64- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
65- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
66- ulp_mapper_tcam_entry_dump ("TCAM" , idx , tbl , key , mask , data );
67- #endif
68- #endif
6957 return rc ;
7058}
7159
@@ -353,11 +341,6 @@ ulp_mapper_tf_em_tbl_process(struct bnxt_ulp_mapper_parms *parms,
353341 BNXT_DRV_DBG (ERR , "Failed to build the result blob\n" );
354342 return rc ;
355343 }
356- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
357- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
358- ulp_mapper_result_dump ("EM Result" , tbl , & data );
359- #endif
360- #endif
361344 if (dparms -> em_dynamic_pad_en ) {
362345 uint32_t abits = dparms -> em_blk_align_bits ;
363346
@@ -372,11 +355,6 @@ ulp_mapper_tf_em_tbl_process(struct bnxt_ulp_mapper_parms *parms,
372355 ulp_blob_pad_align (& data , abits );
373356
374357 ulp_blob_perform_byte_reverse (& data , ULP_BITS_2_BYTE (abits ));
375- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
376- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
377- ulp_mapper_result_dump ("EM Merged Result" , tbl , & data );
378- #endif
379- #endif
380358 }
381359
382360 /* do the transpose for the internal EM keys */
@@ -389,11 +367,6 @@ ulp_mapper_tf_em_tbl_process(struct bnxt_ulp_mapper_parms *parms,
389367 }
390368 tmplen = ulp_blob_data_len_get (& key );
391369 ulp_blob_perform_byte_reverse (& key , ULP_BITS_2_BYTE (tmplen ));
392- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
393- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
394- ulp_mapper_result_dump ("EM Key Transpose" , tbl , & key );
395- #endif
396- #endif
397370 }
398371
399372 rc = bnxt_ulp_cntxt_tbl_scope_id_get (parms -> ulp_ctx ,
@@ -444,12 +417,6 @@ ulp_mapper_tf_em_tbl_process(struct bnxt_ulp_mapper_parms *parms,
444417 return rc ;
445418 }
446419
447- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
448- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
449- ulp_mapper_em_dump ("EM" , & key , & data , & iparms );
450- /* tf_dump_tables(tfp, iparms.tbl_scope_id); */
451- #endif
452- #endif
453420 /* Mark action process */
454421 if (mtype == BNXT_ULP_FLOW_MEM_TYPE_EXT &&
455422 tbl -> resource_type == TF_MEM_EXTERNAL )
@@ -852,9 +819,6 @@ ulp_mapper_tf_index_tbl_process(struct bnxt_ulp_mapper_parms *parms,
852819 sparms .idx , rc );
853820 goto error ;
854821 }
855- BNXT_DRV_INF ("Index table[%s][%s][%x] write successful.\n" ,
856- tf_tbl_type_2_str (sparms .type ),
857- tf_dir_2_str (sparms .dir ), sparms .idx );
858822
859823 /* Calculate action record size */
860824 if (tbl -> resource_type == TF_TBL_TYPE_EXT ) {
@@ -1032,10 +996,6 @@ ulp_mapper_tf_if_tbl_process(struct bnxt_ulp_mapper_parms *parms,
1032996 iftbl_params .idx , rc );
1033997 return rc ;
1034998 }
1035- BNXT_DRV_INF ("Set table[%s][%s][%x] success.\n" ,
1036- tf_if_tbl_2_str (iftbl_params .type ),
1037- tf_dir_2_str (iftbl_params .dir ),
1038- iftbl_params .idx );
1039999
10401000 /*
10411001 * TBD: Need to look at the need to store idx in flow db for restore
@@ -1073,13 +1033,6 @@ ulp_mapper_tf_ident_alloc(struct bnxt_ulp_context *ulp_ctx,
10731033 return rc ;
10741034 }
10751035 * identifier_id = iparms .id ;
1076- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
1077- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
1078- BNXT_DRV_INF ("Allocated Identifier [%s]:[%s] = 0x%X\n" ,
1079- tf_dir_2_str (iparms .dir ),
1080- tf_ident_2_str (iparms .ident_type ), iparms .id );
1081- #endif
1082- #endif
10831036 return rc ;
10841037}
10851038
@@ -1104,14 +1057,6 @@ ulp_mapper_tf_ident_free(struct bnxt_ulp_context *ulp_ctx,
11041057 free_parms .id = res -> resource_hndl ;
11051058
11061059 (void )tf_free_identifier (tfp , & free_parms );
1107- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
1108- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
1109- BNXT_DRV_INF ("Freed Identifier [%s]:[%s] = 0x%X\n" ,
1110- tf_dir_2_str (free_parms .dir ),
1111- tf_ident_2_str (free_parms .ident_type ),
1112- (uint32_t )free_parms .id );
1113- #endif
1114- #endif
11151060 return rc ;
11161061}
11171062
@@ -1219,14 +1164,6 @@ ulp_mapper_tf_index_entry_free(struct bnxt_ulp_context *ulp,
12191164 if (fparms .type == TF_TBL_TYPE_FULL_ACT_RECORD )
12201165 (void )ulp_mapper_clear_full_action_record (tfp , ulp , & fparms );
12211166
1222- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
1223- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
1224- BNXT_DRV_INF ("Free index table [%s]:[%s] = 0x%X\n" ,
1225- tf_dir_2_str (fparms .dir ),
1226- tf_tbl_type_2_str (fparms .type ),
1227- (uint32_t )fparms .idx );
1228- #endif
1229- #endif
12301167 return tf_free_tbl_entry (tfp , & fparms );
12311168}
12321169
@@ -1267,14 +1204,6 @@ ulp_mapper_tf_index_tbl_alloc_process(struct bnxt_ulp_context *ulp,
12671204
12681205 * index = aparms .idx ;
12691206
1270- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG
1271- #ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER
1272- BNXT_DRV_DBG (DEBUG , "Allocated Table Index [%s][%s] = 0x%04x\n" ,
1273- tf_tbl_type_2_str (aparms .type ),
1274- tf_dir_2_str (aparms .dir ),
1275- aparms .idx );
1276- #endif
1277- #endif
12781207 return rc ;
12791208}
12801209
0 commit comments