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

Function worker_multi_port_fn

dpdk/drivers/event/octeontx/ssovf_evdev_selftest.c:554–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554static int
555worker_multi_port_fn(void *arg)
556{
557 struct test_core_param *param = arg;
558 struct rte_event ev;
559 uint16_t valid_event;
560 uint8_t port = param->port;
561 rte_atomic32_t *total_events = param->total_events;
562 int ret;
563
564 while (rte_atomic32_read(total_events) > 0) {
565 valid_event = rte_event_dequeue_burst(evdev, port, &ev, 1, 0);
566 if (!valid_event)
567 continue;
568
569 ret = validate_event(&ev);
570 RTE_TEST_ASSERT_SUCCESS(ret, "Failed to validate event");
571 rte_pktmbuf_free(ev.mbuf);
572 rte_atomic32_sub(total_events, 1);
573 }
574 return 0;
575}
576
577static inline int
578wait_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