From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 1/8] eal: use different constructor priorities for initcalls Date: Tue, 21 Feb 2017 12:30:04 +0000 Message-ID: References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487600262-14382-2-git-send-email-jblunck@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com To: Jan Blunck , dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 168732BB4 for ; Tue, 21 Feb 2017 13:30:06 +0100 (CET) In-Reply-To: <1487600262-14382-2-git-send-email-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/20/2017 2:17 PM, Jan Blunck wrote: > This introduces different initcall macros to allow for late registration of > the virtual device bus. > > Signed-off-by: Jan Blunck > Tested-by: Ferruh Yigit <...> > > -#define RTE_INIT(func) \ > -static void __attribute__((constructor, used)) func(void) > +#define RTE_EAL_INIT(func) \ > +static void __attribute__((constructor(101), used)) func(void) > + > +#define RTE_POST_EAL_INIT(func) \ > +static void __attribute__((constructor(102), used)) func(void) > + > +#define RTE_DEV_INIT(func) \ > +static void __attribute__((constructor(103), used)) func(void) > + > +#define RTE_INIT(func) RTE_DEV_INIT(func) Does it make sense to give some gaps among priorities, 101, 102, 103 --> 100, 200 , 300 When new priorities added (not sure if that ever will happen), is changing previous priorities cause a ABI breakage?