git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/distributor: add dedicated core
[dpdk.git]
/
examples
/
qos_sched
/
args.c
diff --git
a/examples/qos_sched/args.c
b/examples/qos_sched/args.c
index
0173d07
..
476a0ee
100644
(file)
--- a/
examples/qos_sched/args.c
+++ b/
examples/qos_sched/args.c
@@
-123,7
+123,7
@@
app_eal_core_mask(void)
uint64_t cm = 0;
struct rte_config *cfg = rte_eal_get_configuration();
uint64_t cm = 0;
struct rte_config *cfg = rte_eal_get_configuration();
- for (i = 0; i <
RTE
_MAX_LCORE; i++) {
+ for (i = 0; i <
APP
_MAX_LCORE; i++) {
if (cfg->lcore_role[i] == ROLE_RTE)
cm |= (1ULL << i);
}
if (cfg->lcore_role[i] == ROLE_RTE)
cm |= (1ULL << i);
}
@@
-142,7
+142,7
@@
app_cpu_core_count(void)
char path[PATH_MAX];
uint32_t ncores = 0;
char path[PATH_MAX];
uint32_t ncores = 0;
- for
(i = 0; i < RTE
_MAX_LCORE; i++) {
+ for
(i = 0; i < APP
_MAX_LCORE; i++) {
len = snprintf(path, sizeof(path), SYS_CPU_DIR, i);
if (len <= 0 || (unsigned)len >= sizeof(path))
continue;
len = snprintf(path, sizeof(path), SYS_CPU_DIR, i);
if (len <= 0 || (unsigned)len >= sizeof(path))
continue;