X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Ftf_ulp%2Fulp_mapper.h;h=004e89ac2b64de0ca7077d057a2ae734f6e784b5;hb=45633c460c223a67dd1a7cc084c3eceb5e17687c;hp=8652dd203cb3a979b36e55c9c2d0cecfe18b62d4;hpb=3fe124d2536c5b6d4aa9f7de77f90651b8fcd8e3;p=dpdk.git diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.h b/drivers/net/bnxt/tf_ulp/ulp_mapper.h index 8652dd203c..004e89ac2b 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_mapper.h +++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.h @@ -22,11 +22,12 @@ struct bnxt_ulp_mapper_glb_resource_entry { enum bnxt_ulp_resource_func resource_func; uint32_t resource_type; /* TF_ enum type */ uint64_t resource_hndl; + bool shared; }; struct bnxt_ulp_mapper_data { struct bnxt_ulp_mapper_glb_resource_entry - glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_RESOURCE_TBL_MAX_SZ]; + glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_RF_IDX_LAST]; struct ulp_mapper_gen_tbl_list gen_tbl_list[BNXT_ULP_GEN_TBL_MAX_SZ]; }; @@ -45,9 +46,8 @@ struct bnxt_ulp_mapper_parms { struct ulp_rte_hdr_bitmap *hdr_bitmap; struct ulp_rte_hdr_field *hdr_field; struct ulp_rte_field_bitmap *fld_bitmap; - uint32_t *comp_fld; + uint64_t *comp_fld; struct ulp_regfile *regfile; - struct tf *tfp; struct bnxt_ulp_context *ulp_ctx; uint32_t fid; enum bnxt_ulp_fdb_type flow_type; @@ -60,13 +60,15 @@ struct bnxt_ulp_mapper_parms { uint64_t shared_hndl; uint32_t flow_pattern_id; uint32_t act_pattern_id; + uint8_t app_id; + uint16_t port_id; }; 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; + uint64_t *comp_fld; struct ulp_rte_act_bitmap *act; struct ulp_rte_act_prop *act_prop; struct ulp_rte_field_bitmap *fld_bitmap; @@ -87,7 +89,8 @@ struct bnxt_ulp_mapper_create_parms { /* support pattern based rejection */ uint32_t flow_pattern_id; uint32_t act_pattern_id; - + uint8_t app_id; + uint16_t port_id; }; /* Function to initialize any dynamic mapper data. */