| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | bnxt_ulp.c | 56 if (!ulp_ctx || !ulp_ctx->cfg_data) in ulp_ctx_deinit_allowed() 732 if (!ulp_ctx || !ulp_ctx->cfg_data) in ulp_eem_tbl_scope_deinit() 1618 if (!ulp_ctx || !ulp_ctx->cfg_data) in bnxt_ulp_cntxt_ptr2_mark_db_get() 1654 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_dev_id_set() 1667 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_dev_id_get() 1680 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_mem_type_set() 1692 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_mem_type_get() 1706 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_tbl_scope_id_get() 1719 if (ulp_ctx && ulp_ctx->cfg_data) { in bnxt_ulp_cntxt_tbl_scope_id_set() 2033 entry->ulp_ctx = ulp_ctx; in bnxt_ulp_cntxt_list_add() [all …]
|
| H A D | ulp_ha_mgr.c | 53 if (ulp_ctx == NULL) { in ulp_ha_mgr_state_set() 87 if (ulp_ctx == NULL || cnt == NULL) { in ulp_ha_mgr_tf_client_num_get() 117 if (ulp_ctx == NULL) { in ulp_ha_mgr_region_set() 138 if (ulp_ctx == NULL) { in ulp_ha_mgr_app_type_set() 158 struct bnxt_ulp_context *ulp_ctx; in ulp_ha_mgr_timer_cb() local 167 if (ulp_ctx == NULL) { in ulp_ha_mgr_timer_cb() 219 rc = ulp_ha_mgr_state_set(ulp_ctx, in ulp_ha_mgr_timer_cb() 245 rc = ulp_ha_mgr_state_set(ulp_ctx, in ulp_ha_mgr_timer_cb() 345 ulp_ha_mgr_deinit(ulp_ctx); in ulp_ha_mgr_init() 354 ulp_ha_mgr_timer_cancel(ulp_ctx); in ulp_ha_mgr_deinit() [all …]
|
| H A D | bnxt_ulp_flow.c | 183 if (!ulp_ctx) { in bnxt_ulp_flow_create() 190 params.ulp_ctx = ulp_ctx; in bnxt_ulp_flow_create() 307 if (!ulp_ctx) { in bnxt_ulp_flow_validate() 314 params.ulp_ctx = ulp_ctx; in bnxt_ulp_flow_validate() 372 if (!ulp_ctx) { in bnxt_ulp_flow_destroy() 432 if (!ulp_ctx) { in bnxt_ulp_flow_flush() 469 if (!ulp_ctx) { in bnxt_ulp_flow_query() 512 if (ulp_ctx == NULL) { in bnxt_ulp_tunnel_decap_set() 569 if (ulp_ctx == NULL) { in bnxt_ulp_tunnel_match() 625 if (ulp_ctx == NULL) { in bnxt_ulp_tunnel_decap_release() [all …]
|
| H A D | bnxt_ulp.h | 135 struct bnxt_ulp_context *ulp_ctx; member 143 ulp_ctx_deinit_allowed(struct bnxt_ulp_context *ulp_ctx); 155 bnxt_ulp_cntxt_mem_type_get(struct bnxt_ulp_context *ulp_ctx, 160 bnxt_ulp_cntxt_mem_type_set(struct bnxt_ulp_context *ulp_ctx, 165 bnxt_ulp_cntxt_tbl_scope_id_set(struct bnxt_ulp_context *ulp_ctx, 170 bnxt_ulp_cntxt_tbl_scope_id_get(struct bnxt_ulp_context *ulp_ctx, 195 bnxt_ulp_ctxt_ptr2_mark_db_set(struct bnxt_ulp_context *ulp_ctx, 199 bnxt_ulp_ctxt_ptr2_mark_db_get(struct bnxt_ulp_context *ulp_ctx); 203 bnxt_ulp_cntxt_ptr2_flow_db_set(struct bnxt_ulp_context *ulp_ctx, 229 bnxt_ulp_cntxt_ptr2_port_db_set(struct bnxt_ulp_context *ulp_ctx, [all …]
|
| H A D | ulp_def_rules.c | 16 int32_t (*vfr_func)(struct bnxt_ulp_context *ulp_ctx, 231 rc = ulp_set_parif_in_comp_fld(ulp_ctx, ifindex, in ulp_df_dev_port_handler() 306 struct bnxt_ulp_context *ulp_ctx; in ulp_default_flow_create() local 324 if (!ulp_ctx) { in ulp_default_flow_create() 357 if (ulp_port_db_port_func_id_get(ulp_ctx, in ulp_default_flow_create() 385 bnxt_ulp_cntxt_release_fdb_lock(ulp_ctx); in ulp_default_flow_create() 392 bnxt_ulp_cntxt_release_fdb_lock(ulp_ctx); in ulp_default_flow_create() 413 struct bnxt_ulp_context *ulp_ctx; in ulp_default_flow_destroy() local 417 if (!ulp_ctx) { in ulp_default_flow_destroy() 435 bnxt_ulp_cntxt_release_fdb_lock(ulp_ctx); in ulp_default_flow_destroy() [all …]
|
| H A D | ulp_ha_mgr.h | 38 ulp_ha_mgr_is_enabled(struct bnxt_ulp_context *ulp_ctx); 41 ulp_ha_mgr_enable(struct bnxt_ulp_context *ulp_ctx); 44 ulp_ha_mgr_init(struct bnxt_ulp_context *ulp_ctx); 47 ulp_ha_mgr_deinit(struct bnxt_ulp_context *ulp_ctx); 50 ulp_ha_mgr_app_type_get(struct bnxt_ulp_context *ulp_ctx, 54 ulp_ha_mgr_state_get(struct bnxt_ulp_context *ulp_ctx, 58 ulp_ha_mgr_open(struct bnxt_ulp_context *ulp_ctx); 61 ulp_ha_mgr_close(struct bnxt_ulp_context *ulp_ctx); 64 ulp_ha_mgr_region_get(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_mapper.h | 53 struct bnxt_ulp_context *ulp_ctx; member 102 ulp_mapper_init(struct bnxt_ulp_context *ulp_ctx); 106 ulp_mapper_deinit(struct bnxt_ulp_context *ulp_ctx); 113 ulp_mapper_flow_create(struct bnxt_ulp_context *ulp_ctx, 118 ulp_mapper_flow_destroy(struct bnxt_ulp_context *ulp_ctx, 127 ulp_mapper_resources_free(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_flow_db.c | 968 if (!ulp_ctx) { in ulp_flow_db_flush_flows() 973 flow_db = bnxt_ulp_cntxt_ptr2_flow_db_get(ulp_ctx); in ulp_flow_db_flush_flows() 978 if (bnxt_ulp_cntxt_acquire_fdb_lock(ulp_ctx)) { in ulp_flow_db_flush_flows() 986 bnxt_ulp_cntxt_release_fdb_lock(ulp_ctx); in ulp_flow_db_flush_flows() 1006 if (!ulp_ctx || !func_id) { in ulp_flow_db_function_flow_flush() 1011 flow_db = bnxt_ulp_cntxt_ptr2_flow_db_get(ulp_ctx); in ulp_flow_db_function_flow_flush() 1016 if (bnxt_ulp_cntxt_acquire_fdb_lock(ulp_ctx)) { in ulp_flow_db_function_flow_flush() 1024 ulp_mapper_resources_free(ulp_ctx, in ulp_flow_db_function_flow_flush() 1028 bnxt_ulp_cntxt_release_fdb_lock(ulp_ctx); in ulp_flow_db_function_flow_flush() 1173 rc = ulp_flow_db_resource_params_get(ulp_ctx, in ulp_default_flow_db_cfa_action_get() [all …]
|
| H A D | ulp_mapper.c | 643 rc = ulp_flow_db_fid_alloc(parms->ulp_ctx, in ulp_mapper_fdb_opc_alloc_rid() 658 ulp_flow_db_fid_free(parms->ulp_ctx, in ulp_mapper_fdb_opc_alloc_rid() 3125 tfp = bnxt_ulp_cntxt_shared_tfp_get(ulp_ctx); in ulp_mapper_app_glb_resource_info_init() 3849 if (!ulp_ctx) { in ulp_mapper_resources_free() 3888 rc = ulp_flow_db_resource_del(ulp_ctx, in ulp_mapper_resources_free() 3935 if (!ulp_ctx) { in ulp_mapper_flow_destroy() 3955 if (!ulp_ctx || !cparms) in ulp_mapper_flow_create() 3969 parms.ulp_ctx = ulp_ctx; in ulp_mapper_flow_create() 4065 if (!ulp_ctx) in ulp_mapper_init() 4115 ulp_mapper_deinit(ulp_ctx); in ulp_mapper_init() [all …]
|
| H A D | ulp_flow_db.h | 211 ulp_flow_db_flush_flows(struct bnxt_ulp_context *ulp_ctx, 223 ulp_flow_db_function_flow_flush(struct bnxt_ulp_context *ulp_ctx, 234 ulp_flow_db_session_flow_flush(struct bnxt_ulp_context *ulp_ctx); 246 ulp_flow_db_validate_flow_func(struct bnxt_ulp_context *ulp_ctx, 260 ulp_default_flow_db_cfa_action_get(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_tun.c | 13 ulp_app_tun_search_entry(struct bnxt_ulp_context *ulp_ctx, in ulp_app_tun_search_entry() argument 20 tun_ent_list = bnxt_ulp_cntxt_ptr2_app_tun_list_get(ulp_ctx); in ulp_app_tun_search_entry() 94 ulp_app_tun_match_entry(struct bnxt_ulp_context *ulp_ctx, in ulp_app_tun_match_entry() argument 100 tun_ent_list = bnxt_ulp_cntxt_ptr2_app_tun_list_get(ulp_ctx); in ulp_app_tun_match_entry() 122 tun_tbl = bnxt_ulp_cntxt_ptr2_tun_tbl_get(params->ulp_ctx); in ulp_get_tun_entry()
|
| H A D | ulp_tun.h | 37 ulp_app_tun_search_entry(struct bnxt_ulp_context *ulp_ctx, 51 ulp_app_tun_match_entry(struct bnxt_ulp_context *ulp_ctx, const void *ctx);
|
| H A D | bnxt_tf_common.h | 66 bnxt_ulp_cntxt_ptr2_mark_db_get(struct bnxt_ulp_context *ulp_ctx); 69 bnxt_ulp_cntxt_ptr2_mark_db_set(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_gen_tbl.c | 258 ulp_mapper_gen_tbl_entry_free(struct bnxt_ulp_context *ulp_ctx, in ulp_mapper_gen_tbl_entry_free() argument 267 return ulp_mapper_gen_tbl_res_free(ulp_ctx, &res); in ulp_mapper_gen_tbl_entry_free() 278 ulp_mapper_gen_tbl_res_free(struct bnxt_ulp_context *ulp_ctx, in ulp_mapper_gen_tbl_res_free() argument 298 mapper_data = bnxt_ulp_cntxt_ptr2_mapper_data_get(ulp_ctx); in ulp_mapper_gen_tbl_res_free() 352 if (ulp_mapper_flow_destroy(ulp_ctx, BNXT_ULP_FDB_TYPE_RID, in ulp_mapper_gen_tbl_res_free()
|
| H A D | ulp_gen_tbl.h | 142 ulp_mapper_gen_tbl_res_free(struct bnxt_ulp_context *ulp_ctx, 154 ulp_mapper_gen_tbl_entry_free(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_rte_parser.c | 243 if (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx, in bnxt_ulp_comp_fld_intf_update() 252 if (ulp_port_db_parif_get(params->ulp_ctx, ifindex, in bnxt_ulp_comp_fld_intf_update() 268 if (ulp_port_db_parif_get(params->ulp_ctx, ifindex, in bnxt_ulp_comp_fld_intf_update() 281 if (ulp_port_db_parif_get(params->ulp_ctx, ifindex, in bnxt_ulp_comp_fld_intf_update() 445 ulp_port_db_svif_get(params->ulp_ctx, ifindex, svif_type, in ulp_rte_parser_svif_set() 473 if (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx, in ulp_rte_parser_implicit_match_port_process() 523 if (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx, in ulp_rte_pf_hdr_handler() 558 if (ulp_port_db_dev_func_id_to_ulp_index(params->ulp_ctx, in ulp_rte_vf_hdr_handler() 623 if (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx, in ulp_rte_port_hdr_handler() 695 if (ulp_port_db_phy_port_get(params->ulp_ctx, in ulp_rte_phy_port_hdr_handler() [all …]
|
| H A D | ulp_fc_mgr.h | 167 int ulp_fc_mgr_query_count_get(struct bnxt_ulp_context *ulp_ctx,
|
| H A D | ulp_template_struct.h | 88 struct bnxt_ulp_context *ulp_ctx; member
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_reps.c | 318 if (!parent_bp || !parent_bp->ulp_ctx) { in bnxt_tf_vfr_alloc() 330 rc = ulp_port_db_dev_port_intf_update(parent_bp->ulp_ctx, vfr_ethdev); in bnxt_tf_vfr_alloc() 371 if (parent_bp && !parent_bp->ulp_ctx) { in bnxt_vfr_alloc()
|
| H A D | bnxt.h | 858 struct bnxt_ulp_context *ulp_ctx; member
|
| H A D | bnxt_rxr.c | 800 rc = ulp_mark_db_mark_get(bp->ulp_ctx, gfid, in bnxt_ulp_set_mark_in_mbuf()
|