net/bnxt: enable processing partially added flows
authorMike Baucom <michael.baucom@broadcom.com>
Sat, 25 Apr 2020 03:47:22 +0000 (09:17 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:53:57 +0000 (15:53 +0200)
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 <michael.baucom@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_template_db.h

index a5606bd..e6065d2 100644 (file)
@@ -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 {