From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 61BC25F4D for ; Wed, 21 Mar 2018 18:16:03 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id f19so11170181wmc.0 for ; Wed, 21 Mar 2018 10:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=zKqnI2uTEJWVPkrLPcqo5Pvu+tqshJskX0Be5oKjt9A=; b=dVtTQIuttrXpcVTR8IS8i68C11hx87YxIui6V2EzFT70XhpWowdWuoyv+alwULwU97 taoI/LnwbOMNIZWTojSrjFnJ+8GpAAs8Pw1neyJXaKpSlAYIatNSTvrnhwYpn7MwoZYk 77I3yC1cIsC2kUd4t7AbrVFE7igAk3Z2LU0Ia9b7QKhG4rht6PTbf7MI2mmAMWauumTi jQI6FNtvkVcFXRRlDjfTLECGFyoo/gbZJ3WCFe6J1seFZivL96FJf5ZfME4azk67jp6w 6gqu7mB9nIkz6riflFu6bd6VX+oLiLeb7ORf+aEoE8F1626Z41bUwWObPIEV/LqJAtyz 8bEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=zKqnI2uTEJWVPkrLPcqo5Pvu+tqshJskX0Be5oKjt9A=; b=fF6kSFofxNz6g9y3Eb5HmTnzLClRwRVFmgb0jLRQCQKNIa8NY1XzvMMTxUYoc2B+kI gVdZ280mgbyMMccYjLKmPYP4zv399TDxqIf76N6hzdp0IRH1B+LzKMvJgiYNPwaqn4E2 F3HMWzgbJIEhlrqkYERjxyGz4yvo0MBmxRF4SWVa9lBUNzqjmXQnWly45Flgo5h6EeGX KmSNwIZ/TwYQzUpcIcAc/WmdFYNkfQd0f/LIFpK4JoDBmAal27O5o34pxkLIF7oqdx2S e6KHhMsO1wlsDoQqmeRTycWduuErWaohTnTMHoiAx25ftWoykcTZQrnjjJh7kJqB/s8R PpvQ== X-Gm-Message-State: AElRT7G+1eEapx5rBITmUoqZUihB5Yi6RRKCTapJ8TBxGA8fIAMKPzsE +uYkDr2xqGR1e5+B4rvUIStDjAIB X-Google-Smtp-Source: AG47ELv2pz7+P1G4TJZJC+rKSNUQkyEWfMLi2MfxU6McznPEmZ3hGdEX4wS+tg0XAttOd1Q97GA1nA== X-Received: by 10.28.72.7 with SMTP id v7mr3096984wma.155.1521652562629; Wed, 21 Mar 2018 10:16:02 -0700 (PDT) Received: from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id l10sm4224101wrf.37.2018.03.21.10.16.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 10:16:01 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Mar 2018 18:15:24 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 03/18] 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: Wed, 21 Mar 2018 17:16:03 -0000 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 beb0ba86c..a2e5f5551 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, 120); \ +static void classfinifn_ ##nm(void) \ +{ \ + rte_class_unregister(&cls); \ } #ifdef __cplusplus -- 2.11.0