| 453 | } |
| 454 | |
| 455 | static void |
| 456 | sw_clean_qid_iqs(struct rte_eventdev *dev) |
| 457 | { |
| 458 | struct sw_evdev *sw = sw_pmd_priv(dev); |
| 459 | int i, j; |
| 460 | |
| 461 | /* Release the IQ memory of all configured qids */ |
| 462 | for (i = 0; i < RTE_EVENT_MAX_QUEUES_PER_DEV; i++) { |
| 463 | struct sw_qid *qid = &sw->qids[i]; |
| 464 | |
| 465 | for (j = 0; j < SW_IQS_MAX; j++) { |
| 466 | if (!qid->iq[j].head) |
| 467 | continue; |
| 468 | iq_free_chunk_list(sw, qid->iq[j].head); |
| 469 | qid->iq[j].head = NULL; |
| 470 | } |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | static void |
| 475 | sw_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id, |
no test coverage detected