From: Kishore Padmanabha Date: Mon, 19 Jul 2021 18:00:50 +0000 (-0400) Subject: net/bnxt: fix stats counter resource X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9967ac7f8497453d96cdb4863e7bb2dc2b0c08f6;p=dpdk.git net/bnxt: fix stats counter resource The flow counters is reduced from 8192 to 6912 for Whitney for compatibility with different versions of FW. The FW resource manager splits resources for flow offload and other use cases. A higher value used for flow offload by the PMD can cause overriding the resources set aside by FW. This in turn can lead to FW rejecting filter creation requests during initialization. Use a smaller safe value to avoid these issues. Fixes: 6fad9115101c ("net/bnxt: reorganize ULP template directory structure") Cc: stable@dpdk.org Signed-off-by: Kishore Padmanabha Reviewed-by: Randy Schacher Acked-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c b/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c index 6664353764..7951de8a4e 100644 --- a/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c +++ b/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c @@ -1154,7 +1154,7 @@ struct bnxt_ulp_resource_resv_info ulp_resource_resv_list[] = { .direction = TF_DIR_RX, .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_ACT_STATS_64, - .count = 8192 + .count = 6912 }, { .app_id = 0, @@ -1298,7 +1298,7 @@ struct bnxt_ulp_resource_resv_info ulp_resource_resv_list[] = { .direction = TF_DIR_TX, .resource_func = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE, .resource_type = TF_TBL_TYPE_ACT_STATS_64, - .count = 8192 + .count = 6912 }, { .app_id = 0,