From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0082.outbound.protection.outlook.com [104.47.0.82]) by dpdk.org (Postfix) with ESMTP id 288C34C7C for ; Tue, 27 Mar 2018 10:43:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ljP1cyfXfLOG8oiKI0+e/SoRP35A+wRPfQfR08ppMHc=; b=H6RGHk2nCzHolYUJgJ6Fg9Wewpt1NWoROnyHpHsttPzBix16XEZid183DeuuA4Bz5s6LXqlOM/JRcf4Jb8fK8HLH/LCccoyNl3R18CsqlVAng648Wd5nI/K9CIT0wXHN8T2T7N6EGOGdKhvT1Y1FBXc09fPmwmmg6gJVXKdN1MQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.40.129] (14.142.187.166) by VI1PR0402MB2783.eurprd04.prod.outlook.com (2603:10a6:800:ad::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 08:43:06 +0000 To: Gaetan Rivet References: <63ecbe92f158267aaf817c3183644d0fe39f6e9b.1522105876.git.gaetan.rivet@6wind.com> Cc: dev@dpdk.org From: Shreyansh Jain Message-ID: <21a2a39b-a8a7-195b-49b8-b24d8026c9b2@nxp.com> Date: Tue, 27 Mar 2018 14:12:51 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <63ecbe92f158267aaf817c3183644d0fe39f6e9b.1522105876.git.gaetan.rivet@6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR0101CA0060.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::22) To VI1PR0402MB2783.eurprd04.prod.outlook.com (2603:10a6:800:ad::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d44d2719-6427-4696-c5a9-08d593bec377 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB2783; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2783; 3:Dk/ON9vCqz0UJFrM9NHzOF0VBUbqEMuPJRREb6fkKuiqhgbBRjDi10h1n1zligu8UykKfiP7/fKQ6GJ4mVf3zIYDIg+iG5ZqrkdOEXz4RK7khzb7dH98PIrpVsXoAsUo9ABo3UiA2mw0vNvgtgjlzreoknDoIhnehd7E0FS7lfWswXlkI0pp9auenqU796LGeU3HqZYsXNR9m1081mjjCXofGCKW4lJTj+AeCz8rljfOmgpMLNhdgnm004gnp/HF; 25:/Dh1PLdpcXMHPHm2LKwz+VN4BGPTYE0k3vNcFp8F74d6Bl1C1vU+hw1ivpvphpL/2tdfvlUcvEEb14iPTugN/uKt/5BAu9rp/goova5zfpusazYt3RGORbfNm64UqR/aR3AxsiD5DjelAAA/BRdbxrx5W4NbqS9jUUDQQE/3ZtNSzQedyh9sbZUwk8M41D+80rzuBJeDAKbYiLNkimY5Lz/O2NWmvCeUlIkYN5+JdtsmV4e4HV7E9ZCSSwbcs5nyfR3zHsvzN0QBhF8dalvat+KL1nnO/uoV34SSXt73vqiry8K4HCmbK2lCV6WJGtig8vUeu/ZqEjwoiv6H6MNbMg==; 31:QmPHt6exCh2TkU+7nVqn9rc14Bld1c0z0A3woMuK/0DNToZJ+X7m3Vn8xT9on2L9ZEuHTT5h/Gx6GZ1+jNTZdP5y8EjYeLtIcMII5m90Wnu0FK+kM7ojPZoa4C3rIsavoJNFUe3DcXCAY/1D2paaTe+m69W6Mqz1rim9pVfmcuGfpMKTIN2Y/TOOgxyRb6rywcnYVSlZWt69FQdcJDqFHbBnH3TWv775hjT/QMu4ep0= X-MS-TrafficTypeDiagnostic: VI1PR0402MB2783: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2783; 20:EOcLKFZt5HBu37l96vSUzW1vKaDVOoSubjEnGCzdYPfBUx9QPBufeDp2Nyi0WkbsUMkaXnxiCJSqJfGzUISbl/xMGYLeKGrv7ROg+fpmLnc8pdHZ9rsdinK/nBsmdM9z44jdO689uNYg8y5KBec4SDtzpYOQs4DB8cIooCjxTLwFvG2g4emvLIEwUwt6wVzIrNwij/Jgg/6P32RSKaWxKpNvo/g5E/BZZ50K8dbIWv8G42dPinfdoWMq1cEIW7BoiALPF6HiFrH2Ut/GML/rDNQ7zh0MR/K1IyNLiln2Jt6lM0bEywplsisuPfomNY9xaEf27hSBJYAaTybBioxYMqxkrXnT88sW2uuz5D7VsWzFtSHobeRMrJTa/iPXgbDlIyTxn53nD3aodgvoCJoXZ1m654k637y9oX6OGYe+DJ84tgUJrMOU4RS3Glmq0+yfUz1oMtDACdbsdBYunRTkiXL7o7G4t1eT9Vn+Hq6CJ0bpH0ysObxa4pLdkawBEiB7; 4:Dm2PKaeNJvFoIzkNKUwDwMBu7zFhSa4aMAQJlFsnunLYioQavQORdC/HwujO05SyKk4xyGNzZn2VevExnC+x0eWGioaoTItv12oJXV+PCZbBQXPd+ide26m0Y4YSjtDiw0jDhYnT/2qUWfGpBa09q2UfNt88tlADU+hQL+ajG2IO5OFKed7kvDXrsgGsliISEWJ0f31sxiha2Uje5Yyw7uqHFc8nd+/U2aVeZNDMa8nQC0DvpBnFhe0ShKtysO00/27rjA1DEOOh2CNfaccMUQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0402MB2783; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2783; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(39860400002)(376002)(346002)(39380400002)(366004)(396003)(199004)(189003)(305945005)(55236004)(386003)(67846002)(52116002)(7736002)(2906002)(58126008)(68736007)(77096007)(97736004)(105586002)(31686004)(446003)(476003)(486005)(16576012)(2616005)(956004)(486005)(3846002)(86362001)(5660300001)(6116002)(478600001)(23676004)(52146003)(26005)(2486003)(16526019)(186003)(53546011)(11346002)(316002)(76176011)(81156014)(8676002)(4326008)(8936002)(81166006)(25786009)(3260700006)(36756003)(229853002)(6486002)(31696002)(65826007)(6246003)(53936002)(106356001)(6916009)(6666003)(66066001)(65806001)(65956001)(5009440100003)(230700001)(50466002)(47776003)(64126003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2783; H:[10.232.40.129]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA0MDJNQjI3ODM7MjM6QnN6NXRIanVHdUgybzBBOFRET2Z0Vi8x?= =?utf-8?B?QjNScDRncmxYck1wcHF1bTBBb3pmM2NkRnkzcnk2aFpWS3pvSmRRbWxOemVE?= =?utf-8?B?TkZEL1pmZysrZEZydmhrSUpCK3MvQjREVTl3aGppSWZic0lkNSt1T1dVK2hR?= =?utf-8?B?WDhYd09sUnBiRXduYW5TOUVTakpIbFkvNC90UkZ3TVdBeXNlNVczcTRIWkNx?= =?utf-8?B?Zm9ucHFISmZwWjZGUjR4Q3VK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ozi7AOne9v8ZRlv6qEGOgC6hgqE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2783; 7:cgEI6kFq+oQgdxtZx7Z62HYSWFE1vWFhjvwhh3KrOo7jPv8rKUHyZME4Dv4hegswsPzinczLFpsqUJ4nHo3Z6FpFSv3QowX9253MZ2ec25tAaAr/sEfEusZyxRp80JHSphGp1Ptl5Zff7m5qcHq58zJmvQiaoZsJh3bXhFRJwDL+PG0w94h9WL3iRN8WJrUOxwEut2lj3wSZfr0wIFPH+5fEJLAPyOC09ec46pQmlNL7PSIIdKUS1eiAjgsGV+oI X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 08:43:06.8393 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d44d2719-6427-4696-c5a9-08d593bec377 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2783 Subject: Re: [dpdk-dev] [PATCH v3 06/20] eal/class: register destructor 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: Tue, 27 Mar 2018 08:43:14 -0000 On 3/27/2018 4:48 AM, Gaetan Rivet wrote: > Signed-off-by: Gaetan Rivet > --- > lib/librte_eal/common/include/rte_class.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/lib/librte_eal/common/include/rte_class.h b/lib/librte_eal/common/include/rte_class.h > index 59b578e3e..95107d937 100644 > --- a/lib/librte_eal/common/include/rte_class.h > +++ b/lib/librte_eal/common/include/rte_class.h > @@ -112,6 +112,11 @@ static void classinitfn_ ##nm(void) \ > {\ > (cls).name = RTE_STR(nm);\ > rte_class_register(&cls); \ > +} \ > +RTE_FINI_PRIO(classfinifn_ ##nm, CLASS); \ > +static void classfinifn_ ##nm(void) \ > +{ \ > + rte_class_unregister(&cls); \ > } > > #ifdef __cplusplus > I think this can be merged with the Patch 05/20 - isn't it?