Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
New upstream version 17.11.5
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_lcore.h
diff --git
a/lib/librte_eal/common/include/rte_lcore.h
b/lib/librte_eal/common/include/rte_lcore.h
index
3735da0
..
0dd710d
100644
(file)
--- a/
lib/librte_eal/common/include/rte_lcore.h
+++ b/
lib/librte_eal/common/include/rte_lcore.h
@@
-136,7
+136,7
@@
rte_lcore_index(int lcore_id)
if (lcore_id >= RTE_MAX_LCORE)
return -1;
if (lcore_id < 0)
- lcore_id = rte_lcore_id();
+ lcore_id =
(int)
rte_lcore_id();
return lcore_config[lcore_id].core_index;
}