| 212 | } |
| 213 | |
| 214 | static void |
| 215 | sw_port_release(void *port) |
| 216 | { |
| 217 | struct sw_port *p = (void *)port; |
| 218 | if (p == NULL) |
| 219 | return; |
| 220 | |
| 221 | rte_event_ring_free(p->rx_worker_ring); |
| 222 | rte_event_ring_free(p->cq_worker_ring); |
| 223 | memset(p, 0, sizeof(*p)); |
| 224 | } |
| 225 | |
| 226 | static int32_t |
| 227 | qid_init(struct sw_evdev *sw, unsigned int idx, int type, |
no test coverage detected