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

Function sw_port_release

dpdk/drivers/event/sw/sw_evdev.c:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static void
215sw_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
226static int32_t
227qid_init(struct sw_evdev *sw, unsigned int idx, int type,

Callers 1

sw_closeFunction · 0.85

Calls 2

rte_event_ring_freeFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected