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

Function dsw_start

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

Source from the content-addressed store, hash-verified

267}
268
269static int
270dsw_start(struct rte_eventdev *dev)
271{
272 struct dsw_evdev *dsw = dsw_pmd_priv(dev);
273 uint16_t i;
274 uint64_t now;
275
276 dsw->credits_on_loan = 0;
277
278 initial_flow_to_port_assignment(dsw);
279
280 now = rte_get_timer_cycles();
281 for (i = 0; i < dsw->num_ports; i++) {
282 dsw->ports[i].measurement_start = now;
283 dsw->ports[i].busy_start = now;
284 }
285
286 return 0;
287}
288
289static void
290dsw_port_drain_buf(uint8_t dev_id, struct rte_event *buf, uint16_t buf_len,

Callers

nothing calls this directly

Calls 2

dsw_pmd_privFunction · 0.85

Tested by

no test coverage detected