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

Function l2fwd_event_parse_eventq_sched

dpdk/examples/l2fwd-event/main.c:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static void
95l2fwd_event_parse_eventq_sched(const char *optarg,
96 struct l2fwd_resources *rsrc)
97{
98 if (!strncmp(optarg, "ordered", 7))
99 rsrc->sched_type = RTE_SCHED_TYPE_ORDERED;
100 else if (!strncmp(optarg, "atomic", 6))
101 rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC;
102 else if (!strncmp(optarg, "parallel", 8))
103 rsrc->sched_type = RTE_SCHED_TYPE_PARALLEL;
104}
105
106static int
107l2fwd_parse_port_pair_config(const char *q_arg, struct l2fwd_resources *rsrc)

Callers 1

l2fwd_event_parse_argsFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected