From: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
To: dev@dpdk.org
Cc: Randy Schacher <stuart.schacher@broadcom.com>,
Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>,
Farah Smith <farah.smith@broadcom.com>,
Kishore Padmanabha <kishore.padmanabha@broadcom.com>,
Ajit Khaparde <ajit.khaparde@broadcom.com>
Subject: [PATCH v8 09/47] net/bnxt: tf_core: remove dead AFM code from session-based priority TCAM mgr
Date: Thu, 7 Nov 2024 19:22:16 +0530 [thread overview]
Message-ID: <20241107135254.1611676-10-sriharsha.basavapatna@broadcom.com> (raw)
In-Reply-To: <20241107135254.1611676-1-sriharsha.basavapatna@broadcom.com>
From: Randy Schacher <stuart.schacher@broadcom.com>
Remove references to AFM allocated memory which is no longer
supported with TCAM mgr and truflow
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Reviewed-by: Farah Smith <farah.smith@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/tf_core/cfa_tcam_mgr.c | 113 +++----
drivers/net/bnxt/tf_core/cfa_tcam_mgr.h | 27 +-
drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c | 320 +++-----------------
drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c | 320 +++-----------------
drivers/net/bnxt/tf_core/tf_resources.c | 4 +-
drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c | 18 +-
6 files changed, 138 insertions(+), 664 deletions(-)
diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c
index 21fc77d2f6..7a68f61997 100644
--- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c
+++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c
@@ -20,23 +20,23 @@
#define TF_TCAM_SLICE_INVALID (-1)
static int physical_table_types[CFA_TCAM_MGR_TBL_TYPE_MAX] = {
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH] =
TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_HIGH,
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW] =
TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_LOW,
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM] =
TF_TCAM_TBL_TYPE_PROF_TCAM,
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM] =
TF_TCAM_TBL_TYPE_WC_TCAM,
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM] =
TF_TCAM_TBL_TYPE_SP_TCAM,
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM] =
TF_TCAM_TBL_TYPE_CT_RULE_TCAM,
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM] =
TF_TCAM_TBL_TYPE_VEB_TCAM,
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH] =
TF_TCAM_TBL_TYPE_WC_TCAM_HIGH,
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS] =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW] =
TF_TCAM_TBL_TYPE_WC_TCAM_LOW,
};
@@ -53,41 +53,23 @@ const char *
cfa_tcam_mgr_tbl_2_str(enum cfa_tcam_mgr_tbl_type tcam_type)
{
switch (tcam_type) {
- case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM:
- return "l2_ctxt_tcam_high AFM";
- case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH:
return "l2_ctxt_tcam_high Apps";
- case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM:
- return "l2_ctxt_tcam_low AFM";
- case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW:
return "l2_ctxt_tcam_low Apps";
- case CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM:
- return "prof_tcam AFM";
- case CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM:
return "prof_tcam Apps";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM:
- return "wc_tcam AFM";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM:
return "wc_tcam Apps";
- case CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM:
- return "veb_tcam AFM";
- case CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM:
return "veb_tcam Apps";
- case CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM:
- return "sp_tcam AFM";
- case CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_SP_TCAM:
return "sp_tcam Apps";
- case CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM:
- return "ct_rule_tcam AFM";
- case CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM:
return "ct_rule_tcam Apps";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM:
- return "wc_tcam_high AFM";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH:
return "wc_tcam_high Apps";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM:
- return "wc_tcam_low AFM";
- case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS:
+ case CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW:
return "wc_tcam_low Apps";
default:
return "Invalid tcam table type";
@@ -965,10 +947,13 @@ cfa_tcam_mgr_bitmap_alloc(struct tf *tfp __rte_unused,
/* Allocate first index to avoid idx 0 */
first_idx = ba_alloc(tcam_mgr_data->session_bmp);
- if (first_idx == BA_FAIL)
+ if (first_idx == BA_FAIL) {
+ tfp_free(tcam_mgr_data->session_bmp);
+ tcam_mgr_data->session_bmp = NULL;
return -CFA_TCAM_MGR_ERR_CODE(NOSPC);
+ }
- TFP_DRV_LOG(INFO,
+ TFP_DRV_LOG(DEBUG,
"session bitmap size is %" PRIX64 "\n",
tcam_mgr_data->session_bmp_size);
@@ -1080,7 +1065,8 @@ cfa_tcam_mgr_init(struct tf *tfp, enum cfa_tcam_mgr_device_type type,
if (parms)
parms->max_entries = tcam_mgr_data->cfa_tcam_mgr_max_entries;
- CFA_TCAM_MGR_LOG(DEBUG, "Global TCAM tbl initialized max entries %d\n",
+ PMD_DRV_LOG_LINE(DEBUG,
+ "Global TCAM tbl initialized max entries %d",
tcam_mgr_data->cfa_tcam_mgr_max_entries);
return 0;
@@ -1220,38 +1206,41 @@ cfa_tcam_mgr_shared_wc_bind(struct tf *tfp, bool dual_ha_app,
for (dir = 0; dir < TF_DIR_MAX; dir++) {
rc = cfa_tcam_mgr_tables_get(tfp, dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS,
- &start_row, &end_row, &max_entries, &slices);
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM,
+ &start_row, &end_row, &max_entries,
+ &slices);
if (rc)
return rc;
if (max_entries) {
rc = cfa_tcam_mgr_tables_set(tfp, dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH,
start_row,
start_row +
- ((max_entries / slices) / num_pools) - 1,
+ ((max_entries / slices) /
+ num_pools) - 1,
max_entries / num_pools);
if (rc)
return rc;
rc = cfa_tcam_mgr_tables_set(tfp, dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW,
start_row +
- ((max_entries / slices) / num_pools),
+ ((max_entries / slices) /
+ num_pools),
start_row +
(max_entries / slices) - 1,
max_entries / num_pools);
if (rc)
return rc;
rc = cfa_tcam_mgr_tables_set(tfp, dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM,
0, 0, 0);
if (rc)
return rc;
- tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS] =
+ tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH] =
max_entries / num_pools;
- tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS] =
+ tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW] =
max_entries / num_pools;
- tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS] = 0;
+ tcam_cnt[dir][CFA_TCAM_MGR_TBL_TYPE_WC_TCAM] = 0;
}
}
@@ -1382,7 +1371,7 @@ cfa_tcam_mgr_bind(struct tf *tfp,
}
}
- CFA_TCAM_MGR_LOG(DEBUG, "TCAM table bind for max entries %d.\n",
+ PMD_DRV_LOG_LINE(DEBUG, "TCAM table bind for max entries %d.",
tcam_mgr_data->cfa_tcam_mgr_max_entries);
if (tf_session_is_shared_hotup_session(tfs)) {
@@ -1524,16 +1513,6 @@ cfa_tcam_mgr_alloc(struct tf *tfp,
return -CFA_TCAM_MGR_ERR_CODE(INVAL);
}
-#if TF_TCAM_PRIORITY_MAX < UINT16_MAX
- if (parms->priority > TF_TCAM_PRIORITY_MAX) {
- CFA_TCAM_MGR_LOG_DIR(ERR, dir,
- "%s: Priority:%u out of range (%u-%u).\n",
- tf_dir_2_str(dir), parms->priority,
- TF_TCAM_PRIORITY_MIN,
- TF_TCAM_PRIORITY_MAX);
- }
-#endif
-
rc = tf_session_get_session_internal(tfp, &tfs);
if (rc)
return rc;
@@ -1637,7 +1616,7 @@ cfa_tcam_mgr_free(struct tf *tfp,
id = parms->id;
entry = cfa_tcam_mgr_entry_get(tcam_mgr_data, id);
if (!entry) {
- CFA_TCAM_MGR_LOG(INFO, "Entry %d not found\n", id);
+ CFA_TCAM_MGR_LOG(ERR, "Entry %d not found\n", id);
return -CFA_TCAM_MGR_ERR_CODE(INVAL);
}
@@ -1963,7 +1942,7 @@ cfa_tcam_mgr_shared_entry_move(struct cfa_tcam_mgr_data *tcam_mgr_data,
return rc;
sparms.dir = dir;
- sparms.type = CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS;
+ sparms.type = CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW;
sparms.hcapi_type = table_data->hcapi_type;
sparms.key = key;
sparms.mask = mask;
@@ -2046,15 +2025,15 @@ int cfa_tcam_mgr_shared_move(struct tf *tfp,
src_table_data =
&tcam_mgr_data->cfa_tcam_mgr_tables[parms->dir]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS];
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH];
dst_table_data =
&tcam_mgr_data->cfa_tcam_mgr_tables[parms->dir]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS];
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW];
row_size =
cfa_tcam_mgr_row_size_get(tcam_mgr_data,
parms->dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS);
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH);
for (src_row = src_table_data->start_row,
dst_row = dst_table_data->start_row;
@@ -2080,8 +2059,8 @@ int cfa_tcam_mgr_shared_move(struct tf *tfp,
rc = cfa_tcam_mgr_shared_entry_move(tcam_mgr_data,
tfp,
parms->dir,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS,
- src_table_row->entries[slice],
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH,
+ src_table_row->entries[slice],
dst_table_data,
src_table_data,
dst_row, slice,
diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.h b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.h
index d1471ca6ad..e1a691b775 100644
--- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.h
+++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.h
@@ -79,25 +79,16 @@
/* Logical TCAM tables */
enum cfa_tcam_mgr_tbl_type {
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM =
+ CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH =
CFA_TCAM_MGR_TBL_TYPE_START,
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS,
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM,
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS,
- CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM,
- CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS,
- CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM,
- CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS,
- CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM,
- CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS,
- CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM,
- CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM,
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW,
+ CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM,
+ CFA_TCAM_MGR_TBL_TYPE_SP_TCAM,
+ CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM,
+ CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW,
CFA_TCAM_MGR_TBL_TYPE_MAX
};
diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c b/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c
index 27748bea90..ddc2728785 100644
--- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c
+++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c
@@ -165,17 +165,7 @@ struct cfa_tcam_mgr_table_rows_p4 {
struct cfa_tcam_mgr_table_data
cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
{ /* RX */
- { /* High AFM */
- .max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_HIGH,
- },
- { /* High APPS */
+ {
.max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
@@ -185,17 +175,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_HIGH,
},
- { /* Low AFM */
- .max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_LOW,
- },
- { /* Low APPS */
+ {
.max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
@@ -205,17 +185,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_LOW,
},
- { /* AFM */
- .max_slices = PROF_TCAM_RX_MAX_SLICES,
- .row_width = PROF_TCAM_RX_ROW_WIDTH,
- .num_rows = PROF_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = PROF_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_PROF_TCAM,
- },
- { /* APPS */
+ {
.max_slices = PROF_TCAM_RX_MAX_SLICES,
.row_width = PROF_TCAM_RX_ROW_WIDTH,
.num_rows = PROF_TCAM_RX_NUM_ROWS,
@@ -225,17 +195,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = PROF_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_PROF_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -245,17 +205,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
},
- { /* AFM */
- .max_slices = SP_TCAM_RX_MAX_SLICES,
- .row_width = SP_TCAM_RX_ROW_WIDTH,
- .num_rows = SP_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = SP_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_SP_TCAM,
- },
- { /* APPS */
+ {
.max_slices = SP_TCAM_RX_MAX_SLICES,
.row_width = SP_TCAM_RX_ROW_WIDTH,
.num_rows = SP_TCAM_RX_NUM_ROWS,
@@ -265,16 +215,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = SP_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_SP_TCAM,
},
- { /* AFM */
- .max_slices = CT_RULE_TCAM_RX_MAX_SLICES,
- .row_width = CT_RULE_TCAM_RX_ROW_WIDTH,
- .num_rows = CT_RULE_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = CT_RULE_TCAM_RX_MAX_SLICES,
.row_width = CT_RULE_TCAM_RX_ROW_WIDTH,
.num_rows = CT_RULE_TCAM_RX_NUM_ROWS,
@@ -288,16 +229,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = CT_RULE_TCAM_RX_MAX_ENTRIES,
.result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = VEB_TCAM_RX_MAX_SLICES,
- .row_width = VEB_TCAM_RX_ROW_WIDTH,
- .num_rows = VEB_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = VEB_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = VEB_TCAM_RX_MAX_SLICES,
.row_width = VEB_TCAM_RX_ROW_WIDTH,
.num_rows = VEB_TCAM_RX_NUM_ROWS,
@@ -311,17 +243,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = VEB_TCAM_RX_MAX_ENTRIES,
.result_size = VEB_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -331,17 +253,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -353,17 +265,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
},
},
{ /* TX */
- { /* AFM */
- .max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_HIGH,
- },
- { /* APPS */
+ {
.max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
@@ -373,17 +275,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_HIGH,
},
- { /* AFM */
- .max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_LOW,
- },
- { /* APPS */
+ {
.max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
@@ -393,17 +285,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM_LOW,
},
- { /* AFM */
- .max_slices = PROF_TCAM_TX_MAX_SLICES,
- .row_width = PROF_TCAM_TX_ROW_WIDTH,
- .num_rows = PROF_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = PROF_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_PROF_TCAM,
- },
- { /* APPS */
+ {
.max_slices = PROF_TCAM_TX_MAX_SLICES,
.row_width = PROF_TCAM_TX_ROW_WIDTH,
.num_rows = PROF_TCAM_TX_NUM_ROWS,
@@ -413,17 +295,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = PROF_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_PROF_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -433,17 +305,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
},
- { /* AFM */
- .max_slices = SP_TCAM_TX_MAX_SLICES,
- .row_width = SP_TCAM_TX_ROW_WIDTH,
- .num_rows = SP_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = SP_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_SP_TCAM,
- },
- { /* APPS */
+ {
.max_slices = SP_TCAM_TX_MAX_SLICES,
.row_width = SP_TCAM_TX_ROW_WIDTH,
.num_rows = SP_TCAM_TX_NUM_ROWS,
@@ -453,16 +315,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = SP_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_SP_TCAM,
},
- { /* AFM */
- .max_slices = CT_RULE_TCAM_TX_MAX_SLICES,
- .row_width = CT_RULE_TCAM_TX_ROW_WIDTH,
- .num_rows = CT_RULE_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = CT_RULE_TCAM_TX_MAX_SLICES,
.row_width = CT_RULE_TCAM_TX_ROW_WIDTH,
.num_rows = CT_RULE_TCAM_TX_NUM_ROWS,
@@ -476,16 +329,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = CT_RULE_TCAM_TX_MAX_ENTRIES,
.result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = VEB_TCAM_TX_MAX_SLICES,
- .row_width = VEB_TCAM_TX_ROW_WIDTH,
- .num_rows = VEB_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = VEB_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = VEB_TCAM_TX_MAX_SLICES,
.row_width = VEB_TCAM_TX_ROW_WIDTH,
.num_rows = VEB_TCAM_TX_NUM_ROWS,
@@ -495,17 +339,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = VEB_TCAM_RX_RESULT_SIZE,
/* .hcapi_type = */
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -515,17 +349,7 @@ cfa_tcam_mgr_tables_p4[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P4_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -633,164 +457,92 @@ cfa_tcam_mgr_init_p4(struct tf *tfp)
sizeof(tcam_mgr_data->cfa_tcam_mgr_tables));
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_PROF_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_PROF_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_PROF_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_PROF_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_SP_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_SP_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_SP_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_SP_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_CT_RULE_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_CT_RULE_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_CT_RULE_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_CT_RULE_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_VEB_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_VEB_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_VEB_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_VEB_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX_HIGH[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX_HIGH[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX_HIGH[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX_HIGH[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX_LOW[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX_LOW[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX_LOW[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX_LOW[0];
diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c b/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c
index a9d3d08673..d5725f92e0 100644
--- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c
+++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c
@@ -165,17 +165,7 @@ struct cfa_tcam_mgr_table_rows_p58 {
struct cfa_tcam_mgr_table_data
cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
{ /* RX */
- { /* High AFM */
- .max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
- .num_rows = 0,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_HIGH,
- },
- { /* High APPS */
+ {
.max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
@@ -185,17 +175,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_HIGH,
},
- { /* Low AFM */
- .max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
- .num_rows = 0,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_LOW,
- },
- { /* Low APPS */
+ {
.max_slices = L2_CTXT_TCAM_RX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_RX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_RX_NUM_ROWS,
@@ -205,17 +185,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_LOW,
},
- { /* AFM */
- .max_slices = PROF_TCAM_RX_MAX_SLICES,
- .row_width = PROF_TCAM_RX_ROW_WIDTH,
- .num_rows = 0,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = PROF_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_PROF_TCAM,
- },
- { /* APPS */
+ {
.max_slices = PROF_TCAM_RX_MAX_SLICES,
.row_width = PROF_TCAM_RX_ROW_WIDTH,
.num_rows = PROF_TCAM_RX_NUM_ROWS,
@@ -225,17 +195,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = PROF_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_PROF_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -245,16 +205,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
},
- { /* AFM */
- .max_slices = SP_TCAM_RX_MAX_SLICES,
- .row_width = SP_TCAM_RX_ROW_WIDTH,
- .num_rows = 0,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = SP_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = SP_TCAM_RX_MAX_SLICES,
.row_width = SP_TCAM_RX_ROW_WIDTH,
.num_rows = SP_TCAM_RX_NUM_ROWS,
@@ -263,16 +214,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = SP_TCAM_RX_MAX_ENTRIES,
.result_size = SP_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = CT_RULE_TCAM_RX_MAX_SLICES,
- .row_width = CT_RULE_TCAM_RX_ROW_WIDTH,
- .num_rows = CT_RULE_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = CT_RULE_TCAM_RX_MAX_SLICES,
.row_width = CT_RULE_TCAM_RX_ROW_WIDTH,
.num_rows = CT_RULE_TCAM_RX_NUM_ROWS,
@@ -286,17 +228,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = CT_RULE_TCAM_RX_MAX_ENTRIES,
.result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = VEB_TCAM_RX_MAX_SLICES,
- .row_width = VEB_TCAM_RX_ROW_WIDTH,
- .num_rows = VEB_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = VEB_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_VEB_TCAM,
- },
- { /* APPS */
+ {
.max_slices = VEB_TCAM_RX_MAX_SLICES,
.row_width = VEB_TCAM_RX_ROW_WIDTH,
.num_rows = VEB_TCAM_RX_NUM_ROWS,
@@ -310,17 +242,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = VEB_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_VEB_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -330,17 +252,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_RX_MAX_SLICES,
- .row_width = WC_TCAM_RX_ROW_WIDTH,
- .num_rows = WC_TCAM_RX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_RX_MAX_SLICES,
.row_width = WC_TCAM_RX_ROW_WIDTH,
.num_rows = WC_TCAM_RX_NUM_ROWS,
@@ -352,17 +264,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
},
},
{ /* TX */
- { /* AFM */
- .max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_HIGH,
- },
- { /* APPS */
+ {
.max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
@@ -372,17 +274,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_HIGH,
},
- { /* AFM */
- .max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
- .row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
- .num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_LOW,
- },
- { /* APPS */
+ {
.max_slices = L2_CTXT_TCAM_TX_MAX_SLICES,
.row_width = L2_CTXT_TCAM_TX_ROW_WIDTH,
.num_rows = L2_CTXT_TCAM_TX_NUM_ROWS,
@@ -392,17 +284,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = L2_CTXT_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM_LOW,
},
- { /* AFM */
- .max_slices = PROF_TCAM_TX_MAX_SLICES,
- .row_width = PROF_TCAM_TX_ROW_WIDTH,
- .num_rows = PROF_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = PROF_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_PROF_TCAM,
- },
- { /* APPS */
+ {
.max_slices = PROF_TCAM_TX_MAX_SLICES,
.row_width = PROF_TCAM_TX_ROW_WIDTH,
.num_rows = PROF_TCAM_TX_NUM_ROWS,
@@ -412,17 +294,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = PROF_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_PROF_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -432,16 +304,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
},
- { /* AFM */
- .max_slices = SP_TCAM_TX_MAX_SLICES,
- .row_width = SP_TCAM_TX_ROW_WIDTH,
- .num_rows = SP_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = SP_TCAM_TX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = SP_TCAM_TX_MAX_SLICES,
.row_width = SP_TCAM_TX_ROW_WIDTH,
.num_rows = SP_TCAM_TX_NUM_ROWS,
@@ -450,16 +313,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = SP_TCAM_TX_MAX_ENTRIES,
.result_size = SP_TCAM_TX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = CT_RULE_TCAM_TX_MAX_SLICES,
- .row_width = CT_RULE_TCAM_TX_ROW_WIDTH,
- .num_rows = CT_RULE_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
- },
- { /* APPS */
+ {
.max_slices = CT_RULE_TCAM_TX_MAX_SLICES,
.row_width = CT_RULE_TCAM_TX_ROW_WIDTH,
.num_rows = CT_RULE_TCAM_TX_NUM_ROWS,
@@ -473,17 +327,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.max_entries = CT_RULE_TCAM_TX_MAX_ENTRIES,
.result_size = CT_RULE_TCAM_RX_RESULT_SIZE,
},
- { /* AFM */
- .max_slices = VEB_TCAM_TX_MAX_SLICES,
- .row_width = VEB_TCAM_TX_ROW_WIDTH,
- .num_rows = VEB_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = VEB_TCAM_RX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_VEB_TCAM,
- },
- { /* APPS */
+ {
.max_slices = VEB_TCAM_TX_MAX_SLICES,
.row_width = VEB_TCAM_TX_ROW_WIDTH,
.num_rows = VEB_TCAM_TX_NUM_ROWS,
@@ -493,17 +337,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = VEB_TCAM_RX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_VEB_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -513,17 +347,7 @@ cfa_tcam_mgr_tables_p58[TF_DIR_MAX][CFA_TCAM_MGR_TBL_TYPE_MAX] = {
.result_size = WC_TCAM_TX_RESULT_SIZE,
.hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
},
- { /* AFM */
- .max_slices = WC_TCAM_TX_MAX_SLICES,
- .row_width = WC_TCAM_TX_ROW_WIDTH,
- .num_rows = WC_TCAM_TX_NUM_ROWS,
- .start_row = 0,
- .end_row = 0,
- .max_entries = 0,
- .result_size = WC_TCAM_TX_RESULT_SIZE,
- .hcapi_type = CFA_RESOURCE_TYPE_P58_WC_TCAM,
- },
- { /* APPS */
+ {
.max_slices = WC_TCAM_TX_MAX_SLICES,
.row_width = WC_TCAM_TX_ROW_WIDTH,
.num_rows = WC_TCAM_TX_NUM_ROWS,
@@ -624,164 +448,92 @@ cfa_tcam_mgr_init_p58(struct tf *tfp)
sizeof(tcam_mgr_data->cfa_tcam_mgr_tables));
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_L2_CTXT_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_L2_CTXT_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_PROF_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_PROF_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_PROF_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_PROF_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_SP_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_SP_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_SP_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_SP_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_SP_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_CT_RULE_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_CT_RULE_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_CT_RULE_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_CT_RULE_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_VEB_TCAM_RX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_VEB_TCAM_RX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_VEB_TCAM_TX[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_VEB_TCAM_TX[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX_HIGH[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX_HIGH[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX_HIGH[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX_HIGH[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_RX_LOW[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_RX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_RX_LOW[0];
tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_AFM].tcam_rows =
- (struct cfa_tcam_mgr_table_rows_0 *)
- &table_rows->table_rows_WC_TCAM_TX_LOW[0];
- tcam_mgr_data->cfa_tcam_mgr_tables[TF_DIR_TX]
- [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS].tcam_rows =
+ [CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW].tcam_rows =
(struct cfa_tcam_mgr_table_rows_0 *)
&table_rows->table_rows_WC_TCAM_TX_LOW[0];
diff --git a/drivers/net/bnxt/tf_core/tf_resources.c b/drivers/net/bnxt/tf_core/tf_resources.c
index 6045624652..b3174ba1af 100644
--- a/drivers/net/bnxt/tf_core/tf_resources.c
+++ b/drivers/net/bnxt/tf_core/tf_resources.c
@@ -88,7 +88,7 @@ tf_tcam_mgr_row_entry_used(struct cfa_tcam_mgr_table_rows_0 *row,
/* Initialize the resource usage buffer for WC-TCAM tables */
void tf_tcam_usage_init(struct tf *tfp)
{
- enum cfa_tcam_mgr_tbl_type type = CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS;
+ enum cfa_tcam_mgr_tbl_type type = CFA_TCAM_MGR_TBL_TYPE_WC_TCAM;
struct cfa_tcam_mgr_table_data *table_data = NULL;
struct tf_resc_wc_tcam_usage *usage_data = NULL;
struct cfa_tcam_mgr_data *tcam_mgr_data;
@@ -169,7 +169,7 @@ int tf_tcam_usage_update(struct tf *tfp,
return -1;
/* Support WC-TCAM APPs only */
- if (tcam_tbl_type != CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS)
+ if (tcam_tbl_type != CFA_TCAM_MGR_TBL_TYPE_WC_TCAM)
return 0;
resc_usage_control.buffer_dirty[dir] = 1;
diff --git a/drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c b/drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c
index 8c1e6d2e0f..8cf4d4d1fb 100644
--- a/drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c
+++ b/drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c
@@ -17,23 +17,23 @@
*/
static enum cfa_tcam_mgr_tbl_type tcam_types[TF_TCAM_TBL_TYPE_MAX] = {
[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_HIGH] =
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_HIGH,
[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_LOW] =
- CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_L2_CTXT_TCAM_LOW,
[TF_TCAM_TBL_TYPE_PROF_TCAM] =
- CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_PROF_TCAM,
[TF_TCAM_TBL_TYPE_WC_TCAM] =
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM,
[TF_TCAM_TBL_TYPE_SP_TCAM] =
- CFA_TCAM_MGR_TBL_TYPE_SP_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_SP_TCAM,
[TF_TCAM_TBL_TYPE_CT_RULE_TCAM] =
- CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_CT_RULE_TCAM,
[TF_TCAM_TBL_TYPE_VEB_TCAM] =
- CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_VEB_TCAM,
[TF_TCAM_TBL_TYPE_WC_TCAM_HIGH] =
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_HIGH,
[TF_TCAM_TBL_TYPE_WC_TCAM_LOW] =
- CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW_APPS,
+ CFA_TCAM_MGR_TBL_TYPE_WC_TCAM_LOW,
};
static uint16_t hcapi_type[TF_TCAM_TBL_TYPE_MAX];
--
2.39.3
next prev parent reply other threads:[~2024-11-07 13:43 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 13:52 [PATCH v8 00/47] TruFlow update for Thor2 Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 01/47] net/bnxt: tf_core: fix wc tcam multi slice delete issue Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 02/47] net/bnxt: tf_core: tcam manager data corruption Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 03/47] net/bnxt: tf_core: External EM support cleanup Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 04/47] net/bnxt: tf_core: Thor TF EM key size check Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 05/47] net/bnxt: tf_core: flow scale improvement Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 06/47] net/bnxt: tf_core: TF support flow scale query Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 07/47] net/bnxt: tf_core: fix slice count in case of HA entry move Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 08/47] net/bnxt: tf_core: convert priority based TCAM manager to dynamic allocation Sriharsha Basavapatna
2024-11-07 13:52 ` Sriharsha Basavapatna [this message]
2024-11-07 13:52 ` [PATCH v8 10/47] net/bnxt: tf_core: remove dead code from session-based priority TCAM mgr Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 11/47] net/bnxt: tfc: support tf-core for Thor2 Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 12/47] net/bnxt: tf_ulp: add vxlan-gpe base support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 13/47] net/bnxt: tf_ulp: add custom l2 etype tunnel support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 14/47] net/bnxt: tf_ulp: add support for vf to vf flow offload Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 15/47] net/bnxt: tf_ulp: Wh+ mirroring support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 16/47] net/bnxt: tf_ulp: miscellaneous fixes Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 17/47] net/bnxt: tf_ulp: support for Thor2 ulp layer Sriharsha Basavapatna
2024-12-10 13:32 ` David Marchand
2024-11-07 13:52 ` [PATCH v8 18/47] net/bnxt: tf_ulp: add support for overlapping flows Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 19/47] net/bnxt: tf_ulp: convert recipe table to dynamic memory Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 20/47] net/bnxt: tf_ulp: add feature bit support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 21/47] net/bnxt: tf_ulp: add action read and clear support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 22/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 23/47] net/bnxt: tf_ulp: VFR updates for Thor 2 Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 24/47] net/bnxt: tf_ulp: add support for tunnel flow stats Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 25/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 26/47] net/bnxt: tf_ulp: enable recipe id generation Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 27/47] net/bnxt: tf_ulp: fixed parent child db counters Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 28/47] net/bnxt: tf_ulp: modify return values to adhere to C coding standard Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 29/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 30/47] net/bnxt: tf_ulp: add mask defaults when mask is not specified Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 31/47] net/bnxt: tf_ulp: add jump action support Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 32/47] net/bnxt: tf_ulp: add support for flow priority Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 33/47] net/bnxt: tf_ulp: support for dynamic tunnel ports Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 34/47] net/bnxt: tf_ulp: add rte_mtr support for Thor2 Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 35/47] net/bnxt: tf_ulp: TF support flow scale query Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 36/47] net/bnxt: tf_ulp: add support for rss flow query to ULP Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 37/47] net/bnxt: tf_ulp: add track type feature to tables Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 38/47] net/bnxt: tf_ulp: inline utility functions and use likely/unlikely Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 39/47] net/bnxt: tf_ulp: switch ulp to use rte crc32 hash Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 40/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 41/47] net/bnxt: tf_ulp: support a few generic template items Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 42/47] net/bnxt: tf_ulp: TFC support flow scale query for Thor2 Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 43/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 44/47] net/bnxt: tf_ulp: enable support for truflow feature configuration Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 45/47] net/bnxt: tf_ulp: support a few feature extensions Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 46/47] net/bnxt: tf_ulp: update template files Sriharsha Basavapatna
2024-11-07 13:52 ` [PATCH v8 47/47] net/bnxt: tf_ulp: add stats cache for thor2 Sriharsha Basavapatna
2024-11-08 2:05 ` [PATCH v8 00/47] TruFlow update for Thor2 Sriharsha Basavapatna
2024-11-08 2:14 ` Ajit Khaparde
2024-11-12 11:00 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241107135254.1611676-10-sriharsha.basavapatna@broadcom.com \
--to=sriharsha.basavapatna@broadcom.com \
--cc=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=farah.smith@broadcom.com \
--cc=kishore.padmanabha@broadcom.com \
--cc=stuart.schacher@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).