| 419 | } |
| 420 | |
| 421 | static void |
| 422 | sw_drain_queue(struct rte_eventdev *dev, struct sw_iq *iq) |
| 423 | { |
| 424 | struct sw_evdev *sw = sw_pmd_priv(dev); |
| 425 | eventdev_stop_flush_t flush; |
| 426 | uint8_t dev_id; |
| 427 | void *arg; |
| 428 | |
| 429 | flush = dev->dev_ops->dev_stop_flush; |
| 430 | dev_id = dev->data->dev_id; |
| 431 | arg = dev->data->dev_stop_flush_arg; |
| 432 | |
| 433 | while (iq_count(iq) > 0) { |
| 434 | struct rte_event ev; |
| 435 | |
| 436 | iq_dequeue_burst(sw, iq, &ev, 1); |
| 437 | |
| 438 | if (flush) |
| 439 | flush(dev_id, ev, arg); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | static void |
| 444 | sw_drain_queues(struct rte_eventdev *dev) |
no test coverage detected