From: Pavan Nikhilesh Date: Thu, 6 May 2021 21:03:09 +0000 (+0530) Subject: app/eventdev: fix lcore parsing skipping last core X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ca90f20feaa4280cac012ebca6f2ecebd5b72b98;p=dpdk.git app/eventdev: fix lcore parsing skipping last core 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 Acked-by: Jerin Jacob --- diff --git a/app/test-eventdev/parser.c b/app/test-eventdev/parser.c index 7a973cbb23..8818c37ff8 100644 --- 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;