From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id B3FF32A58 for ; Mon, 12 Sep 2016 09:17:10 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id a6so38259658wmc.0 for ; Mon, 12 Sep 2016 00:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xcrs52YpePCnvX45+y3f+jtN4//klQB1dl7SwOINjX4=; b=gFhMirpBQ3xJqfv9AYxp3rfAsSYdg5nxYFw/xTdLRsTwG5yr6pGUH3wPgfRKTlm9f7 o+rbhcwc7/moy6AFZkFDRGR7DvhZ/E03V/Um5LadO6/CpkU5+3MlCUC0dWvxI59YyuXc xLLD12I5iKP87DhZ/OfrZM256knSqU7RxaWn0AnrnxYAK+wwnniNaaCrIZWJffkQsVt3 MGDSjtJcP0F4AUJm5UXRNhVIeWpmw7h8yzMcRi2OMtCje1j4X8WrNPlv3soyrWuOjj9G dnK+i7bc0+YcDmJ62ZpxZc4ReVP0sPfkW+1gMxDIN4vkjrSYEfBR2JeMXAKio6ZlW5Tz 8FiA== 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:from:date :message-id:subject:to:cc; bh=xcrs52YpePCnvX45+y3f+jtN4//klQB1dl7SwOINjX4=; b=mQKMMlNh+DoGVoOHOVTt79k6bl36t+l2Lcgsn7hNDoG+rfq1UY5pVJT5HtHGYrpGi4 FIcCpGHNFu0vWUFCsMDUOUICvU1HjAk2/xNBrdssSwOeOrtJzWOUnhZ9NFO/J5yeOVp/ F2P19bQ+ZbaytmJb3TmJpWuVQ9h3Z8JiOuxjdx7PmFXWaOdvpVoBDC3z1++h6AmW53P+ 4KHlZ/Aq8jUeklT3HYBJM0ihDvOPLTaA7ldvlGHfulOrJg62YJVr0ByLgJ3E7fOonwgr IzkEb6LPi6d/gVr1r4CLZ2O5bAnRA9UUYWXffEgD9ah8gwxMQubZ2GzagOiFF9mLiyDA KErA== X-Gm-Message-State: AE9vXwMbagwFEfT8xl14lW5xSBnUCzO3ND61cMFChU5EkxRyuZVw0OaMI40jPgRcC+75WZlvHFsceSRyHfqGaGKn X-Received: by 10.194.81.106 with SMTP id z10mr12861565wjx.140.1473664630558; Mon, 12 Sep 2016 00:17:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.97.213 with HTTP; Mon, 12 Sep 2016 00:16:50 -0700 (PDT) In-Reply-To: <1473257297-7221-14-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-14-git-send-email-shreyansh.jain@nxp.com> From: David Marchand Date: Mon, 12 Sep 2016 09:16:50 +0200 Message-ID: To: Shreyansh Jain Cc: "dev@dpdk.org" , hemant.agrawal@nxp.com Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH v9 13/25] ethdev: convert to eal hotplug 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: Mon, 12 Sep 2016 07:17:10 -0000 On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain wrote: [snip] > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index fdeac86..86c9d1a 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c [snip] > + ret = rte_eal_dev_attach(name, args); > + if (ret < 0) > + goto err; > + > + /* no point looking at eth_dev_last_created_port if no port exists */ > + if (!nb_ports) { > + RTE_LOG(ERR, EAL, "No ports founds for device (%s)\n", name); No port found ? -- David Marchand