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

Function get_rx_queue_name

dpdk/examples/server_node_efd/shared/common.h:55–66  ·  view source on GitHub ↗

* Given the rx queue name template above, get the queue name */

Source from the content-addressed store, hash-verified

53 * Given the rx queue name template above, get the queue name
54 */
55static inline const char *
56get_rx_queue_name(unsigned int id)
57{
58 /*
59 * Buffer for return value. Size calculated by %u being replaced
60 * by maximum 3 digits (plus an extra byte for safety)
61 */
62 static char buffer[sizeof(MP_NODE_RXQ_NAME) + 2];
63
64 snprintf(buffer, sizeof(buffer), MP_NODE_RXQ_NAME, id);
65 return buffer;
66}
67
68#define RTE_LOGTYPE_APP RTE_LOGTYPE_USER1
69

Callers 2

init_shm_ringsFunction · 0.50
mainFunction · 0.50

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected