From patchwork Wed Oct 13 16:31:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 101384 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 89FA5A0C55; Wed, 13 Oct 2021 18:31:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D16004116C; Wed, 13 Oct 2021 18:31:12 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4009A4113E for ; Wed, 13 Oct 2021 18:31:09 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="313670756" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="313670756" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 09:31:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="480874400" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.27]) by orsmga007.jf.intel.com with ESMTP; 13 Oct 2021 09:31:03 -0700 From: Ferruh Yigit To: Ajit Khaparde , Somnath Kotur Cc: Ferruh Yigit , dev@dpdk.org Date: Wed, 13 Oct 2021 17:31:01 +0100 Message-Id: <20211013163101.2811453-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/bnxt: remove debug macro breaking build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Setting 'RTE_LIBRTE_BNXT_TRUFLOW_DEBUG' macro cause build error, removing it. Also with meson build system compile time debug macros should be documented in driver documentation, since there is not other way to figure out their existence. Signed-off-by: Ferruh Yigit Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_ulp/bnxt_tf_common.h | 4 - drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 5 - drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c | 12 --- drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 116 ----------------------- drivers/net/bnxt/tf_ulp/ulp_flow_db.h | 24 ----- drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c | 5 - drivers/net/bnxt/tf_ulp/ulp_mapper.c | 84 ---------------- drivers/net/bnxt/tf_ulp/ulp_matcher.c | 13 --- drivers/net/bnxt/tf_ulp/ulp_port_db.c | 9 -- 9 files changed, 272 deletions(-) diff --git a/drivers/net/bnxt/tf_ulp/bnxt_tf_common.h b/drivers/net/bnxt/tf_ulp/bnxt_tf_common.h index 6c4bcd2d90e0..d006464a75a3 100644 --- a/drivers/net/bnxt/tf_ulp/bnxt_tf_common.h +++ b/drivers/net/bnxt/tf_ulp/bnxt_tf_common.h @@ -13,11 +13,7 @@ #define BNXT_TF_DBG(lvl, fmt, args...) PMD_DRV_LOG(lvl, fmt, ## args) -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#define BNXT_TF_INF(fmt, args...) PMD_DRV_LOG(INFO, fmt, ## args) -#else #define BNXT_TF_INF(fmt, args...) -#endif #define BNXT_ULP_EM_FLOWS 8192 #define BNXT_ULP_1M_FLOWS 1000000 diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c index bbaa6dc46ae2..bd57229968e5 100644 --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c @@ -698,11 +698,6 @@ ulp_eem_tbl_scope_init(struct bnxt *bp) rc); return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG - BNXT_TF_DBG(DEBUG, "TableScope=0x%0x %d\n", - params.tbl_scope_id, - params.tbl_scope_id); -#endif rc = bnxt_ulp_cntxt_tbl_scope_id_set(bp->ulp_ctx, params.tbl_scope_id); if (rc) { BNXT_TF_DBG(ERR, "Unable to set table scope id\n"); diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c index 413e4c3b2677..2fec79a388c9 100644 --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c @@ -14,9 +14,6 @@ #include "ulp_ha_mgr.h" #include "ulp_tun.h" #include -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#include "ulp_template_debug_proto.h" -#endif static int32_t bnxt_ulp_flow_validate_args(const struct rte_flow_attr *attr, @@ -231,15 +228,6 @@ bnxt_ulp_flow_create(struct rte_eth_dev *dev, if (ret == BNXT_TF_RC_ERROR) goto free_fid; -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_PARSER - /* Dump the rte flow pattern */ - ulp_parser_hdr_info_dump(¶ms); - /* Dump the rte flow action */ - ulp_parser_act_info_dump(¶ms); -#endif -#endif - ret = ulp_matcher_pattern_match(¶ms, ¶ms.class_id); if (ret != BNXT_TF_RC_SUCCESS) goto free_fid; diff --git a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c index 1cb52e9bfa3f..79dc869e64db 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c +++ b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c @@ -559,9 +559,6 @@ ulp_flow_db_fid_alloc(struct bnxt_ulp_context *ulp_ctxt, if (flow_type == BNXT_ULP_FDB_TYPE_REGULAR) ulp_flow_db_func_id_set(flow_db, *fid, func_id); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG - BNXT_TF_DBG(ERR, "flow_id = %u:%u allocated\n", flow_type, *fid); -#endif /* return success */ return 0; } @@ -823,9 +820,6 @@ ulp_flow_db_fid_free(struct bnxt_ulp_context *ulp_ctxt, if (flow_type == BNXT_ULP_FDB_TYPE_REGULAR) ulp_flow_db_func_id_set(flow_db, fid, 0); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG - BNXT_TF_DBG(ERR, "flow_id = %u:%u freed\n", flow_type, fid); -#endif /* all good, return success */ return 0; } @@ -1835,113 +1829,3 @@ void ulp_flow_db_shared_session_set(struct ulp_flow_db_res_params *res, if (res && (shared & BNXT_ULP_SHARED_SESSION_YES)) res->fdb_flags |= ULP_FDB_FLAG_SHARED_SESSION; } - -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -/* - * Dump the entry details - * - * ulp_ctxt [in] Ptr to ulp_context - * - * returns none - */ -static void ulp_flow_db_res_dump(struct ulp_fdb_resource_info *r, - uint32_t *nxt_res) -{ - uint8_t res_func = ulp_flow_db_resource_func_get(r); - - BNXT_TF_DBG(DEBUG, "Resource func = %x, nxt_resource_idx = %x\n", - res_func, (ULP_FLOW_DB_RES_NXT_MASK & r->nxt_resource_idx)); - if (res_func == BNXT_ULP_RESOURCE_FUNC_EM_TABLE) - BNXT_TF_DBG(DEBUG, "EM Handle = 0x%016" PRIX64 "\n", - r->resource_em_handle); - else - BNXT_TF_DBG(DEBUG, "Handle = 0x%08x\n", r->resource_hndl); - - *nxt_res = 0; - ULP_FLOW_DB_RES_NXT_SET(*nxt_res, - r->nxt_resource_idx); -} - -/* - * Dump the flow entry details - * - * flow_db [in] Ptr to flow db - * fid [in] flow id - * - * returns none - */ -void -ulp_flow_db_debug_fid_dump(struct bnxt_ulp_flow_db *flow_db, uint32_t fid) -{ - struct ulp_fdb_resource_info *r; - struct bnxt_ulp_flow_tbl *flow_tbl; - uint32_t nxt_res = 0; - uint32_t def_flag = 0, reg_flag = 0; - - flow_tbl = &flow_db->flow_tbl; - if (ulp_flow_db_active_flows_bit_is_set(flow_db, - BNXT_ULP_FDB_TYPE_REGULAR, fid)) - reg_flag = 1; - if (ulp_flow_db_active_flows_bit_is_set(flow_db, - BNXT_ULP_FDB_TYPE_DEFAULT, fid)) - def_flag = 1; - - if (reg_flag && def_flag) - BNXT_TF_DBG(DEBUG, "RID = %u\n", fid); - else if (reg_flag) - BNXT_TF_DBG(DEBUG, "Regular fid = %u and func id = %u\n", - fid, flow_db->func_id_tbl[fid]); - else if (def_flag) - BNXT_TF_DBG(DEBUG, "Default fid = %u\n", fid); - else - return; - /* iterate the resource */ - nxt_res = fid; - do { - r = &flow_tbl->flow_resources[nxt_res]; - ulp_flow_db_res_dump(r, &nxt_res); - } while (nxt_res); -} - -/* - * Dump the flow database entry details - * - * ulp_ctxt [in] Ptr to ulp_context - * flow_id [in] if zero then all fids are dumped. - * - * returns none - */ -int32_t ulp_flow_db_debug_dump(struct bnxt_ulp_context *ulp_ctxt, - uint32_t flow_id) -{ - struct bnxt_ulp_flow_db *flow_db; - struct bnxt_ulp_flow_tbl *flow_tbl; - uint32_t fid; - - if (!ulp_ctxt || !ulp_ctxt->cfg_data) { - BNXT_TF_DBG(ERR, "Invalid Arguments\n"); - return -EINVAL; - } - flow_db = bnxt_ulp_cntxt_ptr2_flow_db_get(ulp_ctxt); - if (!flow_db) { - BNXT_TF_DBG(ERR, "Invalid Arguments\n"); - return -EINVAL; - } - - flow_tbl = &flow_db->flow_tbl; - if (flow_id) { - ulp_flow_db_debug_fid_dump(flow_db, flow_id); - return 0; - } - - BNXT_TF_DBG(DEBUG, "Dump flows = %u:%u\n", - flow_tbl->num_flows, - flow_tbl->num_resources); - BNXT_TF_DBG(DEBUG, "Head_index = %u, Tail_index = %u\n", - flow_tbl->head_index, flow_tbl->tail_index); - for (fid = 1; fid < flow_tbl->num_flows; fid++) - ulp_flow_db_debug_fid_dump(flow_db, fid); - BNXT_TF_DBG(DEBUG, "Done.\n"); - return 0; -} -#endif diff --git a/drivers/net/bnxt/tf_ulp/ulp_flow_db.h b/drivers/net/bnxt/tf_ulp/ulp_flow_db.h index 6dbec927454b..b27678dae95d 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_flow_db.h +++ b/drivers/net/bnxt/tf_ulp/ulp_flow_db.h @@ -411,28 +411,4 @@ ulp_flow_db_parent_flow_count_reset(struct bnxt_ulp_context *ulp_ctxt); void ulp_flow_db_shared_session_set(struct ulp_flow_db_res_params *res, enum bnxt_ulp_shared_session shared); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -/* - * Dump the flow entry details - * - * flow_db [in] Ptr to flow db - * fid [in] flow id - * - * returns none - */ -void -ulp_flow_db_debug_fid_dump(struct bnxt_ulp_flow_db *flow_db, uint32_t fid); - -/* - * Dump the flow database entry details - * - * ulp_ctxt [in] Ptr to ulp_context - * flow_id [in] if zero then all fids are dumped. - * - * returns none - */ -int32_t ulp_flow_db_debug_dump(struct bnxt_ulp_context *ulp_ctxt, - uint32_t flow_id); -#endif - #endif /* _ULP_FLOW_DB_H_ */ diff --git a/drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c b/drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c index 7b6db7a0f8b7..5279beb764f1 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c +++ b/drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c @@ -10,11 +10,6 @@ #include "ulp_mapper.h" #include "ulp_flow_db.h" -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#include "ulp_template_debug_proto.h" -#include "ulp_tf_debug.h" -#endif - /* Retrieve the generic table initialization parameters for the tbl_idx */ static struct bnxt_ulp_generic_tbl_params* ulp_mapper_gen_tbl_params_get(uint32_t tbl_idx) diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c index 059ee9983743..7774a5537a82 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c +++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c @@ -22,11 +22,6 @@ #include "ulp_ha_mgr.h" #include "bnxt_tf_pmd_shim.h" -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#include "ulp_template_debug_proto.h" -#include "ulp_tf_debug.h" -#endif - static uint8_t mapper_fld_zeros[16] = { 0 }; static uint8_t mapper_fld_ones[16] = { @@ -161,13 +156,6 @@ ulp_mapper_resource_ident_allocate(struct bnxt_ulp_context *ulp_ctx, tf_free_identifier(tfp, &fparms); return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - BNXT_TF_DBG(DEBUG, "Allocated Glb Res Ident [%s][%d][%d] = 0x%04x\n", - tf_dir_2_str(iparms.dir), - glb_res->glb_regfile_index, iparms.ident_type, iparms.id); -#endif -#endif return rc; } @@ -228,13 +216,6 @@ ulp_mapper_resource_index_tbl_alloc(struct bnxt_ulp_context *ulp_ctx, tf_free_tbl_entry(tfp, &free_parms); return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - BNXT_TF_DBG(DEBUG, "Allocated Glb Res Index [%s][%d][%d] = 0x%04x\n", - tf_dir_2_str(aparms.dir), - glb_res->glb_regfile_index, aparms.type, aparms.idx); -#endif -#endif return rc; } @@ -884,11 +865,6 @@ ulp_mapper_ident_process(struct bnxt_ulp_mapper_parms *parms, } else { *val = iparms.id; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_ident_field_dump("Ident", ident, tbl, iparms.id); -#endif -#endif return 0; error: @@ -984,11 +960,6 @@ ulp_mapper_ident_extract(struct bnxt_ulp_mapper_parms *parms, goto error; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_ident_field_dump("Ident", ident, tbl, sparms.search_id); -#endif -#endif return 0; error: @@ -1575,13 +1546,6 @@ ulp_mapper_field_opc_process(struct bnxt_ulp_mapper_parms *parms, } if (!rc) { -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - if (fld->field_src1 != BNXT_ULP_FIELD_SRC_ZERO && val_len) - ulp_mapper_field_dump(name, fld, blob, write_idx, val, - val_len); -#endif -#endif return rc; } error: @@ -1680,12 +1644,6 @@ ulp_mapper_tbl_result_build(struct bnxt_ulp_mapper_parms *parms, return rc; } } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - BNXT_TF_DBG(DEBUG, "Result dump\n"); - ulp_mapper_blob_dump(data); -#endif -#endif return rc; } @@ -1919,11 +1877,6 @@ ulp_mapper_tcam_tbl_entry_write(struct bnxt_ulp_mapper_parms *parms, return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_tcam_entry_dump("TCAM", idx, tbl, key, mask, data); -#endif -#endif return rc; } @@ -2029,12 +1982,6 @@ static void ulp_mapper_wc_tcam_tbl_post_process(struct ulp_blob *blob) { ulp_blob_perform_64B_word_swap(blob); ulp_blob_perform_64B_byte_swap(blob); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - BNXT_TF_DBG(INFO, "Dump after wc tcam post process\n"); - ulp_mapper_blob_dump(blob); -#endif -#endif } static int32_t ulp_mapper_tcam_is_wc_tcam(struct bnxt_ulp_mapper_tbl_info *tbl) @@ -2353,11 +2300,6 @@ ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms, BNXT_TF_DBG(ERR, "Failed to build the result blob\n"); return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_result_dump("EM Result", tbl, &data); -#endif -#endif if (dparms->dynamic_pad_en) { uint32_t abits = dparms->em_blk_align_bits; @@ -2372,11 +2314,6 @@ ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms, ulp_blob_pad_align(&data, abits); ulp_blob_perform_byte_reverse(&data, ULP_BITS_2_BYTE(abits)); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_result_dump("EM Merged Result", tbl, &data); -#endif -#endif } /* do the transpose for the internal EM keys */ @@ -2389,11 +2326,6 @@ ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms, } tmplen = ulp_blob_data_len_get(&key); ulp_blob_perform_byte_reverse(&key, ULP_BITS_2_BYTE(tmplen)); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_result_dump("EM Key Transpose", tbl, &key); -#endif -#endif } rc = bnxt_ulp_cntxt_tbl_scope_id_get(parms->ulp_ctx, @@ -2424,12 +2356,6 @@ ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms, return rc; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_em_dump("EM", &key, &data, &iparms); - /* tf_dump_tables(tfp, iparms.tbl_scope_id); */ -#endif -#endif /* Mark action process */ if (mtype == BNXT_ULP_FLOW_MEM_TYPE_EXT && tbl->resource_type == TF_MEM_EXTERNAL) @@ -2946,11 +2872,6 @@ ulp_mapper_gen_tbl_process(struct bnxt_ulp_mapper_parms *parms, /* The_key is a byte array convert it to a search index */ cache_key = ulp_blob_data_get(&key, &tmplen); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_gen_tbl_dump(tbl->resource_sub_type, tbl->direction, &key); -#endif -#endif /* get the generic table */ gen_tbl_list = &parms->mapper_data->gen_tbl_list[tbl_idx]; @@ -3760,11 +3681,6 @@ ulp_mapper_tbls_process(struct bnxt_ulp_mapper_parms *parms, uint32_t tid) for (tbl_idx = 0; tbl_idx < num_tbls && cond_goto;) { tbl = &tbls[tbl_idx]; cond_goto = tbl->execute_info.cond_true_goto; -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_MAPPER - ulp_mapper_table_dump(tbl, tbl_idx); -#endif -#endif /* Process the conditional func code opcodes */ if (ulp_mapper_func_info_process(parms, tbl)) { BNXT_TF_DBG(ERR, "Failed to process cond update\n"); diff --git a/drivers/net/bnxt/tf_ulp/ulp_matcher.c b/drivers/net/bnxt/tf_ulp/ulp_matcher.c index e06d8f628714..67fa61fc7c07 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_matcher.c +++ b/drivers/net/bnxt/tf_ulp/ulp_matcher.c @@ -6,10 +6,6 @@ #include "ulp_matcher.h" #include "ulp_utils.h" -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#include "ulp_template_debug_proto.h" -#endif - /* Utility function to calculate the class matcher hash */ static uint32_t ulp_matcher_class_hash_calculate(uint64_t hi_sig, uint64_t lo_sig) @@ -99,11 +95,6 @@ ulp_matcher_pattern_match(struct ulp_rte_parser_params *params, error: BNXT_TF_DBG(DEBUG, "Did not find any matching template\n"); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG - BNXT_TF_DBG(DEBUG, "class_hid:0x%x, Hdr:%" PRIX64 " Fld:%" PRIX64 "\n", - class_hid, params->hdr_bitmap.bits, - params->fld_bitmap.bits); -#endif *class_id = 0; return BNXT_TF_RC_ERROR; } @@ -151,10 +142,6 @@ ulp_matcher_action_match(struct ulp_rte_parser_params *params, error: BNXT_TF_DBG(DEBUG, "Did not find any matching action template\n"); -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG - BNXT_TF_DBG(DEBUG, "act_hid:0x%x, Hdr:%" PRIX64 "\n", - act_hid, params->act_bitmap.bits); -#endif *act_id = 0; return BNXT_TF_RC_ERROR; } diff --git a/drivers/net/bnxt/tf_ulp/ulp_port_db.c b/drivers/net/bnxt/tf_ulp/ulp_port_db.c index 7d9865b3e31d..5e7c1d1c17a3 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_port_db.c +++ b/drivers/net/bnxt/tf_ulp/ulp_port_db.c @@ -11,10 +11,6 @@ #include "ulp_port_db.h" #include "tfp.h" -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#include "ulp_tf_debug.h" -#endif - static uint32_t ulp_port_db_allocate_ifindex(struct bnxt_ulp_port_db *port_db) { @@ -206,11 +202,6 @@ int32_t ulp_port_db_dev_port_intf_update(struct bnxt_ulp_context *ulp_ctxt, port_data->port_vport = bnxt_pmd_get_vport(port_id); port_data->port_valid = true; } -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG -#ifdef RTE_LIBRTE_BNXT_TRUFLOW_DEBUG_PORT - ulp_port_db_dump(port_db, intf, port_id); -#endif -#endif return 0; }