From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49120A04AE; Mon, 4 May 2020 17:47:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 23E071D177; Mon, 4 May 2020 17:47:13 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id B69671D14A for ; Mon, 4 May 2020 17:47:12 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200504154712euoutp02c226cee988b909d4d9d3dd47853fc6ae~L3dx0lr172796427964euoutp02i for ; Mon, 4 May 2020 15:47:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200504154712euoutp02c226cee988b909d4d9d3dd47853fc6ae~L3dx0lr172796427964euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1588607232; bh=fgQzIjiKyOc/2crng9yf5EjjORa79gWUP/Gbve61KMo=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hOPw9HFAdQ/7z9jZBEcBGyUPck8MEZ6/RPeZycvMu804Kp6Dta8fAjOScVOzCdcb6 xBFnhbCxR7f11uhvHEGF5InMNWKlIDOSlq7y8dGKF2pmrHf+1Ohsf0PQiSTqgCcvOh ixC62dVTpdz9U+oTWa8B+Jk1qx6B18753V9N5dOc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200504154712eucas1p2b137e1509de684770d5e133e03e65311~L3dxsgjuG0802708027eucas1p2H; Mon, 4 May 2020 15:47:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BD.98.61286.00930BE5; Mon, 4 May 2020 16:47:12 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200504154712eucas1p257f891ce58df07767b410e7bf0ed9b53~L3dxZs5xQ0802708027eucas1p2G; Mon, 4 May 2020 15:47:12 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200504154712eusmtrp1bac46a55637e281f9c3632ce97a793ab~L3dxZAwqr1077410774eusmtrp15; Mon, 4 May 2020 15:47:12 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-f4-5eb039008d48 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 1D.40.08375.FF830BE5; Mon, 4 May 2020 16:47:12 +0100 (BST) Received: from [106.210.88.70] (unknown [106.210.88.70]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200504154710eusmtip15f21f083e7ce5f2e298d4cd7b7e93566~L3dwVJaNx0144901449eusmtip1q; Mon, 4 May 2020 15:47:10 +0000 (GMT) To: Andrew Rybchenko , Olivier Matz , thomas@monjalon.net Cc: david.marchand@redhat.com, dev@dpdk.org, jingjing.wu@intel.com, john.mcnamara@intel.com, marko.kovacevic@intel.com, mdr@ashroe.eu, nhorman@tuxdriver.com, xiaoyun.li@intel.com From: Lukasz Wojciechowski Message-ID: <70d59828-1adc-76e0-ffdd-a0cae443663a@partner.samsung.com> Date: Mon, 4 May 2020 17:47:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <36679d8e-47b8-b550-484a-0a29a620b79d@solarflare.com> Content-Transfer-Encoding: 8bit Content-Language: pl X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNKsWRmVeSWpSXmKPExsWy7djP87oMlhviDK5dErJ4MOU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o1MFp8enGCxmHh8PaMDt8fF/juM HsvP9bN6/FqwlNVj8Z6XTB7Hbk5j93i/7yqbx+onP9g8rnxfzRjAEaVnU5RfWpKqkJFfXGKr FG1oYaRnaGmhZ2RiqWdobB5rZWSqpG9nk5Kak1mWWqRvl6CXsWzxFsaCO2wVv7cVNzBeZO1i 5OSQEDCRuN28nK2LkYtDSGApo0TXy+lMXYwcQAkZiQ+XBCBqhCX+XOtiA7GFBF4zSizcXQ9S IizgJTHlijtIWEQgT+LYk0ZWkDHMAtsYJZobp7BD1P9glPh1wAPEZhOwlTgy8yvYXl4BN4mG y0+YQeawCKhIzP+uDmKKCsRKtFzUhKgQlDg58wkLiM0p4CQx+XUTM4jNLGAmMW/zQyhbXqJ5 62woW0TixqMWxgmMQrOQtM9C0jILScssJC0LGFlWMYqklhbnpucWG+oVJ+YWl+al6yXn525i BEbstmM/N+9gvLQx+BCjAAejEg9vxOf1cUKsiWXFlbmHGCU4mJVEeBXNNsQJ8aYkVlalFuXH F5XmpBYfYjQFem0is5Rocj4wmeSVxBuaGppbWBqaG5sbm1koifN2CByMERJITyxJzU5NLUgt gulj4uCUamBceKxGYt2smc+sZt9Tin7hWG2hkiMRffSFytS1DiGz9gdJSxpeOVHN2WZadjKo dN5jDqUN00M0jTM9Jx3Im3daZKLzFunlZSun/pMo6lsjpRVy157JJW4Hw4yec0IR94MOrVLl zd23V1T3vYmiTc/W+Xc8w2b8/1DDsJfHabNizKurV51ibdYosRRnJBpqMRcVJwIAIE7oTu4C AAA= X-CMS-MailID: 20200504154712eucas1p257f891ce58df07767b410e7bf0ed9b53 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200504125507eucas1p2093d4194bec85abe7e5b0baa7280827d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200504125507eucas1p2093d4194bec85abe7e5b0baa7280827d References: <20200426165255.2999240-1-thomas@monjalon.net> <20200504124918.28622-1-olivier.matz@6wind.com> <36679d8e-47b8-b550-484a-0a29a620b79d@solarflare.com> Subject: Re: [dpdk-dev] [PATCH v5] mempool: return 0 if area is too small on populate 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" W dniu 04.05.2020 o 14:54, Andrew Rybchenko pisze: > On 5/4/20 3:49 PM, Olivier Matz wrote: >> Change rte_mempool_populate_iova() and rte_mempool_populate_virt() to >> return 0 instead of -EINVAL when there is not enough room to store one >> object, as it can be helpful for applications to distinguish this >> specific case. >> >> As this is an ABI change, use symbol versioning to preserve old >> behavior for binary applications. >> >> Signed-off-by: Olivier Matz >> Signed-off-by: Thomas Monjalon > Acked-by: Andrew Rybchenko Acked-by: Lukasz Wojciechowski -- Lukasz Wojciechowski Principal Software Engineer Samsung R&D Institute Poland Samsung Electronics Office +48 22 377 88 25 l.wojciechow@partner.samsung.com