From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D12ACA0C40; Sat, 31 Jul 2021 10:43:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 583EE4014D; Sat, 31 Jul 2021 10:43:06 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140042.outbound.protection.outlook.com [40.107.14.42]) by mails.dpdk.org (Postfix) with ESMTP id 3A87B40042; Sat, 31 Jul 2021 10:43:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KLi5gGKDhSJADAsUZnIHDlJX5wBmJu/04wumVnYyzgc=; b=5ipGG1ijk4QyCuQSqBJi+spNycnLwifECgkMAFnSpisAGvKrgGUV3gB6XB8k++6gjKMHS/Na2MH9FlSu2zJqubE3UEUE7XXiMriWbTNeesXo+OQRZw75a6zElUW5F4zU16K4JUzBhKVAoZowTaDOCBYNfboUTKvj9LVHdFA8MHY= Received: from PR0P264CA0202.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::22) by AM8PR08MB6339.eurprd08.prod.outlook.com (2603:10a6:20b:317::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.19; Sat, 31 Jul 2021 08:43:04 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:100:1f:cafe::99) by PR0P264CA0202.outlook.office365.com (2603:10a6:100:1f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17 via Frontend Transport; Sat, 31 Jul 2021 08:43:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Sat, 31 Jul 2021 08:43:03 +0000 Received: ("Tessian outbound 79bfeeb089c1:v101"); Sat, 31 Jul 2021 08:43:03 +0000 X-CR-MTA-TID: 64aa7808 Received: from a2697a6588a9.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 568BCBFD-F792-4C11-ACD5-2F83BAE2EC98.1; Sat, 31 Jul 2021 08:42:57 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a2697a6588a9.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 31 Jul 2021 08:42:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hzHH1Cu/sdoJMWJbdgPjzJHGXjnRB7b+vBg197Zsa6zwwdz0yGDI32eV7elJQdHDscO4HL8fdzPvuVRVMisF20JfTHl1N8lWygbO0vJJj220xWCgnNZ6gZwo+3VbjVZdQsKjKZRh3Z8+j8tPfZ/1AFRmeZnHo9SNN84FCdscXntnOxtqmTOvsBDX/DtAO5QNCpz+hwVUhq/33dfTspk7AuBFGtE0rP2yUI8EcIIYUKPGBNbaZwJoZw0Zwj0bPbg2cqIvnuzENjbFi7fKwgaRuL5df3RCbdV8yyCxMVHMnsfpiRkLJmkr7CUP7aOeBzmaZO+9wn74d9aqVcUCUTMzZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KLi5gGKDhSJADAsUZnIHDlJX5wBmJu/04wumVnYyzgc=; b=iApRznIaAymIQwpODbsNVrRipO/Ss9bB8N28p9C1pqU8EcEOlGkspQQQxL8cApyLa/s/PeausGgwxCKGo4sujk+bqO9Tt6x7d07K3mcGqemQ+AgRkNuiB6EVUNW+Xn2usUJPDR+vhYyyPp1Fa7cl55oFVrVK5/1utiSdzcYhusTvTUa3WTfC9J4lKf13MIGWtF58l9gM1wmqtpRrJE5jrsctqAbejBpMeZamYURBfpoAE7l8hL1t9sTUTgWbjfIcLBdA5SDOc/Z1l0+3X7Hf0IJaXO5S+JapH6y7bDzKtiakXnuO5s4JGC0kWfZtTyJIpW24qljWv522EMLR6l8J1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KLi5gGKDhSJADAsUZnIHDlJX5wBmJu/04wumVnYyzgc=; b=5ipGG1ijk4QyCuQSqBJi+spNycnLwifECgkMAFnSpisAGvKrgGUV3gB6XB8k++6gjKMHS/Na2MH9FlSu2zJqubE3UEUE7XXiMriWbTNeesXo+OQRZw75a6zElUW5F4zU16K4JUzBhKVAoZowTaDOCBYNfboUTKvj9LVHdFA8MHY= Received: from AS8PR08MB6935.eurprd08.prod.outlook.com (2603:10a6:20b:39e::15) by AM6PR08MB3368.eurprd08.prod.outlook.com (2603:10a6:20b:43::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.17; Sat, 31 Jul 2021 08:42:55 +0000 Received: from AS8PR08MB6935.eurprd08.prod.outlook.com ([fe80::882e:525e:41da:3624]) by AS8PR08MB6935.eurprd08.prod.outlook.com ([fe80::882e:525e:41da:3624%5]) with mapi id 15.20.4373.026; Sat, 31 Jul 2021 08:42:50 +0000 From: Joyce Kong To: Olivier Matz CC: "anatoly.burakov@intel.com" , "andrew.rybchenko@oktetlabs.ru" , "yipeng1.wang@intel.com" , "sameh.gobriel@intel.com" , "bruce.richardson@intel.com" , "vladimir.medvedkin@intel.com" , "konstantin.ananyev@intel.com" , Honnappa Nagarahalli , Ruifeng Wang , "dev@dpdk.org" , nd , "stable@dpdk.org" Thread-Topic: [PATCH v1] test/func_reentrancy: free memzones after creating test case Thread-Index: AQHXhTXlNN8jFcWkLkiblMuET8kAG6tcxPRw Date: Sat, 31 Jul 2021 08:42:49 +0000 Message-ID: References: <20210728073322.27011-1-joyce.kong@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: EF8FFEAAD3B954409677396553FF92FC.0 x-checkrecipientchecked: true Authentication-Results-Original: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 628fe036-15ff-4272-b775-08d953ff362d x-ms-traffictypediagnostic: AM6PR08MB3368:|AM8PR08MB6339: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:923;OLM:923; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: uJsFqzl1ZPZMAm15HaH7MxEJYdNZYlSgmCRUyLazN/CwtWNZgqY0HJ2OqRbO0CoBfn2TZcMeRrsG20PKTtrs1vnR25K3av4bBgp0MS4mspiipM77fRY9SGIZLgN8JWjPTvNKtpyzR9wczdBxc2i9jZtvyge/NJgA/vufVuaI1QGgD5V+25B/Ayb3BhblQuzgHSvvEVjRaW3yEPjEv1bdzYTIxpNmErWDb7upprY063yz9GTLH7kd9s+b9iVsInLO1J+uGAz8E0NMy/8ZXcA3S1jdr9TT3WpW4LrQKw7obFZlad0FQ7EunX2lPQcxyh3Zs/7Hy5L0cyoyAan5AvOMB9NDGif0+Gw3JJeBOJ4Kkfu99wYzPnwnclWq3U87XNXVXs9xHtSKP2bV+EtAykkg+VXrNIInR/VSr/wExe0GzNT4mEsLPEfFsy1EUWy6uGLRf53EUffIorOjvlLlBfC5CBkH09Z+AyquAqk7JD22+N6ELu6ENxo5ogoO4Qhvh9O9oDHualT+DLWExQBfxM1QvBk/nQ6AAScD6KDQ+m9nsXI7nmwbhDlIsBuBqpgRCClB2yMMhUQ/c9uIl+H74a6MYlixYCWPBczOa6IEU6e/eFjFSaJg767iPONOQ0hAuNn2jBs/y/j9LU1JiMUhId9mep/wUyeG4i+D65SfqjNs75RShrjNKgRHBTD1lIcOac0ePAEFUdKbfNfGeNo7xeleJw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6935.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(26005)(186003)(52536014)(83380400001)(54906003)(6916009)(7416002)(86362001)(8676002)(8936002)(38070700005)(5660300002)(508600001)(33656002)(66476007)(66556008)(9686003)(2906002)(76116006)(71200400001)(66946007)(64756008)(66446008)(53546011)(4326008)(7696005)(316002)(122000001)(6506007)(55016002)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?u7BBIYdW0PQkM9K8WnjLWHmHv+8YCPhTn9keRTVoHbpSPyfAoNrNbV37/IUA?= =?us-ascii?Q?nxuEq2CpC/PtNojjWnn1okfkMQYxd94JJe1Vcc7iUx8b4Nv9XpWOUetuceB5?= =?us-ascii?Q?dyLXXSqZX/T9KSGKfjKwJ+ojZTfhz6DS042Ewz60LktCkT5U97fgnv+vlxoe?= =?us-ascii?Q?FsiOmirfE+VUFpxdRiVpPd88OmRbBQLFMPBjNT47P1xBfm+WFQIhgvPtGrqR?= =?us-ascii?Q?x6VzMI6IaEXUqz7SQTg1zcnLhIaVqTKRjc5L3be/n1AduJVdIXLwlc3vvH6J?= =?us-ascii?Q?vgyT+qxq2kUmXkIVZ0HjXM8sHlu3Uejs3ihkpDFnmnPEHD/qMOICBgxBzq1g?= =?us-ascii?Q?+J1PdhMuoJmqDe/3TYW9jLhc6M2LD/KdBL2KlXnVYePYAbVLHgzoONwmUcEO?= =?us-ascii?Q?xzVAEzQJdvSDl4rKo0HoMZoDQMh/8dx1DCPjMjWD59Cstnd3iEjrt/yQc+uY?= =?us-ascii?Q?gj/U7Fq+6EY05fieOSIjocHw+irrjE6atUB1rfLKaoTeJVbXc7FAjUqaO0G3?= =?us-ascii?Q?4xno0O3SOpYMxxSJTdTOoFHQyvQD6abUlqVVwkHecqETFUshpCwRY4g0ewnS?= =?us-ascii?Q?XqlfVLS0+0WkYnIvjn73Z3o59Ab60BcSLRrVmRcL0DTnwl0ppZIchyYJK+sd?= =?us-ascii?Q?WfkwHh/f0u3PYgcgBCsSLVdGEYRHvk9oe1PXP2OrUDsUafzds8xqWwkpk4sq?= =?us-ascii?Q?yEBYecgUP7tV4if8dzh0uel/i0+I1EZNy8bpRvmybUPDzMOsttK1aefCQTl0?= =?us-ascii?Q?yR/wJPY4RLrd45o/UYH8wKHxmQbs8BorERJ+j5yoc3rbrnvwYxEBfnxVs73p?= =?us-ascii?Q?YU5SVVEDXeaRnmmEV9zz8nPXee70kCOay0cmuwdEvcaT7jpfHTy/Pz9O0BTD?= =?us-ascii?Q?GlEQ05RiIrGoXmqRYQxwNnW9d5UmFqHcM+ubSpk4RLZ9VpJU46ttpNTYiVNR?= =?us-ascii?Q?bPXCs0osL6TrbmcI/YdZOxJGHbFFYyiI11VUV1VRnT9pJLh7RlacYtrowB33?= =?us-ascii?Q?rlMnfPx5yqgGS5ylXhQv3ET6LMxWYNsCxwwgKnOAz0LVxHoDskHpBKth9U+a?= =?us-ascii?Q?Dg3rG+bplcUDAOAmQ+NfzqQgsQdZTRjw6oSRPcR6D+wbVgGMq4u02jeF1K0d?= =?us-ascii?Q?DH5GA3ht0MGSxQX1V+oPOzYC7S2IprUCxjXNKgcQP5AyCZ3UjJVPWmMPSdeD?= =?us-ascii?Q?DJfYetg7yO+y+SKzUs5VgUTQyD1uvul0GHwpdRu9iqO98AgHjbdSBiYJLPYK?= =?us-ascii?Q?IfE08gYxtcoN/Ytx0lb6pLyrgLjn+gn/MVb5vR4Ijry8G1IdD3APPcroOIYy?= =?us-ascii?Q?ZEw/lIo08TmAvsGDVQjR0wIX?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3368 Original-Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 3744008e-e0cb-459a-e5ac-08d953ff2dd2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iO+jTvHUy4voIraOlzkblAq5+ZIb3PC+isxlVp3RSM07vdlir6sgMhXQhpp0RgW8xWZpJIFXVuIytBHL2HeoLwf+UO2hMWdec675rw+R36/pkbxgQDH7MxoUIMhF6bnAP27ywijYYfxNq84+SaT6H3OI9SdmrKEz3Lhv3AW+7tbzfSXBRP4e4YtEp0OL/+59A3IZkbqIETxI3HC16n5qrV7FkYpUCJNqQyDocq5B81spu2IT8vr0ytqvZCbqW9X4ctToNVDts+DS5UoHQ54oy5d9uaqFWje7tz0cRnidGVY8/juBqIULorxd7bvL9oV8cxC4+knJVDjSCi4eg2bfnOSkBv33fYj7/9C/Geh4MD0pvzhMGuVHoOTyrhO9X+5ZKvY6eb3BM8Trnq4wM8S675Lc32lGNErRTWLtSSoeSXDcyHLh0/REs1wFTlQRMxDXpY0i3+eaD7AT3Y4nO7NUdLgpS5Pj2FkorZFi72XClcqX7bA9qGI5K89OGGgL+nr36qSCK0DSziWCLvVeVhF7aYdalCyBCPphdXwQlRVHL4GLq6Lh2vGtzpzCo/UtTGTtL7csYNmOh4uhOhg3tAw+WY/IxehLfytmMB1lqG9B7Qb/dOuz+WJIEdWKnsWv4fz1xW+1PIRrZbYNtH0JovpErUr5omGUmN1YHM7GpJVnnQk8M2Zus6s5ph5/i7zOkpxzGK9kKCPotntb3zwQlgMDAw== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(346002)(376002)(36840700001)(46966006)(52536014)(7696005)(47076005)(316002)(33656002)(83380400001)(6862004)(478600001)(5660300002)(8676002)(36860700001)(8936002)(53546011)(6506007)(70206006)(2906002)(82740400003)(81166007)(55016002)(186003)(26005)(82310400003)(9686003)(86362001)(4326008)(356005)(54906003)(450100002)(70586007)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2021 08:43:03.8788 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 628fe036-15ff-4272-b775-08d953ff362d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6339 Subject: Re: [dpdk-dev] [PATCH v1] test/func_reentrancy: free memzones after creating test case X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Olivier Matz > Sent: Friday, July 30, 2021 7:27 PM > To: Joyce Kong > Cc: anatoly.burakov@intel.com; andrew.rybchenko@oktetlabs.ru; > yipeng1.wang@intel.com; sameh.gobriel@intel.com; > bruce.richardson@intel.com; vladimir.medvedkin@intel.com; > konstantin.ananyev@intel.com; Honnappa Nagarahalli > ; Ruifeng Wang > ; dev@dpdk.org; nd ; > stable@dpdk.org > Subject: Re: [PATCH v1] test/func_reentrancy: free memzones after creatin= g > test case >=20 > Hi Joyce, >=20 > On Wed, Jul 28, 2021 at 02:33:22AM -0500, Joyce Kong wrote: > > Function reentrancy test limits maximum number of iterations > > simultaneously, however it doesn't free the 'fr_test_once' > > memzones after the fact, so introduce freeing 'fr_test_once' > > in ring/mempool/hash/fbk/lpm_clean. > > > > Fixes: 104a92bd026f ("app: add reentrancy tests") > > Fixes: 995eec619024 ("test: clean up memory for function reentrancy > > test") > > Cc: stable@dpdk.org > > > > Signed-off-by: Joyce Kong > > Reviewed-by: Ruifeng Wang > > Reviewed-by: Feifei Wang > > --- > > app/test/test_func_reentrancy.c | 24 +++++++++++++++++++++++- > > 1 file changed, 23 insertions(+), 1 deletion(-) > > > > diff --git a/app/test/test_func_reentrancy.c > > b/app/test/test_func_reentrancy.c index 231c99a9eb..e4e9c2cc7c 100644 > > --- a/app/test/test_func_reentrancy.c > > +++ b/app/test/test_func_reentrancy.c > > @@ -89,6 +89,10 @@ ring_clean(unsigned int lcore_id) > > char ring_name[MAX_STRING_SIZE]; > > int i; > > > > + rp =3D rte_ring_lookup("fr_test_once"); > > + if (rp !=3D NULL) > > + rte_ring_free(rp); > > + > > for (i =3D 0; i < MAX_ITER_MULTI; i++) { > > snprintf(ring_name, sizeof(ring_name), > > "fr_test_%d_%d", lcore_id, i); > > @@ -148,7 +152,10 @@ mempool_clean(unsigned int lcore_id) > > char mempool_name[MAX_STRING_SIZE]; > > int i; > > > > - /* verify all ring created successful */ > > + mp =3D rte_mempool_lookup("fr_test_once"); > > + if (mp !=3D NULL) > > + rte_mempool_free(mp); > > + > > for (i =3D 0; i < MAX_ITER_MULTI; i++) { > > snprintf(mempool_name, sizeof(mempool_name), > "fr_test_%d_%d", > > lcore_id, i); > > @@ -208,6 +215,10 @@ hash_clean(unsigned lcore_id) > > struct rte_hash *handle; > > int i; > > > > + handle =3D rte_hash_find_existing("fr_test_once"); > > + if (handle !=3D NULL) > > + rte_hash_free(handle); > > + > > for (i =3D 0; i < MAX_ITER_MULTI; i++) { > > snprintf(hash_name, sizeof(hash_name), "fr_test_%d_%d", > lcore_id, > > i); > > > > @@ -272,6 +283,10 @@ fbk_clean(unsigned lcore_id) > > struct rte_fbk_hash_table *handle; > > int i; > > > > + handle =3D rte_fbk_hash_find_existing("fr_test_once"); > > + if (handle !=3D NULL) > > + rte_fbk_hash_free(handle); > > + > > for (i =3D 0; i < MAX_ITER_MULTI; i++) { > > snprintf(fbk_name, sizeof(fbk_name), "fr_test_%d_%d", > lcore_id, > > i); > > > > @@ -338,6 +353,10 @@ lpm_clean(unsigned int lcore_id) > > struct rte_lpm *lpm; > > int i; > > > > + lpm =3D rte_lpm_find_existing("fr_test_once"); > > + if (lpm !=3D NULL) > > + rte_lpm_free(lpm); > > + > > for (i =3D 0; i < MAX_LPM_ITER_TIMES; i++) { > > snprintf(lpm_name, sizeof(lpm_name), "fr_test_%d_%d", > lcore_id, > > i); > > > > @@ -454,6 +473,9 @@ launch_test(struct test_case *pt_case) > > pt_case->clean(lcore_id); > > } > > > > + if (pt_case->clean !=3D NULL) > > + pt_case->clean(rte_get_main_lcore()); > > + >=20 > Is it the same issue? It looks it adds the missing frees for the main thr= ead (not > only "fr_test_once"). I don't think it requires another patch, but a word= could > be added about it in the commit log. >=20 Thanks, Olivier, will send another version to add this in the commit log. >=20 > > count =3D rte_atomic32_read(&obj_count); > > if (count !=3D 1) { > > printf("%s: common object allocated %d times (should be > 1)\n", > > -- > > 2.17.1 > >