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

Function cpfl_flow_engine_init

dpdk/drivers/net/cpfl/cpfl_flow.c:42–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42int
43cpfl_flow_engine_init(struct cpfl_adapter_ext *adapter)
44{
45 struct cpfl_flow_engine *engine = NULL;
46 void *temp;
47 int ret;
48
49 RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
50 if (!engine->init) {
51 PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
52 engine->type);
53 return -ENOTSUP;
54 }
55
56 ret = engine->init(adapter);
57 if (ret) {
58 PMD_INIT_LOG(ERR, "Failed to initialize engine %d",
59 engine->type);
60 return ret;
61 }
62 }
63
64 return 0;
65}
66
67void
68cpfl_flow_engine_uninit(struct cpfl_adapter_ext *adapter)

Callers 1

cpfl_flow_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected