Searched refs:uflow_res (Results 1 – 4 of 4) sorted by relevance
141 void flow_resources_add(struct ib_uflow_resources *uflow_res,144 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);148 struct ib_uflow_resources *uflow_res) in ib_set_flow() argument162 uflow->resources = uflow_res; in ib_set_flow()
2626 if (!uflow_res) in ib_uverbs_flow_resources_free()2635 kfree(uflow_res->collection); in ib_uverbs_flow_resources_free()2636 kfree(uflow_res->counters); in ib_uverbs_flow_resources_free()2637 kfree(uflow_res); in ib_uverbs_flow_resources_free()2645 WARN_ON(uflow_res->num >= uflow_res->max); in flow_resources_add()2650 uflow_res->collection[uflow_res->collection_num++] = in flow_resources_add()2655 uflow_res->counters[uflow_res->counters_num++] = in flow_resources_add()2662 uflow_res->num++; in flow_resources_add()2903 uflow_res); in kern_spec_to_ib_spec()3298 if (!uflow_res) { in ib_uverbs_ex_create_flow()[all …]
193 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
2468 struct ib_uflow_resources *uflow_res; in UVERBS_HANDLER() local2531 uflow_res = flow_resources_alloc(MLX5_IB_CREATE_FLOW_MAX_FLOW_ACTIONS); in UVERBS_HANDLER()2532 if (!uflow_res) { in UVERBS_HANDLER()2546 flow_resources_add(uflow_res, IB_FLOW_SPEC_ACTION_HANDLE, in UVERBS_HANDLER()2568 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER()2572 ib_uverbs_flow_resources_free(uflow_res); in UVERBS_HANDLER()