From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 611C72B9E for ; Fri, 25 Jan 2019 09:06:27 +0100 (CET) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190125080626euoutp01470e4dc82de625275cdc1a4da5b5934a~9CNuZ9w5K0143001430euoutp01K for ; Fri, 25 Jan 2019 08:06:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190125080626euoutp01470e4dc82de625275cdc1a4da5b5934a~9CNuZ9w5K0143001430euoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548403586; bh=FZVEtmLlKkkIr6dwcqfGQSGhdhxsaUHf6La4bRrfwFs=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=i8ovPZh/BUp900Zgi5LOsmFN5bzhxukIRYCpQN5rbuj8drOxEyMmAFO14opHTvsSL qT/x3bNHEQhMBAcaFnFKrdw801KiaNp3I8W+zbTSsIGbb+YqMhfveGUD+do60I+UUh zJKl6yNu3AQsf/zvl3VzcL0ayZzHb6/dVsNe2Qqc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190125080625eucas1p21609f3e619d80f7fc31df17a9bdc677e~9CNt7Zb-n3112531125eucas1p2Q; Fri, 25 Jan 2019 08:06:25 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C5.03.04441.183CA4C5; Fri, 25 Jan 2019 08:06:25 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190125080624eucas1p2dd36ca2559133b4a4242394c800b7bf6~9CNtHiwJ22923229232eucas1p2g; Fri, 25 Jan 2019 08:06:24 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190125080624eusmtrp1e7cd6d0025cf88ed05390cab209508f8~9CNs481dq1583915839eusmtrp1r; Fri, 25 Jan 2019 08:06:24 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-93-5c4ac3812bc4 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id DF.99.04128.083CA4C5; Fri, 25 Jan 2019 08:06:24 +0000 (GMT) Received: from [106.109.129.180] (unknown [106.109.129.180]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190125080623eusmtip1b16e6b908e4473eca032aa3161c4db29~9CNsEN9Dq0141001410eusmtip1j; Fri, 25 Jan 2019 08:06:23 +0000 (GMT) To: dev@dpdk.org, Anatoly Burakov Cc: Thomas Monjalon , ShuaiX Zhu , Xueqin Lin , WenjieX A Li , FengqinX Wang , stable@dpdk.org From: Ilya Maximets Message-ID: Date: Fri, 25 Jan 2019 11:06:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190125075558.27139-1-i.maximets@samsung.com> Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEKsWRmVeSWpSXmKPExsWy7djPc7qNh71iDG58Erd4dG8xs8W7T9uZ LA5vWs1icaX9J7vFwU8r2Cz+dfxht/j04ASLRcu9NewWvydPYnXg9Pi1YCmrx+I9L5k8jt2c xu7Rt2UVYwBLFJdNSmpOZllqkb5dAlfGpm1LmAsmclesev+SsYHxL0cXIyeHhICJRP/Fh2xd jFwcQgIrGCX63vyAcr4wSvxdP4kdwvnMKDFtwRUmmJZZU59AJZYzSkx+u48RwvnIKHF1Qhcb SJWwgIXEm2NLWUBsEQFbib839oN1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VYmW/RfBpooKREicfbkOqkZQ4uTMJ2Ab OAVsJJaevAc2h1lAXeLPvEtQtrhE05eVrBC2vMT2t3OYJzAKzULSPgtJyywkLbOQtCxgZFnF KJJaWpybnltspFecmFtcmpeul5yfu4kRGIXbjv3csoOx613wIUYBDkYlHt6OQ54xQqyJZcWV uYcYJTiYlUR4XS+6xQjxpiRWVqUW5ccXleakFh9iNAV6biKzlGhyPjBB5JXEG5oamltYGpob mxubWSiJ8543qIwSEkhPLEnNTk0tSC2C6WPi4JRqYJz9a+kFRka5Q1885/F2ni3fcPHU688b oi88Oc+/xoxVm0ths+j0e7L5Eo8qGy033Flec+rSm3VHfYTMN/Naxd3+qRG76/eTfU+uWjw3 XrxQcZ3MF9WtzeoONpyTNC7rRD1wO5U8fcOymT+Lvu5rffiMQ/m+0d6fqXrbpsU0xKdYHAy5 +zHu192ZSizFGYmGWsxFxYkAK6nC7tgCAAA= X-CMS-MailID: 20190125080624eucas1p2dd36ca2559133b4a4242394c800b7bf6 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: <20190125075558.27139-1-i.maximets@samsung.com> Subject: Re: [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 08:06:27 -0000 On 25.01.2019 10:55, Ilya Maximets wrote: > 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 > Reported-by: Shuai Zhu > 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; > } > >