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

Function parse_event_eth_rx_queues

dpdk/examples/l3fwd/main.c:634–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634static void
635parse_event_eth_rx_queues(const char *eth_rx_queues)
636{
637 struct l3fwd_event_resources *evt_rsrc = l3fwd_get_eventdev_rsrc();
638 char *end = NULL;
639 uint16_t num_eth_rx_queues;
640
641 /* parse decimal string */
642 num_eth_rx_queues = strtoul(eth_rx_queues, &end, 10);
643 if ((eth_rx_queues[0] == '\0') || (end == NULL) || (*end != '\0'))
644 return;
645
646 if (num_eth_rx_queues == 0)
647 return;
648
649 evt_rsrc->eth_rx_queues = num_eth_rx_queues;
650}
651#endif
652
653static int

Callers 1

parse_argsFunction · 0.85

Calls 2

l3fwd_get_eventdev_rsrcFunction · 0.85
strtoulFunction · 0.85

Tested by

no test coverage detected