From: Mike Baucom Date: Sat, 25 Apr 2020 03:47:22 +0000 (+0530) Subject: net/bnxt: enable processing partially added flows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=16d48e01219e6d4181407dbf7817c749ed05e6e4;p=dpdk.git net/bnxt: enable processing partially added flows The resource function did not have a method of invalidating or indicating that a resource is uninitialized. Added an invalid enum so that processing works correctly for partially added flows. Signed-off-by: Mike Baucom Reviewed-by: Kishore Padmanabha Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db.h b/drivers/net/bnxt/tf_ulp/ulp_template_db.h index a5606bdc4e..e6065d2fbd 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_template_db.h +++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.h @@ -204,13 +204,14 @@ enum bnxt_ulp_regfile_index { }; enum bnxt_ulp_resource_func { - BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE = 0, - BNXT_ULP_RESOURCE_FUNC_EM_TABLE = 1, - BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE = 2, - BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE = 3, - BNXT_ULP_RESOURCE_FUNC_IDENTIFIER = 4, - BNXT_ULP_RESOURCE_FUNC_HW_FID = 5, - BNXT_ULP_RESOURCE_FUNC_LAST = 6 + BNXT_ULP_RESOURCE_FUNC_INVALID = 0, + BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE = 1, + BNXT_ULP_RESOURCE_FUNC_EM_TABLE = 2, + BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE = 3, + BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE = 4, + BNXT_ULP_RESOURCE_FUNC_IDENTIFIER = 5, + BNXT_ULP_RESOURCE_FUNC_HW_FID = 6, + BNXT_ULP_RESOURCE_FUNC_LAST = 7 }; enum bnxt_ulp_result_opc {