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

Function dsw_drain

dpdk/drivers/event/dsw/dsw_evdev.c:330–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static void
331dsw_drain(uint8_t dev_id, struct dsw_evdev *dsw,
332 eventdev_stop_flush_t flush, void *flush_arg)
333{
334 uint16_t port_id;
335
336 if (flush == NULL)
337 return;
338
339 for (port_id = 0; port_id < dsw->num_ports; port_id++) {
340 struct dsw_port *port = &dsw->ports[port_id];
341
342 dsw_port_drain_out(dev_id, dsw, port, flush, flush_arg);
343 dsw_port_drain_paused(dev_id, port, flush, flush_arg);
344 dsw_port_drain_in_ring(dev_id, port, flush, flush_arg);
345 }
346}
347
348static void
349dsw_stop(struct rte_eventdev *dev)

Callers 1

dsw_stopFunction · 0.85

Calls 3

dsw_port_drain_outFunction · 0.85
dsw_port_drain_pausedFunction · 0.85
dsw_port_drain_in_ringFunction · 0.70

Tested by

no test coverage detected