X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_ulp%2Fulp_mapper.h;h=542e41e5aa24e49b82e58de12b38ca27ca48a288;hb=952ebacce4f2;hp=b35065449e2d3c5899aee7a273c90a359cf6fed5;hpb=d0eaabd4d17298a04ba0cfd510dbaa63cae69baa;p=dpdk.git diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.h b/drivers/net/bnxt/tf_ulp/ulp_mapper.h index b35065449e..542e41e5aa 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_mapper.h +++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.h @@ -46,13 +46,14 @@ struct bnxt_ulp_mapper_glb_resource_entry { struct bnxt_ulp_mapper_data { struct bnxt_ulp_mapper_glb_resource_entry - glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_RESOURCE_INFO_TBL_MAX_SZ]; + glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_RESOURCE_TBL_MAX_SZ]; struct bnxt_ulp_mapper_cache_entry *cache_tbl[BNXT_ULP_CACHE_TBL_MAX_SZ]; }; /* Internal Structure for passing the arguments around */ struct bnxt_ulp_mapper_parms { + enum bnxt_ulp_template_type tmpl_type; uint32_t dev_id; uint32_t act_tid; struct bnxt_ulp_mapper_tbl_info *atbls; /* action table */ @@ -70,11 +71,13 @@ struct bnxt_ulp_mapper_parms { struct bnxt_ulp_context *ulp_ctx; uint8_t encap_byte_swap; uint32_t fid; - enum bnxt_ulp_flow_db_tables tbl_idx; + enum bnxt_ulp_fdb_type flow_type; struct bnxt_ulp_mapper_data *mapper_data; enum bnxt_ulp_cache_table_opc tcam_tbl_opc; struct bnxt_ulp_mapper_cache_entry *cache_ptr; struct bnxt_ulp_device_params *device_params; + uint32_t parent_fid; + uint32_t parent_flow; }; struct bnxt_ulp_mapper_create_parms { @@ -87,7 +90,13 @@ struct bnxt_ulp_mapper_create_parms { uint32_t class_tid; uint32_t act_tid; uint16_t func_id; - enum ulp_direction_type dir; + uint32_t dir_attr; + enum bnxt_ulp_fdb_type flow_type; + + /* 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; }; /* Function to initialize any dynamic mapper data. */ @@ -109,16 +118,17 @@ ulp_mapper_flow_create(struct bnxt_ulp_context *ulp_ctx, /* Function that frees all resources associated with the flow. */ int32_t -ulp_mapper_flow_destroy(struct bnxt_ulp_context *ulp_ctx, uint32_t fid, - enum bnxt_ulp_flow_db_tables flow_tbl_type); +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, - uint32_t fid, - enum bnxt_ulp_flow_db_tables tbl_type); +ulp_mapper_resources_free(struct bnxt_ulp_context *ulp_ctx, + enum bnxt_ulp_fdb_type flow_type, + uint32_t fid); #endif /* _ULP_MAPPER_H_ */