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

Function worker_multi_port_fn

dpdk/drivers/event/dpaa2/dpaa2_eventdev_selftest.c:440–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static int
441worker_multi_port_fn(void *arg)
442{
443 struct test_core_param *param = arg;
444 struct rte_event ev;
445 uint16_t valid_event;
446 uint8_t port = param->port;
447 rte_atomic32_t *total_events = param->total_events;
448 int ret;
449
450 while (rte_atomic32_read(total_events) > 0) {
451 valid_event = rte_event_dequeue_burst(evdev, port, &ev, 1, 0);
452 if (!valid_event)
453 continue;
454
455 ret = validate_event(&ev);
456 RTE_TEST_ASSERT_SUCCESS(ret, "Failed to validate event");
457 rte_pktmbuf_free(ev.mbuf);
458 rte_atomic32_sub(total_events, 1);
459 }
460 return 0;
461}
462
463static int
464wait_workers_to_join(int lcore, const rte_atomic32_t *count)

Callers

nothing calls this directly

Calls 5

rte_atomic32_readFunction · 0.85
rte_event_dequeue_burstFunction · 0.85
rte_pktmbuf_freeFunction · 0.85
rte_atomic32_subFunction · 0.85
validate_eventFunction · 0.70

Tested by

no test coverage detected