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

Function l2fwd_event_parse_nqueue

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

Source from the content-addressed store, hash-verified

48}
49
50static unsigned int
51l2fwd_event_parse_nqueue(const char *q_arg)
52{
53 char *end = NULL;
54 unsigned long n;
55
56 /* parse hexadecimal string */
57 n = strtoul(q_arg, &end, 10);
58 if ((q_arg[0] == '\0') || (end == NULL) || (*end != '\0'))
59 return 0;
60 if (n == 0)
61 return 0;
62 if (n >= MAX_RX_QUEUE_PER_LCORE)
63 return 0;
64
65 return n;
66}
67
68static int
69l2fwd_event_parse_timer_period(const char *q_arg)

Callers 1

l2fwd_event_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected