Lines Matching refs:flow

23 	struct rte_flow *flow;  in fs_flow_allocate()  local
39 flow = rte_zmalloc(NULL, offsetof(struct rte_flow, rule) + ret, in fs_flow_allocate()
41 if (flow == NULL) { in fs_flow_allocate()
45 ret = rte_flow_conv(RTE_FLOW_CONV_OP_RULE, &flow->rule, ret, &rule, in fs_flow_allocate()
51 rte_free(flow); in fs_flow_allocate()
54 return flow; in fs_flow_allocate()
58 fs_flow_release(struct rte_flow **flow) in fs_flow_release() argument
60 rte_free(*flow); in fs_flow_release()
61 *flow = NULL; in fs_flow_release()
99 struct rte_flow *flow; in fs_flow_create() local
103 flow = fs_flow_allocate(attr, patterns, actions); in fs_flow_create()
105 flow->flows[i] = rte_flow_create(PORT_ID(sdev), in fs_flow_create()
107 if (flow->flows[i] == NULL && fs_err(sdev, -rte_errno)) { in fs_flow_create()
113 TAILQ_INSERT_TAIL(&PRIV(dev)->flow_list, flow, next); in fs_flow_create()
115 return flow; in fs_flow_create()
118 if (flow->flows[i] != NULL) in fs_flow_create()
120 flow->flows[i], error); in fs_flow_create()
122 fs_flow_release(&flow); in fs_flow_create()
129 struct rte_flow *flow, in fs_flow_destroy() argument
136 if (flow == NULL) { in fs_flow_destroy()
145 if (flow->flows[i] == NULL) in fs_flow_destroy()
148 flow->flows[i], error); in fs_flow_destroy()
156 TAILQ_REMOVE(&PRIV(dev)->flow_list, flow, next); in fs_flow_destroy()
157 fs_flow_release(&flow); in fs_flow_destroy()
167 struct rte_flow *flow; in fs_flow_flush() local
183 TAILQ_FOREACH_SAFE(flow, &PRIV(dev)->flow_list, next, tmp) { in fs_flow_flush()
184 TAILQ_REMOVE(&PRIV(dev)->flow_list, flow, next); in fs_flow_flush()
185 fs_flow_release(&flow); in fs_flow_flush()
193 struct rte_flow *flow, in fs_flow_query() argument
204 flow->flows[SUB_ID(sdev)], in fs_flow_query()