Home
last modified time | relevance | path

Searched refs:MAX_CPUS (Results 1 – 10 of 10) sorted by relevance

/mOS-networking-stack/samples/common/
H A Dapplib.h7 #ifndef MAX_CPUS
8 #define MAX_CPUS (16) // max number of CPU cores macro
/mOS-networking-stack/core/src/include/
H A Dmtcp.h46 #ifndef MAX_CPUS
47 #define MAX_CPUS 16 macro
340 struct mtcp_manager *g_mtcp[MAX_CPUS];
341 struct mtcp_context *g_ctx[MAX_CPUS];
/mOS-networking-stack/samples/epwget/
H A Depwget.c51 static pthread_t mtcp_thread[MAX_CPUS];
53 static mctx_t g_mctx[MAX_CPUS];
54 static int done[MAX_CPUS];
69 static int flows[MAX_CPUS];
132 static struct thread_context *g_ctx[MAX_CPUS] = {0};
133 static struct wget_stat *g_stat[MAX_CPUS] = {0};
596 for (i = 0; i < MAX_CPUS; i++) { in GlbInitWget()
814 int cores[MAX_CPUS]; in main()
H A Depwget-mp.c52 static mctx_t g_mctx[MAX_CPUS];
53 static int done[MAX_CPUS];
68 static int flows[MAX_CPUS];
131 static struct thread_context *g_ctx[MAX_CPUS] = {0};
132 static struct wget_stat *g_stat[MAX_CPUS] = {0};
594 for (i = 0; i < MAX_CPUS; i++) { in GlbInitWget()
822 if (current_core >= MAX_CPUS) { in main()
/mOS-networking-stack/core/src/
H A Ddpdk_module.c32 #define MAX_RX_QUEUE_PER_LCORE MAX_CPUS
33 #define MAX_TX_QUEUE_PER_PORT MAX_CPUS
73 static struct rte_mempool *pktmbuf_pool[MAX_CPUS] = {NULL};
74 static uint8_t cpu_qid_map[RTE_MAX_ETHPORTS][MAX_CPUS] = {{0}};
H A Dcore.c63 struct mtcp_thread_context *g_pctx[MAX_CPUS] = {0};
64 struct log_thread_context *g_logctx[MAX_CPUS] = {0};
66 static pthread_t g_thread[MAX_CPUS] = {0};
67 static pthread_t log_thread[MAX_CPUS] = {0};
69 static sem_t g_init_sem[MAX_CPUS];
70 static sem_t g_done_sem[MAX_CPUS];
71 static int running[MAX_CPUS] = {0};
74 static int sigint_cnt[MAX_CPUS] = {0};
75 static struct timespec sigint_ts[MAX_CPUS];
H A Dconfig.c1137 if (count > MAX_CPUS) { in PatchCONFIG()
1139 MAX_CPUS); in PatchCONFIG()
/mOS-networking-stack/samples/epserver/
H A Depserver-mp.c40 int cores[MAX_CPUS] = {0};
625 if (current_core >= MAX_CPUS) { in main()
H A Depserver.c43 static pthread_t mtcp_thread[MAX_CPUS];
616 int cores[MAX_CPUS]; in main()
/mOS-networking-stack/samples/simple_firewall/
H A Dsimple_firewall.c426 struct thread_context ctx[MAX_CPUS] = {{0}}; /* init all fields to 0 */ in main()