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
raw/ifpga: fix file handle leak
[dpdk.git]
/
examples
/
qos_sched
/
args.c
diff --git
a/examples/qos_sched/args.c
b/examples/qos_sched/args.c
index
10ca7be
..
b295949
100644
(file)
--- a/
examples/qos_sched/args.c
+++ b/
examples/qos_sched/args.c
@@
-427,13
+427,13
@@
app_parse_args(int argc, char **argv)
/* check main core index validity */
for (i = 0; i <= app_main_core; i++) {
/* check main core index validity */
for (i = 0; i <= app_main_core; i++) {
- if (app_used_core_mask &
(1u <<
app_main_core)) {
+ if (app_used_core_mask &
RTE_BIT64(
app_main_core)) {
RTE_LOG(ERR, APP, "Main core index is not configured properly\n");
app_usage(prgname);
return -1;
}
}
RTE_LOG(ERR, APP, "Main core index is not configured properly\n");
app_usage(prgname);
return -1;
}
}
- app_used_core_mask |=
1u << app_main_core
;
+ app_used_core_mask |=
RTE_BIT64(app_main_core)
;
if ((app_used_core_mask != app_eal_core_mask()) ||
(app_main_core != rte_get_main_lcore())) {
if ((app_used_core_mask != app_eal_core_mask()) ||
(app_main_core != rte_get_main_lcore())) {