From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id E63F3A0096 for ; Wed, 10 Apr 2019 09:25:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83DC95B2C; Wed, 10 Apr 2019 09:25:58 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 42DF75B2A for ; Wed, 10 Apr 2019 09:25:57 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3A7PtbD003354 for ; Wed, 10 Apr 2019 00:25:56 -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-type; s=pfpt0818; bh=HBmdDTdLMdfLuGxqzgpEsZvHMSWH3EurZ6zv9U3O+ZY=; b=tlauwhfAxKfxUnNuNY0Gok+nYc9ORL82EnFVsJe/AWRXKKiFMw4Md9Qow7X1xaqnSZkZ Ns9FS6VPJQ9nmjyLvGwIIokj9b/wMWVbp7/z9SL8nuba52l6/Yqxtu6ZpHijQCoD0xt/ L9hb8eaD6etU2kIzX8o2iOAEnOGVp4gQH0TZ7F5pj/XqC7P5opggeaKXYpdcmzuFsBgp 7zWPbAS/nxynbHODr63shNHwGI7NcLMfOfns1q9S5vI0IVQ5QKuC9JDbrggQmSVsxdt5 iszgoBlCSXMR8YxVy54HNVgPWY247vbJpJhi92e9ar6CSWHqeZ+2m6v2MMxgqBV2VTxa yg== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2rrn7xcqnv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 10 Apr 2019 00:25:56 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 10 Apr 2019 00:25:44 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 10 Apr 2019 00:25:44 -0700 Received: from hyd1vattunuru-dt.caveonetworks.com (unknown [10.95.5.6]) by maili.marvell.com (Postfix) with ESMTP id DA5683F7040; Wed, 10 Apr 2019 00:25:41 -0700 (PDT) From: Vamsi Attunuru To: CC: Vamsi Attunuru Date: Wed, 10 Apr 2019 12:55:32 +0530 Message-ID: <20190410072532.17182-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-10_04:, , signatures=0 Subject: [dpdk-dev] [PATCH v1 1/1] app/test: fix --socket-mem option in eal flag autotest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Message-ID: <20190410072532._cN4ZjJ-iNL6IKIaUVjzjyQYrja01J-8j2Q_84tqu7M@z> "argv2[]" positive test case fails with RTE_MAX_NUMA_NODES=1 config because of "--socket-mem=0,0,0,0" option, which passes memory sizes for multiple sockets. This patch fixes the issue by passing memory size for node 0 alone. Signed-off-by: Vamsi Attunuru --- app/test/test_eal_flags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index 9112c96..90df7b3 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -1161,7 +1161,7 @@ test_memory_flags(void) /* valid (zero) --socket-mem flag */ const char *argv2[] = {prgname, "-c", "10", "-n", "2", - "--file-prefix=" memtest, "--socket-mem=0,0,0,0"}; + "--file-prefix=" memtest, "--socket-mem=0"}; /* invalid (incomplete) --socket-mem flag */ const char *argv3[] = {prgname, "-c", "10", "-n", "2", -- 2.8.4