From patchwork Sat Oct 10 04:11:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 80267 X-Patchwork-Delegate: ajit.khaparde@broadcom.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9CC4FA04BC; Sat, 10 Oct 2020 06:17:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A5AD1D8E5; Sat, 10 Oct 2020 06:13:24 +0200 (CEST) Received: from mail-pf1-f228.google.com (mail-pf1-f228.google.com [209.85.210.228]) by dpdk.org (Postfix) with ESMTP id D71241D737 for ; Sat, 10 Oct 2020 06:13:16 +0200 (CEST) Received: by mail-pf1-f228.google.com with SMTP id x22so8519765pfo.12 for ; Fri, 09 Oct 2020 21:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4TIbIzZjfNeB6val3dN2gpL2fn75r80RrxtomrNNkyY=; b=cHVdFgtkB3Lzrm/vSTqsmv0x3GSCu8jexx/vEaQlg9hDk3Tvo/sYh1ctzBYioIvMEb F/C/Qam1Rmf7OFw0KSOURAAN43ZvIWMwNNmnzQWHU23Uv9UKl9Sem3WyItwxxIJLKBuj q4H8+nvw+FAs+65wCfYELAgIl/EGa/3Cu53BQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4TIbIzZjfNeB6val3dN2gpL2fn75r80RrxtomrNNkyY=; b=ojP4KnKjJ8tdq7po2oWeMG1NtAMA9efgDHLmmBF+LdDjs+X9IT2ZLIDoF4YjT28pKN 4HSQDzHYYnP5U728b8IU6xF3Gt4DZmLT63pKrqYKXOBSFw6n3kTYZgJmCDrneS+h1wmM QvB7IQkS+ylvN4EH5vOOZYcRv8GpUdJ6pB0Kijwcahc5BdcpGjQmA1blSlaj30rgS2bi zMzQ5deu7NN0u0tNQ6jnsKZgkcLkatqNWzRK0W2TDqLP8aP/zPLdh2DCQ+wgInFdXvTG 5Ms6UXXGGZr7Q6AOMdue8Z6TJ51CZUBVVFuZ88U+/UtM9SEIBMAsrwto3RD/4rYWuj3T A+mQ== X-Gm-Message-State: AOAM533kqoRZN5Usud6WhKEe+F3kirn8JQUcjV0/xfXQS6dlWuw58LzN g2RrJCcsAV6RpsdsxlCFS0v60E2J6ZPuwGfXw6OKRpwxlZ33TSCU8CIV+1E5djtIiPh03uHXXjz Adyerd2txBdbtFwZvCotrYZT/Zn1u+jregdwM4WdCsyLJkY9CS93SMLh3HWOvEeiBnJdccYJVUq cahg== X-Google-Smtp-Source: ABdhPJzuxC/A/nLWcZYAQMjuP/5YAg5FFq2GQ6JJgSj79kg9FoOCuJY/CP6yu6AF07KN/ZDjLaTlrQRNjIn+ X-Received: by 2002:a63:5d5:: with SMTP id 204mr2311057pgf.308.1602303194928; Fri, 09 Oct 2020 21:13:14 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp-relay.gmail.com with ESMTPS id b4sm1597022pjn.3.2020.10.09.21.13.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2020 21:13:14 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Ajit Khaparde To: dev@dpdk.org Cc: Mike Baucom , Kishore Padmanabha Date: Fri, 9 Oct 2020 21:11:51 -0700 Message-Id: <20201010041153.63921-11-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20201010041153.63921-1-ajit.khaparde@broadcom.com> References: <20201009111130.10422-1-somnath.kotur@broadcom.com> <20201010041153.63921-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 10/12] net/bnxt: consolidate template table processing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" From: Mike Baucom Name changes due to consolidating the template table processing and hence are not necessary. - chip before type in name - removal of class in key field info Signed-off-by: Mike Baucom Reviewed-by: Ajit Khaparde Reviewed-by: Kishore Padmanabha --- drivers/net/bnxt/tf_ulp/ulp_mapper.c | 12 +++---- .../tf_ulp/ulp_template_db_stingray_act.c | 6 ++-- .../tf_ulp/ulp_template_db_stingray_class.c | 10 +++--- drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c | 34 +++++++++---------- drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h | 32 ++++++++--------- .../bnxt/tf_ulp/ulp_template_db_wh_plus_act.c | 6 ++-- .../tf_ulp/ulp_template_db_wh_plus_class.c | 10 +++--- drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 4 +-- 8 files changed, 57 insertions(+), 57 deletions(-) diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c index 812e35c27..cd289cc40 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c +++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c @@ -256,7 +256,7 @@ ulp_mapper_tbl_list_get(struct bnxt_ulp_mapper_parms *mparms, * * Returns array of Key fields, or NULL on error. */ -static struct bnxt_ulp_mapper_class_key_field_info * +static struct bnxt_ulp_mapper_key_field_info * ulp_mapper_key_fields_get(struct bnxt_ulp_mapper_parms *mparms, struct bnxt_ulp_mapper_tbl_info *tbl, uint32_t *num_flds) @@ -1009,7 +1009,7 @@ ulp_mapper_result_field_process(struct bnxt_ulp_mapper_parms *parms, static int32_t ulp_mapper_keymask_field_process(struct bnxt_ulp_mapper_parms *parms, enum tf_dir dir, - struct bnxt_ulp_mapper_class_key_field_info *f, + struct bnxt_ulp_mapper_key_field_info *f, struct ulp_blob *blob, uint8_t is_key, const char *name) @@ -1020,7 +1020,7 @@ ulp_mapper_keymask_field_process(struct bnxt_ulp_mapper_parms *parms, uint8_t *operand; struct ulp_regfile *regfile = parms->regfile; uint8_t *val = NULL; - struct bnxt_ulp_mapper_class_key_field_info *fld = f; + struct bnxt_ulp_mapper_key_field_info *fld = f; uint32_t field_size; if (is_key) { @@ -1442,7 +1442,7 @@ static int32_t ulp_mapper_tcam_tbl_process(struct bnxt_ulp_mapper_parms *parms, struct bnxt_ulp_mapper_tbl_info *tbl) { - struct bnxt_ulp_mapper_class_key_field_info *kflds; + struct bnxt_ulp_mapper_key_field_info *kflds; struct ulp_blob key, mask, data, update_data; uint32_t i, num_kflds; struct tf *tfp; @@ -1670,7 +1670,7 @@ static int32_t ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms, struct bnxt_ulp_mapper_tbl_info *tbl) { - struct bnxt_ulp_mapper_class_key_field_info *kflds; + struct bnxt_ulp_mapper_key_field_info *kflds; struct bnxt_ulp_mapper_result_field_info *dflds; struct ulp_blob key, data; uint32_t i, num_kflds, num_dflds; @@ -2061,7 +2061,7 @@ static int32_t ulp_mapper_cache_tbl_process(struct bnxt_ulp_mapper_parms *parms, struct bnxt_ulp_mapper_tbl_info *tbl) { - struct bnxt_ulp_mapper_class_key_field_info *kflds; + struct bnxt_ulp_mapper_key_field_info *kflds; struct bnxt_ulp_mapper_cache_entry *cache_entry; struct bnxt_ulp_mapper_ident_info *idents; uint32_t i, num_kflds = 0, num_idents = 0; diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_act.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_act.c index a5019d664..68e4d8e59 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_act.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_act.c @@ -8,7 +8,7 @@ #include "ulp_template_struct.h" #include "ulp_rte_parser.h" -struct bnxt_ulp_mapper_tbl_list_info ulp_act_stingray_tmpl_list[] = { +struct bnxt_ulp_mapper_tbl_list_info ulp_stingray_act_tmpl_list[] = { [1] = { .device_name = BNXT_ULP_DEVICE_ID_STINGRAY, .num_tbls = 6, @@ -47,7 +47,7 @@ struct bnxt_ulp_mapper_tbl_list_info ulp_act_stingray_tmpl_list[] = { } }; -struct bnxt_ulp_mapper_tbl_info ulp_act_stingray_tbl_list[] = { +struct bnxt_ulp_mapper_tbl_info ulp_stingray_act_tbl_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_ACT_STATS_64, @@ -531,7 +531,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_act_stingray_tbl_list[] = { } }; -struct bnxt_ulp_mapper_result_field_info ulp_act_stingray_result_field_list[] = { +struct bnxt_ulp_mapper_result_field_info ulp_stingray_act_result_field_list[] = { { .field_bit_size = 64, .result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_class.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_class.c index b5bdb94e8..1fa364e29 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_class.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_stingray_class.c @@ -8,7 +8,7 @@ #include "ulp_template_struct.h" #include "ulp_rte_parser.h" -struct bnxt_ulp_mapper_tbl_list_info ulp_class_stingray_tmpl_list[] = { +struct bnxt_ulp_mapper_tbl_list_info ulp_stingray_class_tmpl_list[] = { [1] = { .device_name = BNXT_ULP_DEVICE_ID_STINGRAY, .num_tbls = 6, @@ -149,7 +149,7 @@ struct bnxt_ulp_mapper_tbl_list_info ulp_class_stingray_tmpl_list[] = { } }; -struct bnxt_ulp_mapper_tbl_info ulp_class_stingray_tbl_list[] = { +struct bnxt_ulp_mapper_tbl_info ulp_stingray_class_tbl_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_FULL_ACT_RECORD, @@ -2349,7 +2349,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_stingray_tbl_list[] = { } }; -struct bnxt_ulp_mapper_class_key_field_info ulp_class_stingray_key_field_list[] = { +struct bnxt_ulp_mapper_key_field_info ulp_stingray_class_key_field_list[] = { { .field_bit_size = 12, .mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO, @@ -13070,7 +13070,7 @@ struct bnxt_ulp_mapper_class_key_field_info ulp_class_stingray_key_field_list[] } }; -struct bnxt_ulp_mapper_result_field_info ulp_class_stingray_result_field_list[] = { +struct bnxt_ulp_mapper_result_field_info ulp_stingray_class_result_field_list[] = { { .field_bit_size = 14, .result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO @@ -18750,7 +18750,7 @@ struct bnxt_ulp_mapper_result_field_info ulp_class_stingray_result_field_list[] } }; -struct bnxt_ulp_mapper_ident_info ulp_class_stingray_ident_list[] = { +struct bnxt_ulp_mapper_ident_info ulp_stingray_class_ident_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_IDENTIFIER, .ident_type = TF_IDENT_TYPE_L2_CTXT_HIGH, diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c index a677b0ca5..7f5a31680 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c @@ -314,31 +314,31 @@ struct bnxt_ulp_cache_tbl_params ulp_cache_tbl_params[] = { const struct ulp_template_device_tbls ulp_template_stingray_tbls[] = { [BNXT_ULP_TEMPLATE_TYPE_CLASS] = { - .tmpl_list = ulp_class_stingray_tmpl_list, - .tbl_list = ulp_class_stingray_tbl_list, - .key_field_list = ulp_class_stingray_key_field_list, - .result_field_list = ulp_class_stingray_result_field_list, - .ident_list = ulp_class_stingray_ident_list + .tmpl_list = ulp_stingray_class_tmpl_list, + .tbl_list = ulp_stingray_class_tbl_list, + .key_field_list = ulp_stingray_class_key_field_list, + .result_field_list = ulp_stingray_class_result_field_list, + .ident_list = ulp_stingray_class_ident_list }, [BNXT_ULP_TEMPLATE_TYPE_ACTION] = { - .tmpl_list = ulp_act_stingray_tmpl_list, - .tbl_list = ulp_act_stingray_tbl_list, - .result_field_list = ulp_act_stingray_result_field_list + .tmpl_list = ulp_stingray_act_tmpl_list, + .tbl_list = ulp_stingray_act_tbl_list, + .result_field_list = ulp_stingray_act_result_field_list } }; const struct ulp_template_device_tbls ulp_template_wh_plus_tbls[] = { [BNXT_ULP_TEMPLATE_TYPE_CLASS] = { - .tmpl_list = ulp_class_wh_plus_tmpl_list, - .tbl_list = ulp_class_wh_plus_tbl_list, - .key_field_list = ulp_class_wh_plus_key_field_list, - .result_field_list = ulp_class_wh_plus_result_field_list, - .ident_list = ulp_class_wh_plus_ident_list + .tmpl_list = ulp_wh_plus_class_tmpl_list, + .tbl_list = ulp_wh_plus_class_tbl_list, + .key_field_list = ulp_wh_plus_class_key_field_list, + .result_field_list = ulp_wh_plus_class_result_field_list, + .ident_list = ulp_wh_plus_class_ident_list }, [BNXT_ULP_TEMPLATE_TYPE_ACTION] = { - .tmpl_list = ulp_act_wh_plus_tmpl_list, - .tbl_list = ulp_act_wh_plus_tbl_list, - .result_field_list = ulp_act_wh_plus_result_field_list + .tmpl_list = ulp_wh_plus_act_tmpl_list, + .tbl_list = ulp_wh_plus_act_tbl_list, + .result_field_list = ulp_wh_plus_act_result_field_list } }; @@ -351,6 +351,7 @@ struct bnxt_ulp_device_params ulp_device_params[BNXT_ULP_DEVICE_ID_LAST] = { .mark_db_lfid_entries = 65536, .mark_db_gfid_entries = 65536, .flow_count_db_entries = 16384, + .fdb_parent_flow_entries = 2, .num_resources_per_flow = 8, .num_phy_ports = 2, .ext_cntr_table_type = 0, @@ -368,7 +369,6 @@ struct bnxt_ulp_device_params ulp_device_params[BNXT_ULP_DEVICE_ID_LAST] = { .mark_db_lfid_entries = 65536, .mark_db_gfid_entries = 65536, .flow_count_db_entries = 16384, - .fdb_parent_flow_entries = 2, .num_resources_per_flow = 8, .num_phy_ports = 2, .ext_cntr_table_type = 0, diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h index 7a541cb8e..8c13ca387 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.h @@ -8,41 +8,41 @@ #include "ulp_template_struct.h" -extern struct bnxt_ulp_mapper_tbl_list_info ulp_class_wh_plus_tmpl_list[]; +extern struct bnxt_ulp_mapper_tbl_list_info ulp_wh_plus_class_tmpl_list[]; -extern struct bnxt_ulp_mapper_tbl_info ulp_class_wh_plus_tbl_list[]; +extern struct bnxt_ulp_mapper_tbl_info ulp_wh_plus_class_tbl_list[]; extern struct -bnxt_ulp_mapper_class_key_field_info ulp_class_wh_plus_key_field_list[]; +bnxt_ulp_mapper_key_field_info ulp_wh_plus_class_key_field_list[]; extern struct -bnxt_ulp_mapper_result_field_info ulp_class_wh_plus_result_field_list[]; +bnxt_ulp_mapper_result_field_info ulp_wh_plus_class_result_field_list[]; -extern struct bnxt_ulp_mapper_ident_info ulp_class_wh_plus_ident_list[]; +extern struct bnxt_ulp_mapper_ident_info ulp_wh_plus_class_ident_list[]; -extern struct bnxt_ulp_mapper_tbl_list_info ulp_act_wh_plus_tmpl_list[]; +extern struct bnxt_ulp_mapper_tbl_list_info ulp_wh_plus_act_tmpl_list[]; -extern struct bnxt_ulp_mapper_tbl_info ulp_act_wh_plus_tbl_list[]; +extern struct bnxt_ulp_mapper_tbl_info ulp_wh_plus_act_tbl_list[]; extern struct -bnxt_ulp_mapper_result_field_info ulp_act_wh_plus_result_field_list[]; +bnxt_ulp_mapper_result_field_info ulp_wh_plus_act_result_field_list[]; -extern struct bnxt_ulp_mapper_tbl_list_info ulp_class_stingray_tmpl_list[]; +extern struct bnxt_ulp_mapper_tbl_list_info ulp_stingray_class_tmpl_list[]; -extern struct bnxt_ulp_mapper_tbl_info ulp_class_stingray_tbl_list[]; +extern struct bnxt_ulp_mapper_tbl_info ulp_stingray_class_tbl_list[]; extern struct -bnxt_ulp_mapper_class_key_field_info ulp_class_stingray_key_field_list[]; +bnxt_ulp_mapper_key_field_info ulp_stingray_class_key_field_list[]; extern struct -bnxt_ulp_mapper_result_field_info ulp_class_stingray_result_field_list[]; +bnxt_ulp_mapper_result_field_info ulp_stingray_class_result_field_list[]; -extern struct bnxt_ulp_mapper_ident_info ulp_class_stingray_ident_list[]; +extern struct bnxt_ulp_mapper_ident_info ulp_stingray_class_ident_list[]; -extern struct bnxt_ulp_mapper_tbl_list_info ulp_act_stingray_tmpl_list[]; +extern struct bnxt_ulp_mapper_tbl_list_info ulp_stingray_act_tmpl_list[]; -extern struct bnxt_ulp_mapper_tbl_info ulp_act_stingray_tbl_list[]; +extern struct bnxt_ulp_mapper_tbl_info ulp_stingray_act_tbl_list[]; extern struct -bnxt_ulp_mapper_result_field_info ulp_act_stingray_result_field_list[]; +bnxt_ulp_mapper_result_field_info ulp_stingray_act_result_field_list[]; #endif diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_act.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_act.c index 82b2ad980..381278ee9 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_act.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_act.c @@ -8,7 +8,7 @@ #include "ulp_template_struct.h" #include "ulp_rte_parser.h" -struct bnxt_ulp_mapper_tbl_list_info ulp_act_wh_plus_tmpl_list[] = { +struct bnxt_ulp_mapper_tbl_list_info ulp_wh_plus_act_tmpl_list[] = { [1] = { .device_name = BNXT_ULP_DEVICE_ID_WH_PLUS, .num_tbls = 6, @@ -47,7 +47,7 @@ struct bnxt_ulp_mapper_tbl_list_info ulp_act_wh_plus_tmpl_list[] = { } }; -struct bnxt_ulp_mapper_tbl_info ulp_act_wh_plus_tbl_list[] = { +struct bnxt_ulp_mapper_tbl_info ulp_wh_plus_act_tbl_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_ACT_STATS_64, @@ -530,7 +530,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_act_wh_plus_tbl_list[] = { } }; -struct bnxt_ulp_mapper_result_field_info ulp_act_wh_plus_result_field_list[] = { +struct bnxt_ulp_mapper_result_field_info ulp_wh_plus_act_result_field_list[] = { { .field_bit_size = 64, .result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_class.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_class.c index 9f40b39d8..7024658ce 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_class.c +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_wh_plus_class.c @@ -8,7 +8,7 @@ #include "ulp_template_struct.h" #include "ulp_rte_parser.h" -struct bnxt_ulp_mapper_tbl_list_info ulp_class_wh_plus_tmpl_list[] = { +struct bnxt_ulp_mapper_tbl_list_info ulp_wh_plus_class_tmpl_list[] = { [1] = { .device_name = BNXT_ULP_DEVICE_ID_WH_PLUS, .num_tbls = 6, @@ -149,7 +149,7 @@ struct bnxt_ulp_mapper_tbl_list_info ulp_class_wh_plus_tmpl_list[] = { } }; -struct bnxt_ulp_mapper_tbl_info ulp_class_wh_plus_tbl_list[] = { +struct bnxt_ulp_mapper_tbl_info ulp_wh_plus_class_tbl_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_FULL_ACT_RECORD, @@ -2349,7 +2349,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_wh_plus_tbl_list[] = { } }; -struct bnxt_ulp_mapper_class_key_field_info ulp_class_wh_plus_key_field_list[] = { +struct bnxt_ulp_mapper_key_field_info ulp_wh_plus_class_key_field_list[] = { { .field_bit_size = 8, .mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO, @@ -13070,7 +13070,7 @@ struct bnxt_ulp_mapper_class_key_field_info ulp_class_wh_plus_key_field_list[] = } }; -struct bnxt_ulp_mapper_result_field_info ulp_class_wh_plus_result_field_list[] = { +struct bnxt_ulp_mapper_result_field_info ulp_wh_plus_class_result_field_list[] = { { .field_bit_size = 14, .result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO @@ -18750,7 +18750,7 @@ struct bnxt_ulp_mapper_result_field_info ulp_class_wh_plus_result_field_list[] = } }; -struct bnxt_ulp_mapper_ident_info ulp_class_wh_plus_ident_list[] = { +struct bnxt_ulp_mapper_ident_info ulp_wh_plus_class_ident_list[] = { { .resource_func = BNXT_ULP_RESOURCE_FUNC_IDENTIFIER, .ident_type = TF_IDENT_TYPE_L2_CTXT_HIGH, diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h index 2e94b6f19..107a06a3d 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h +++ b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h @@ -144,7 +144,7 @@ extern struct bnxt_ulp_act_match_info ulp_act_match_list[]; struct ulp_template_device_tbls { struct bnxt_ulp_mapper_tbl_list_info *tmpl_list; struct bnxt_ulp_mapper_tbl_info *tbl_list; - struct bnxt_ulp_mapper_class_key_field_info *key_field_list; + struct bnxt_ulp_mapper_key_field_info *key_field_list; struct bnxt_ulp_mapper_result_field_info *result_field_list; struct bnxt_ulp_mapper_ident_info *ident_list; }; @@ -212,7 +212,7 @@ struct bnxt_ulp_mapper_tbl_info { uint32_t index_operand; }; -struct bnxt_ulp_mapper_class_key_field_info { +struct bnxt_ulp_mapper_key_field_info { uint8_t description[64]; enum bnxt_ulp_mapper_opc mask_opcode; enum bnxt_ulp_mapper_opc spec_opcode;