+struct bnxt_ulp_mapper_create_parms {
+ uint32_t app_priority;
+ struct ulp_rte_hdr_bitmap *hdr_bitmap;
+ struct ulp_rte_hdr_field *hdr_field;
+ uint32_t *comp_fld;
+ struct ulp_rte_act_bitmap *act;
+ struct ulp_rte_act_prop *act_prop;
+ uint32_t class_tid;
+ uint32_t act_tid;
+ uint16_t func_id;
+ uint32_t dir_attr;
+ enum bnxt_ulp_fdb_type flow_type;
+
+ uint32_t flow_id;
+ /* if set then create it as a child flow with parent as parent_fid */
+ uint32_t parent_fid;
+ /* if set then create a parent flow */
+ uint32_t parent_flow;
+ uint8_t tun_idx;
+};
+
+/* Function to initialize any dynamic mapper data. */
+int32_t
+ulp_mapper_init(struct bnxt_ulp_context *ulp_ctx);
+
+/* Function to release all dynamic mapper data. */
+void
+ulp_mapper_deinit(struct bnxt_ulp_context *ulp_ctx);
+
+/*
+ * Function to handle the mapping of the Flow to be compatible
+ * with the underlying hardware.
+ */
+int32_t
+ulp_mapper_flow_create(struct bnxt_ulp_context *ulp_ctx,
+ struct bnxt_ulp_mapper_create_parms *parms);
+
+/* Function that frees all resources associated with the flow. */
+int32_t
+ulp_mapper_flow_destroy(struct bnxt_ulp_context *ulp_ctx,
+ enum bnxt_ulp_fdb_type flow_type,
+ uint32_t fid);
+
+/*
+ * Function that frees all resources and can be called on default or regular
+ * flows
+ */
+int32_t
+ulp_mapper_resources_free(struct bnxt_ulp_context *ulp_ctx,
+ enum bnxt_ulp_fdb_type flow_type,
+ uint32_t fid);
+