MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ree_queue_pair_release

Function ree_queue_pair_release

dpdk/drivers/regex/cn9k/cn9k_regexdev.c:167–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static int
168ree_queue_pair_release(struct rte_regexdev *dev, uint16_t qp_id)
169{
170 struct cn9k_ree_data *data = dev->data->dev_private;
171 struct roc_ree_qp *qp = data->queue_pairs[qp_id];
172 int ret;
173
174 ree_func_trace("Queue=%d", qp_id);
175
176 if (qp == NULL)
177 return -EINVAL;
178
179 ret = ree_qp_destroy(dev, qp);
180 if (ret) {
181 cn9k_err("Could not destroy queue pair %d", qp_id);
182 return ret;
183 }
184
185 data->queue_pairs[qp_id] = NULL;
186
187 return 0;
188}
189
190static struct rte_regexdev *
191ree_dev_register(const char *name)

Callers 3

ree_dev_finiFunction · 0.85
cn9k_ree_dev_configFunction · 0.85

Calls 1

ree_qp_destroyFunction · 0.85

Tested by

no test coverage detected