From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: don't look for devices if none were found Date: Wed, 07 Dec 2016 19:08:05 +0100 Message-ID: <6468581.vY2a0GQL0B@xps13> References: <3a9d86aa005a8f8abc82349ee2a100ce464b7d0d.1479560838.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Anatoly Burakov Return-path: Received: from mail-wj0-f180.google.com (mail-wj0-f180.google.com [209.85.210.180]) by dpdk.org (Postfix) with ESMTP id 755912B8F for ; Wed, 7 Dec 2016 19:08:07 +0100 (CET) Received: by mail-wj0-f180.google.com with SMTP id v7so368613280wjy.2 for ; Wed, 07 Dec 2016 10:08:07 -0800 (PST) In-Reply-To: <3a9d86aa005a8f8abc82349ee2a100ce464b7d0d.1479560838.git.anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-11-19 13:10, Anatoly Burakov: > Aside from avoiding doing useless work, this also fixes a segfault > when calling rte_eth_dev_get_port_by_name() whenever no devices > were found yet, and therefore rte_eth_dev_data wasn't yet allocated. > > Fixes: 9c5b8d8b9feb ("ethdev: clean port id retrieval when attaching") > > Signed-off-by: Anatoly Burakov Acked-by: Thomas Monjalon Title reworded: "ethdev: fix port lookup if none" Applied, thanks PS: your patches are not in patchwork because a strange character in an email header and a bug in patchwork that I thought was fixed.