From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 2610D293B for ; Fri, 25 Jan 2019 08:56:06 +0100 (CET) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190125075605euoutp02bf9049e484ccf4ebb64da8f5efd7a285~9CEsqy3Bg1862918629euoutp02c for ; Fri, 25 Jan 2019 07:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190125075605euoutp02bf9049e484ccf4ebb64da8f5efd7a285~9CEsqy3Bg1862918629euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548402965; bh=av8Peh/bpkfrfhL0AIGOHIY5icnd9tMir0srYyfm4z0=; h=From:To:Cc:Subject:Date:References:From; b=Ia1tqpJywyNbEcKPOLnGdogEZ/gRWhH4lETOloaDtEFiqvpZl1JrPGTc03cWx9DMn hJBV2q0CB7k+KsHc0UUOyxOS1Io2ZBIbJY/PsKHnSc2t/czssQtqPcnov8wJ2biU81 uX0Yg6sxNiRkM4aNUjLm8XTzkZ81DakaKpIP+mg4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190125075605eucas1p1ea574991edb6d9f5c32bb72650c7f3d6~9CEsNhJDu0369403694eucas1p1C; Fri, 25 Jan 2019 07:56:05 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D9.3D.04806.511CA4C5; Fri, 25 Jan 2019 07:56:05 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190125075604eucas1p2ecf0177c3f953e889721d784ef387254~9CErWezGD0417904179eucas1p2d; Fri, 25 Jan 2019 07:56:04 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190125075604eusmtrp1c439f8d0f28ea07d5ccbb42e5b1fc66e~9CErIESZ81234212342eusmtrp1O; Fri, 25 Jan 2019 07:56:04 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-33-5c4ac1155ca8 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 82.12.04284.411CA4C5; Fri, 25 Jan 2019 07:56:04 +0000 (GMT) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190125075603eusmtip2918cba57ec20c11c2b7437353f10533e~9CEqcfHbr2755927559eusmtip2X; Fri, 25 Jan 2019 07:56:03 +0000 (GMT) From: Ilya Maximets To: dev@dpdk.org, Anatoly Burakov Cc: Thomas Monjalon , ShuaiX Zhu , Xueqin Lin , WenjieX A Li , FengqinX Wang , Ilya Maximets , stable@dpdk.org Date: Fri, 25 Jan 2019 10:55:58 +0300 Message-Id: <20190125075558.27139-1-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsWy7djP87qiB71iDC53sFg8ureY2eLdp+1M Foc3rWaxuNL+k93i4KcVbBb/Ov6wW3x6cILFouXeGnaL35MnsTpwevxasJTVY/Gel0wex25O Y/fo27KKMYAlissmJTUnsyy1SN8ugSvj4PdzTAU/OCtW3H/A3MA4maOLkZNDQsBEYuOel4xd jFwcQgIrGCVW790F5XxhlPj66i4LhPOZUWJz3zwmmJYjOx6zQSSWM0pMPX6GFcL5wSjx++Ms ZpAqNgEdiVOrjzCC2CICthJ/b+xnByliFvjHKLHr2A+whDDQqHd9r8AaWARUJa5O3AVUxMHB K2AtcemAJcQ2eYnVGw4wg/RKCDxmk1j6eSEjRMJFonn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0piZVVqUX58UWlOavEhRlOg3ROZpUST84GxklcSb2hqaG5haWhubG5sZqEkznveoDJK SCA9sSQ1OzW1ILUIpo+Jg1OqgbGhRH+d+v9nTSHfSruLxO1/T+G+n8d15eKlmtLf79xZ6v8s fcbSrnOK+ebrxUeKl87elZbnuSuzOG55i82jjAvs65+v2sh/3mfRlo/TVtxN7NvhNP3W0/eb naPzTzrnvC8PnKBYteaju3nmB92O25+Es5fOfjWne7HY2Tgr25K2druHW/bE7nFSYinOSDTU Yi4qTgQAKoFjnV0CAAA= X-CMS-MailID: 20190125075604eucas1p2ecf0177c3f953e889721d784ef387254 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190125075604eucas1p2ecf0177c3f953e889721d784ef387254 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190125075604eucas1p2ecf0177c3f953e889721d784ef387254 References: Subject: [dpdk-stable] [PATCH] test: test zero socket-mem as valid X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 07:56:07 -0000 Dynamic memory mode allowes zero socket-mem because all the required memory could be allocated on demand. Fixes: 339c2244b4f1 ("eal: fix parsing zero socket memory and limits") Cc: stable@dpdk.org Signed-off-by: Ilya Maximets --- test/test/test_eal_flags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test/test_eal_flags.c b/test/test/test_eal_flags.c index e3a60c7ae..81e345b87 100644 --- a/test/test/test_eal_flags.c +++ b/test/test/test_eal_flags.c @@ -1158,7 +1158,7 @@ test_memory_flags(void) const char *argv1[] = {prgname, "-c", "10", "-n", "2", "--file-prefix=" memtest, "-m", DEFAULT_MEM_SIZE}; - /* invalid (zero) --socket-mem flag */ + /* valid (zero) --socket-mem flag */ const char *argv2[] = {prgname, "-c", "10", "-n", "2", "--file-prefix=" memtest, "--socket-mem=0,0,0,0"}; @@ -1256,8 +1256,8 @@ test_memory_flags(void) printf("Error - process failed with valid -m flag!\n"); return -1; } - if (launch_proc(argv2) == 0) { - printf("Error - process run ok with invalid (zero) --socket-mem!\n"); + if (launch_proc(argv2) != 0) { + printf("Error - process failed with valid (zero) --socket-mem!\n"); return -1; } -- 2.17.1