git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a18887
)
app/eventdev: fix lcore parsing skipping last core
author
Pavan Nikhilesh
<pbhagavatula@marvell.com>
Thu, 6 May 2021 21:03:09 +0000
(
02:33
+0530)
committer
Jerin Jacob
<jerinj@marvell.com>
Sun, 9 May 2021 16:00:18 +0000
(18:00 +0200)
The last lcore declared in the list is also a valid lcore in the list.
Fixes:
32d7dbf269be
("app/eventdev: fix overflow in lcore list parsing")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
app/test-eventdev/parser.c
patch
|
blob
|
history
diff --git
a/app/test-eventdev/parser.c
b/app/test-eventdev/parser.c
index
7a973cb
..
8818c37
100644
(file)
--- a/
app/test-eventdev/parser.c
+++ b/
app/test-eventdev/parser.c
@@
-345,7
+345,7
@@
parse_lcores_list(bool lcores[], int lcores_num, const char *corelist)
max = idx;
if (min == RTE_MAX_LCORE)
min = idx;
- for (idx = min; idx < max; idx++) {
+ for (idx = min; idx <
=
max; idx++) {
if (lcores[idx] == 1)
return -E2BIG;
lcores[idx] = 1;