From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by dpdk.org (Postfix) with ESMTP id CD30158F7 for ; Wed, 2 Sep 2015 16:08:49 +0200 (CEST) Received: by qkcf65 with SMTP id f65so5854986qkc.3 for ; Wed, 02 Sep 2015 07:08:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=qWmfyFhUDZrlIh3D36QR1KaG5Ak7DHuPn7Q6YDLwpfI=; b=Es+2270fVx0wrCLhXFwfvGIiRY7JPwOLn+LQluQbhTVJGuYsG17B+GWPODGHX/9pmy LXA1ZPuhdbz23cMo22WrFrpMMlxDPcANpRMN7Gv2RlBeKjzaupw70bGjt4By0yAauXE+ bdSv1UQLW651yYML6SIz0UCk5aurpOwlKZrMdetgXtS09WI21LLogPsRQ9AbaodZY8kb Ho7kreaFgjHGt68vHCUM85B4WjJ98gGWNoRv8n1IT+8qlqJAOTTVtwZWTSH+cBD0Eg8z x97HyJ8O2BXsMmtICRlxiPP00XC9Qb4dOmPi723F6AUcSKzOTD1jmtaMIWIi2gXBMWLv qzIA== X-Gm-Message-State: ALoCoQnXNjMYmyXsBVfsuXiN67cOjv4dwOwkhZ47whpVr16akAcIoVkmq2lk5TyjAqXRyB6soc+m MIME-Version: 1.0 X-Received: by 10.55.23.9 with SMTP id i9mr29081873qkh.22.1441202929158; Wed, 02 Sep 2015 07:08:49 -0700 (PDT) Received: by 10.140.89.82 with HTTP; Wed, 2 Sep 2015 07:08:49 -0700 (PDT) In-Reply-To: <20150902125650.GA10364@bricha3-MOBL3> References: <44e664970fef4bff942eaee5c7eaca67@bilemail1.empirix.com> <20150902125650.GA10364@bricha3-MOBL3> Date: Wed, 2 Sep 2015 09:08:49 -0500 Message-ID: From: Jay Rolette To: Bruce Richardson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 14:08:50 -0000 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