From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0DCB2A0524; Thu, 6 May 2021 23:03:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF43F410DB; Thu, 6 May 2021 23:03:20 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B4F2340040; Thu, 6 May 2021 23:03:19 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 146KxghR015615; Thu, 6 May 2021 14:03:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=NfVRgE3YOME7PVhZGXuzkRqhpRhlOTYPtJUjEmnFBIs=; b=iBSaUqC9d1sfA92nXTs9aVVxis0frlB11ogtB1e0OKIvKXKvSBOEZXtfnDmoR7rlCPGx M5zgSFcD/OVeRBoIzUmELnwzPeTmxWASVgEzxg/8JnNHi6YVgrSstHoOXoDaMW9qjmFg 3YU/qZUnLaKt1tFcKJBT/xBDuGO+WrmH71lNeTBqxoOXoVfS9NFK8pRaTpvUpHnECs3Q wSlJXvypnBAy9cDHt9MLkt1kwAVdvssfD6M88RGsSljlVg1FrKT/MDm5stwQgB18mGqC e7JuwBojqetjXOF8fE0tTjnMN7+HSKl/rEVl4pFHS5gKb5zjoPfK5J3J4PES9KdkTPYZ pQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 38cdp3aenk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 06 May 2021 14:03:18 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 6 May 2021 14:03:16 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 6 May 2021 14:03:16 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id F41DE5B692F; Thu, 6 May 2021 14:03:14 -0700 (PDT) From: To: CC: , Pavan Nikhilesh , Date: Fri, 7 May 2021 02:33:09 +0530 Message-ID: <20210506210310.308-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: DCtoPMH8MvQZ4_ZToXrepinQ8rEav4RD X-Proofpoint-GUID: DCtoPMH8MvQZ4_ZToXrepinQ8rEav4RD X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-06_10:2021-05-06, 2021-05-06 signatures=0 Subject: [dpdk-dev] [PATCH] app/eventdev: fix lcore parsing skipping last core X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh 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 --- app/test-eventdev/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1