From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id F2BB5591E for ; Wed, 2 Sep 2015 21:23:07 +0200 (CEST) Received: by wicmc4 with SMTP id mc4so76494567wic.0 for ; Wed, 02 Sep 2015 12:23:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=5KSnYPHZAAk/9qaKKspOvxoDmidgXsEr76LQQuR8MXw=; b=Dss5+zth3ZYZsRqzXVXJkMrOsW55xFOIvC59BOXdPpckIQ9EqxJfzs7niwXjaEPoZD wrox6sxESeKoZLQi8VkddDaZiYMYenUYUvLE1/nPmNbTrfQL8jFTncV+SWWVgrV0oapc icqRXP7BkY9KO2w01+4OSy9CxuWe42vDlmVp73GRFEYmV5uAtc8P5vYu8qm4207dtAMr /7dVQwVTfrIWjfsOtprnue4q6kjsSeu132vaCuhbkjL8lCyVxcUbQq0BsoBMKtfQ3NI1 1oFxdkH3DRzTjHUE028p0+B2wXGlmN96rX+YB/XmlZQ+Wn3JJUdRydjeUDT8qDRmsIvo SznQ== X-Gm-Message-State: ALoCoQlo5PCrcDPbchuSB30M2xtf1sK4nRvADniCOZ0MN941HikeVAlsMjqj8yXpgTiMMcVN4c7/ X-Received: by 10.180.76.232 with SMTP id n8mr6842510wiw.72.1441221787759; Wed, 02 Sep 2015 12:23:07 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by smtp.googlemail.com with ESMTPSA id f7sm5068250wij.17.2015.09.02.12.23.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 12:23:07 -0700 (PDT) To: Jay Rolette , Bruce Richardson References: <44e664970fef4bff942eaee5c7eaca67@bilemail1.empirix.com> <20150902125650.GA10364@bricha3-MOBL3> From: Zoltan Kiss Message-ID: <55E74C9B.4070109@linaro.org> Date: Wed, 2 Sep 2015 20:23:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] rte_eal_init() alternative? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2015 19:23:08 -0000 On 02/09/15 15:08, Jay Rolette wrote: > On Wed, Sep 2, 2015 at 7:56 AM, Bruce Richardson > wrote: > >> On Wed, Sep 02, 2015 at 12:49:40PM +0000, Montorsi, Francesco wrote: >>> Hi all, >>> >>> Currently it seems that the only way to initialize EAL is using >> rte_eal_init() function, correct? >>> >>> I have the problem that rte_eal_init() will call rte_panic() whenever >> something fails to initialize or in other cases it will call exit(). >>> In my application, I would rather like to attempt DPDK initialization. >> If it fails I don't want to exit. >>> Unfortunately I cannot even copy&paste the rte_eal_init() code into my >> application (removing rte_panic and exit calls) since it uses a lot of DPDK >> internal private functions. >>> >>> I think that my requirements (avoid abort/exit calls when init fails) is >> a basic requirement... would you accept a patch that adds an alternative >> rte_eal_init() function that just returns an error code upon failure, >> instead of immediately exiting? >>> >>> Thanks for your hard work! >>> >>> Francesco Montorsi >>> >> I, for one, would welcome such a patch. I think the code is overly quick in >> many places to panic or exit the app, when an error code would be more >> appropriate. >> Feel free to also look at other libraries in DPDK too, if you like :-) >> >> Regards, >> /Bruce >> > > +1 > +1