* special-case of rte_event_ring enqueue, with overriding the ops member on * the events that get written to the ring. */
| 36 | * the events that get written to the ring. |
| 37 | */ |
| 38 | static inline unsigned int |
| 39 | enqueue_burst_with_ops(struct rte_event_ring *r, const struct rte_event *events, |
| 40 | unsigned int n, uint8_t *ops) |
| 41 | { |
| 42 | struct rte_event tmp_evs[PORT_ENQUEUE_MAX_BURST_SIZE]; |
| 43 | unsigned int i; |
| 44 | |
| 45 | memcpy(tmp_evs, events, n * sizeof(events[0])); |
| 46 | for (i = 0; i < n; i++) |
| 47 | tmp_evs[i].op = ops[i]; |
| 48 | |
| 49 | return rte_event_ring_enqueue_burst(r, tmp_evs, n, NULL); |
| 50 | } |
| 51 | |
| 52 | uint16_t |
| 53 | sw_event_enqueue_burst(void *port, const struct rte_event ev[], uint16_t num) |
no test coverage detected