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

Function l2fwd_event_parse_mode

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

Source from the content-addressed store, hash-verified

82}
83
84static void
85l2fwd_event_parse_mode(const char *optarg,
86 struct l2fwd_resources *rsrc)
87{
88 if (!strncmp(optarg, "poll", 4))
89 rsrc->event_mode = false;
90 else if (!strncmp(optarg, "eventdev", 8))
91 rsrc->event_mode = true;
92}
93
94static void
95l2fwd_event_parse_eventq_sched(const char *optarg,

Callers 1

l2fwd_event_parse_argsFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected