From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0078.outbound.protection.outlook.com [104.47.36.78]) by dpdk.org (Postfix) with ESMTP id 301C9108D for ; Fri, 31 Mar 2017 07:25:19 +0200 (CEST) Received: from DM5PR03CA0041.namprd03.prod.outlook.com (10.174.189.158) by BLUPR03MB278.namprd03.prod.outlook.com (10.255.213.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 05:25:16 +0000 Received: from BN1BFFO11FD009.protection.gbl (2a01:111:f400:7c10::1:192) by DM5PR03CA0041.outlook.office365.com (2603:10b6:4:3b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Fri, 31 Mar 2017 05:25:15 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD009.mail.protection.outlook.com (10.58.144.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Fri, 31 Mar 2017 05:25:15 +0000 Received: from [10.232.14.39] ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2V5PCFl014516; Thu, 30 Mar 2017 22:25:13 -0700 To: References: <1490004190-16892-1-git-send-email-shreyansh.jain@nxp.com> <1490938158-936-1-git-send-email-shreyansh.jain@nxp.com> CC: , , , From: Shreyansh Jain Message-ID: Date: Fri, 31 Mar 2017 11:01:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1490938158-936-1-git-send-email-shreyansh.jain@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131354115155906982; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(377454003)(24454002)(9170700003)(2906002)(54906002)(64126003)(23746002)(83506001)(54356999)(189998001)(76176999)(81166006)(50986999)(2351001)(4326008)(229853002)(85426001)(110136004)(38730400002)(53936002)(8936002)(5660300001)(6246003)(8676002)(305945005)(31696002)(106466001)(6666003)(104016004)(4001350100001)(105606002)(86362001)(356003)(230700001)(65826007)(31686004)(8656002)(36756003)(33646002)(77096006)(50466002)(65956001)(65806001)(47776003)(2950100002)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB278; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD009; 1:6WQticoXHSbXb7ou4M9GLmNIkMjwiIVAIkyzxcAngN0jEH+oecjQJEG+dJ/KpGWcXcB2UFDNpob+1nQZwRBxSZG9J/1BcR8HNtIOABG7kUEvGqtgtIhGanc50+WHx3eHhaccehaVna12sYx8uRe7diE1UYUuFvkNR5JrlgK9GHovON+3IicGar9wuWgn3gNEOA8kLHILf8+U+oz/1o/Xc+GrrGTmfhGZNmLFvlfdxp8fWSEtIehrcmf6CDCPCSzuZR+q1j5hT6w5HMIRrb/OlGPowbB2Y61LSeiG2O1w06xq9dHr1z+pYCF/FHHFcXjIf/XweYoTtvVVuYYgO2lk6c+btk8i/nJBDJyp9j+Lg3xdmW5W8dhzzC9p6p/Xc0eD9D7ObiSa+cJgbWBQg2GDihL4Znl7d/irh5Pc9s9PwJSW64vI09tv9ixhCRemYZPe1su0Q3XxQl8L0Cw/9DEiLWV76pjy2S7SuF3LoDYW1vcVlh7cW6mBBFdqfyv2BtcVbAkg76SR71ny/8CXQC7J/2QJ5HyFGqtS+iZN1X8B8I635dWTX7QOUEl1om3h+/jK6nps3ojdOF0Zq45cxuV2cWPsKWycqaJO6a5pm54fB3bk2Xze3TFpAARG67/4741C X-MS-Office365-Filtering-Correlation-Id: 51958483-f8ea-41f0-f046-08d477f6501b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430075)(201703131517081); SRVR:BLUPR03MB278; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB278; 3:1rLZ9rDQPeoCqbIn/eCa67hFawBtSIyHzXCw713JM6TSvGyVx6nc1nGJy2cfzUhrPkKFO4lla8uwIpRK+ce5aGO5P4ZyBgEe8lALCDaIpwBr6B+BIGPlVYdbooSr6c6aQc9bclFCjZeB2Al+Yk6EbjE7Q8xYAY5pDCujDGowwKwz0tAKbO/FjcOB6UzFlcspgNmhz0u3iZSbLQamiyWhZZo58LNYObIHOJySmIySZTTI4rE5Lo66Pd4ZeN4a3YgPD+L3DcShmVT7JRv5T9RPx7Qa04RPYS2DiFinT7fTBpJDqH6nk7ESRXpmWhXhLRIWcyZm4MHSYan+jc/N01M1PKNVY/R5d6jpo1wSOz7vmrH145P2MwvbbTVD9KhM2Ej/0Gil+Sxe2rUXFBZiJCGCbAif8EZEreLU5gchEIjLcJm6+dm1yVpsxIJQhta6uyue3cZFIfZpaJiCRw0/OWyv9A==; 25:P64KrJR8glztRyK2VVpjEQByQlozM4VMzcOrG+cZbkhTGXJTKSSJ7XfhvxVPUMtM1gNxn4Hr19Gs42E2drZfFxHua8DbJw8ctgZlaq//7Z70drSF4tAwe5wp+z2PEMYy/RLkdGtz995HdwB3zVSyX2fzTBTCFs4bYQhkp8Nhbyo2nJQ9+BmtbBTqjQbjiq8kLgR/kX69eh8aX3pDdWg7SU1jqau7NzSdmoLdWSIWdh06yAejddoSwc/Yo3hMG0szqjhAuvk33BDJXAv6yW8kMyxkovih4eAu7zIwp09iQuFBVlrY5jWt7Ila2ZLBCJQmpnWVBgXmfL6379WryXqDPpT2MFul2wXqwOPVk2/GWNxmoJ3hrxnlqU3No0IBf6mHkjvz1SEStKbRfblg/aBVDix3fKRwDlleEGKS7wuJtK76Mt8kwXUe7sb67PJ+Al22C17Zig19wgLOnLLuomdDRw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB278; 31:lVd9Tol9IbU+dcw2VxyrFyKpz0XYNjd0plKXt0VHGGu+m2miDpjZEHuGn4cPjNCRWpt9TITm1tOqpEzQ4B/FOy7eIQmkReCiBh8F0sdBXLHVbbwVBsR0Jta9GimnbMPWMjW+Oa6tb1Gb8gJUu4AMqzstMbK6tk9DZgTGPUn8yRI8+CO7DFBx9SXQKGGOFP4UQAIsPoctQzaO0xov2qunuRGHvfkgImqDQnWEkswxcm03lk1A4tJFLJPBFx4nv9YvS5YG74TVjvmn7EjRjscscA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13023025)(13024025)(13018025)(8121501046)(5005006)(13015025)(13017025)(93006089)(93001089)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123563025)(20161123565025)(20161123556025); SRVR:BLUPR03MB278; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB278; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB278; 4:qdDblD/TBm4nhqL7XJuuHKvaD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zAtlE3eO?= =?Windows-1252?Q?WTfMJ5m1PBj3GwF3zn3iE7TBvcp+D/ob3u2wi/iKTUrQatv3LgjvJnW4?= =?Windows-1252?Q?rJSEMoXIFke1EW7D7IFv6uj6cFF4VIozSBDRU0XfCfrNkuljdDhB2dMy?= =?Windows-1252?Q?ZVJz/tFsECk4TsKB7lZ1KZRDIsS8RYNn29iGGkddMoZ02PSUCxiJrnfx?= =?Windows-1252?Q?pL1f1DHRHvHnCuh4ysjE69QQcwJO7+IlTdDNFhb6ZolpPWnpI1EhbZWH?= =?Windows-1252?Q?Oc89sfGY4zM40UmaxUVj/rL3P/xDogdsj5LjUEN4wg4vY//M6gNlNseJ?= =?Windows-1252?Q?0aeytsXWwPnQZPvgBwvYqAJZppmlSyjYxqngERHgGUlWC8aw/z8aZ8ye?= =?Windows-1252?Q?VBeEZHSCW73c4kbIsyEfrNLgx1K2ontp+0u+jfgAqPXVRvkrBZoTVQZb?= =?Windows-1252?Q?bP+lZoNcbG2Ty5FoSHke2THQeCTSbUPXUa/8Ef30N8Q0PnngV/2clpFz?= =?Windows-1252?Q?ZzX7CoenyKuslNR5hLQp/wiG+uC8KEc3RYtyKBdyZDLdgDgY/xu+6r1w?= =?Windows-1252?Q?WyEXI7JW2NU4LppVCucCKAmAK5E2zzjoXwuoTaWe9kRTL36ZOjFldj6t?= =?Windows-1252?Q?3tPT+toFKbOLq1c2v1ySZkrUkHRmDl6GfjGyXc9zGaYQQ1giV/UGw+Id?= =?Windows-1252?Q?sYD/lpN75eYMzCuK579uQMdyzn29ie8ilvUm5qMCmQUUjenCLcufy7Kl?= =?Windows-1252?Q?uGqhX/rmrg6yAYsqV4WHn8gmtsSpYlPChKS5jct9tbwB0SR1lijkKiHG?= =?Windows-1252?Q?wSBdfyifnpF/DYF4rEAtwJdek/YqE/GqCsjGmxW0h5YZUkxgGCqYnKDf?= =?Windows-1252?Q?g3LAFaiL9xQV7Hk82prcknIrEpi4IzfmzUesNq+padbzSua9flfpm4Vm?= =?Windows-1252?Q?Til+LGSrEtLkrBgRjjntNk0Fr3FPSmEr8sapwi5QDXNuoy1j7gtM1LiN?= =?Windows-1252?Q?gDKVpMcRlN9PHcRkbK1ynXzJv8IGFaMgJdNcq6HZ4ufPzzLo9ZW6KrNd?= =?Windows-1252?Q?vK6awSDGq1uoe+7zbGi3Ns5pJUA40OkGynU/8gUypz33m2rPpbok8wdX?= =?Windows-1252?Q?XEVECZKjINjRUAQH8LT7+mVkOPItE/f6IlOfZ0/rl16RWz3/lnU7tk41?= =?Windows-1252?Q?0YjVDJT8Q6kkt4MNMR/cHfbpJ/lW5esEHnUheMEScs7F4t9QxrWGIkfi?= =?Windows-1252?Q?hUrTbMdRe62Ub3JLP28HqeVxnc3K1Cuz2kUIwEXnmU134aQD1aWAM73A?= =?Windows-1252?Q?KjWazXKA4YIOmSOK9ImWM6M6ZNLE/hU5aockThrfDqFRJ6DzAWPzmkGx?= =?Windows-1252?Q?glD2oAurV7GmwSMAifSXvu5Ryuw896K7Clf4oNa3IEjvq1+QAY1UCkRM?= =?Windows-1252?Q?4bhLsI5AxXbBecJWkoxKjr1B0nm+b5Vsb+WwXD/vTmMoYtS8KPsThiUf?= =?Windows-1252?Q?ZtwHf4mgFnthZrlq9e2USEC5yJL5V/yfOG4wYgEe/Gcdfop8HgKfweLA?= =?Windows-1252?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB278; 6:WZICSnD56s8j/wN7n3gBuyLOJE6BLyzqbIyyIZl7cnnWVU4wenoCTS4gcbVZpx3z/TbI+Ps2nHsrD5WzCcvi/LSRFjYMcowq/Gi7I9hak7BQDIgUH8AHrT8CMb6Eb8PwYfL812EREx5vhxezmdRkY6axMVoqzB4AsrgCUGXRDe5shWgVmqMSrZqrT2EZbKg5vmzny4QR1B64TydRZjJoP94SRNHBBR6/dOJfo0IeBic5DP7Xdy8PVOdfVaRpA5qdz7cdBlMa4tD9yi/GfBYRrkvtFnwDDgIlPCtdA3kjpd0t4dUOWxIPIptfbRHrBoslTjW/AV0Tjh6QCOqNCyQMXZ5ItJEAYr6h4wDiGsUK65EqLAe7vbf/4KIWwLeHF1lM+bm8EBbOUZGfPGMg2uczfw==; 5:bsUKe50VHq5IQ0YQOfTPq8sHJRm+uL6JkOnyQFqewGv4bR269sbqT67JDKxv8831DwrALX47/gI9KRMbV7JYQU35+Rjv8CH8N8W+0k0hd31phBDiG6yQafUdAaJ4OmWmzm+e+LejV+B/N/58RBIoQTvxXkglSNf3xL0372sO9QTafZfQq8lAsewDAMYxRtUz; 24:/JquqF9wfnfqPC/+4zTBdOE4+PB9bvl5brvYAIIj549t1iEKqOZclJ3ACi43MeZC8C+6aX+cDzevxkgMbpM9NeZtZdjKjcWASTditumuRlY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB278; 7:0VrRXbHYjMMCGU2ksJixpF22DPJe15VgC34rvh8jip7kugXazLuep26o+59fOGsgcBCtwWGvcseoiliRkqS4f/cojcw55qtRbd2WlVwGSNCXkCXENM7uzuBWoWIZgF+/7ZBmTzVR0KtKen402fkxbteLjq1dIEMfhQz7/kJNLP/l7uz8xoA4dKpBq3WCyqzFiEUgTTG7ij9zx4ZQ0ZjjVr7EFpIhCPWoWZmAvnQ+5nbu+HsNZvhXL9J45A3Ng7fzxpw3bMZV3YTGfUCEP0Afdc4v5OTCXmY8GgIhgI71I9/hBX2yL0Lh001JiuE8OSWp5c154GOpxhZZaOY3HecUcQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 05:25:15.3878 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB278 Subject: Re: [dpdk-dev] [PATCH 1/3] mempool: fix segfault for unlinked mempool handler 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: , X-List-Received-Date: Fri, 31 Mar 2017 05:25:20 -0000 On Friday 31 March 2017 10:59 AM, Shreyansh Jain wrote: > Fixes: 449c49b93a6b ("mempool: support handler operations") > > In case the stack or ring mempool handler are compiled as shared > library and not linked in with test binary, segfault is reported. > This is because return value of rte_mempool_set_ops_byname is not > being checked in rte_mempool_ops_alloc. > > This patch handles error returned from rte_mempool_set_ops_byname > when a mempool is not found. > > Signed-off-by: Shreyansh Jain > --- > lib/librte_mempool/rte_mempool.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > Self NACK Forgot to set v2 and version history