From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0089.outbound.protection.outlook.com [104.47.36.89]) by dpdk.org (Postfix) with ESMTP id 10AC4378E for ; Thu, 16 Feb 2017 06:54:32 +0100 (CET) Received: from DM2PR03CA0043.namprd03.prod.outlook.com (10.141.96.42) by CY1PR0301MB0729.namprd03.prod.outlook.com (10.160.159.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Thu, 16 Feb 2017 05:54:30 +0000 Received: from BN1BFFO11FD009.protection.gbl (2a01:111:f400:7c10::1:148) by DM2PR03CA0043.outlook.office365.com (2a01:111:e400:2428::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Thu, 16 Feb 2017 05:54:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) 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.904.16 via Frontend Transport; Thu, 16 Feb 2017 05:54:29 +0000 Received: from [10.232.14.39] ([10.232.14.39]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v1G5sRK3012614; Wed, 15 Feb 2017 22:54:28 -0700 To: Jan Blunck References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-2-git-send-email-jblunck@infradead.org> <303901dd-da3c-38ea-2979-01ee66387b68@nxp.com> CC: dev From: Shreyansh Jain Message-ID: Date: Thu, 16 Feb 2017 11:29:19 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131316980701900283; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39380400002)(39840400002)(39400400002)(39850400002)(39450400003)(39410400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(24454002)(189002)(377454003)(199003)(230700001)(36756003)(68736007)(64126003)(2950100002)(65806001)(65956001)(85426001)(47776003)(104016004)(6666003)(189998001)(229853002)(33646002)(106466001)(83506001)(31686004)(50466002)(77096006)(105606002)(38730400002)(110136004)(93886004)(97736004)(389900002)(4001350100001)(92566002)(6246003)(356003)(626004)(69596002)(23676002)(53936002)(4326007)(31696002)(6916009)(5660300001)(65826007)(50986999)(305945005)(8676002)(54356999)(81156014)(2906002)(76176999)(81166006)(8936002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0729; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD009; 1:rT8JJB8Suoze3Cyof4vjBWhePzHhqHLkY7cTmsB6rMfXzHrTBKgmxMilEqs2zk6ZNEVMQPZ6L8aCD63f1Z7OcPN/3TQo+0qMFSRYW855GhlATMhRvEiP2Cc5Tg0gGu/x4M9w05CVolp7VQomN4zKUIZWoUZQ1kLbcVlOOgzGxQn8n33o060egUcQNMTwDny/Za8bkla/bD2kurnB9slI5l4DDRzfN4P3IbiDGhy1X+6IqTy63N9bYrVF1nRfvW9hla0qO/QnfQhEwchqntq7tmCYt4fWcgKB8ywGuce0BECuFfptw6lrnKY9H10I40oXDo8M5+O1yOL6wX0/+CVWzdJXMIUVA5g7qnT+ZEnAAUv7J4Ad75rniw6kn3Oeeb5aKjWe+L/MQ0VPW4Eu5DQvkp/Y9aZwGZwyvQKrpv7HJzyqGqUcOTe6qAFE9zpyd+jFLcCYeP25FSwn1FmiSoROgJuwi9RPSKpobRMl28aze5ulDCwTKoitX742eZhoIR5xHUAgiHK+s4jWiVJqPSCfnP69xARFSDX84/qdQSpulDhik40iB+NJ6J/WRNDcSHKW X-MS-Office365-Filtering-Correlation-Id: 34575dc8-682d-43a4-4c9a-08d45630462b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 3:dALSv5glpUqt+lML6jEhiOXcCXEfIrqIufVzfD0WvRzI9YOjmu1gwfbvw82F/qJj2bOc7bYY1aALzhftA/JdvGWDB78EGV8Bt2sbmt4FOGrltHkhk98lzDLl8TUDlcwQGuJkBJQ90AARz49FzpzXN/dC39RYx9jSP6VH/WZLzGAAhaZu+GHfwc+KDWswi6DsQy+p2aF003o7N7kLITz3llBQiKdw/fIUOrdwrdw2ttekK5xrMPPzYqkXm+Fk7aA+xRdne5GEIoozeIV0xwBol+YX+k1LylnekplZy936tWhghe/cotjd06PYl+2veKQKpkBwO18Md5baxy8G6lPMmIsp2RPXfWXec4bQE5cEljXKZpe7gQxw95DD6w4hM5+T; 25:Hab7HDlPlKrsaWReYoVKvKGXJLq5or1P4b9Wjobr0Cwqa+NNmPmrO0W2L8ZP9NlchxFlROf2xze4kYC+sLDhZW/agKVtqDB26VmPelD4j9rxA+jPvBr1qivXBW2vOR9xX49USkX6EFGYdIq9NQfKnHHcXiiBqAQmwnL3xLoPOns930DSDiButtD9h+L1JW0Hdsggg3KYCTI+H9Do3fx6NwqfOEbIVyHwmZDWqZQsItY69jSCZZXQL93ziWkPRCUAETnRLNMBjs0xL98S6TTKnPVdrpCulH9UMu7WpUAU64/BVSZUpQwrIMO2LwgsC8EGnsXntAlc15Qm24jIfUXL1O7ZwhKAdUSJJ+tId4HpNEvcYUY8n2Iay84hyiWLaubfWpqSurIJByMnUYirX571mhCF4fI+pfIpgQL61i0c2qKC/PHOPRPwK6v+4fG6jcIoGTJed1aTJBzGqLDA3JWyjA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 31:02rjIqCKZN2GYZTFSaSbuE0QCKYsuT40dyo0qIRXZ6L7GXe9vKV7bauNYVMfX7pYEw5T27bTIqrjC3upKAKJTLrKth1wXF/leprMTHFodGRy/D3+1dDsPWGu2rLg0tWx5wQ8TxIEquK98L34zTlubEQrPhGOr0JhJzeR98hLM8n8aGGY0sz77yj7jbRxBt80oz7DOwjJRIjbEY2LT5QH0s1NZ/IyYK935sfv1PFjxNEm3evzbm1W6vzYQwgYcNHA1uVHaNNUHNiUWRdV6VLpaw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13018025)(8121501046)(13017025)(5005006)(13024025)(13015025)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123563025)(20161123559025)(20161123561025)(20161123565025); SRVR:CY1PR0301MB0729; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 4:lPEhmMcj3GsNrJOhxPgYPn3BL7DSY55sC8yoEVEthjDxQH0fxPEalcKhtUb4aQCnLluRk0epALnJtjdBvymFcsndtExbH8ZqMlYU7nxGNfNn1RVL7/lhAwtLvawG/v2AgO/hzYhwFaJZQn0wW3wuki+rapvA6uBgEy6tRyQ/o3npmMj36ylbn8AbDgBOfeVcrnGnnehGrMPc1kMjw1b1PyfsVhEY39XdVqI/4MS5mq2DP/FysHwlZYvM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5V56JWLi9fVJ0DoZGJ6CusY2KUksoUfmIFspR8bCwnWKwkModOMqN8gxDkbyY9NRY9z+ku0pQw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2017 05:54:29.9404 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0729 Subject: Re: [dpdk-dev] [PATCH 1/7] eal: use different constructor priorities for initcalls 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: Thu, 16 Feb 2017 05:54:32 -0000 On Wednesday 15 February 2017 08:35 PM, Jan Blunck wrote: > On Wed, Feb 15, 2017 at 3:37 PM, Shreyansh Jain wrote: >> On Wednesday 15 February 2017 03:32 PM, Jan Blunck wrote: >>> >>> --- a/lib/librte_eal/common/include/rte_eal.h >>> +++ b/lib/librte_eal/common/include/rte_eal.h >>> @@ -258,8 +258,16 @@ static inline int rte_gettid(void) >>> return RTE_PER_LCORE(_thread_id); >>> } >>> >>> -#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) >> >> >> Shouldn't we simply allow this priority to be default to allow for some >> priority space between buses and default init? >> > > The absolute numbers are not that important. We can always adjust > them. Important is the relative order. If you have a use-case for > something that needs to be initialized before the devices but can't > get initialized with the eal/post-eal then please speak up. > No use-case as of now.