From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=MoyUAu94JEG45TzT1w9iHIV6NAOI+anHsRuYjoOCPA0=; b=YPhYberXKAK8g4slpoJyf2LvSUz7Aw7q/fDCQC5ZuGDIDaaJ3f4NPq1cmLnDysXBea uYNZGy6JMcxwM0fIp0HtVAZHk8B0frIw2jKIco4mD72OlF63mfOii6uiT+x1dxC13Q1L Ds1ovS9kwhWD2RvNMg2lvek9uvj/RaHdKJ7gySx4KWkrhDYWEmTtWF0qjgyT/K6INxbF Y6RqLJ5/614gYFULTmahctcHCGrQ+JEFRnX/DD8C+EVq1nFJic2GruNco4s/LL4UAyzL QufF3RYl1dima2FWsPFJzVOzlghyadzIzLgZeqcAvzfK/Py7AUwIc5Jl+pE9Z5XCYaTR mIzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=MoyUAu94JEG45TzT1w9iHIV6NAOI+anHsRuYjoOCPA0=; b=mgopITIDccCdZ/VS5o98Lk4dMEyNcmoUAALCCFpwTI5OwwZItM0ynu8cg4133qNeMd XDdwCw49yhcA/oM5eVOGzQ0Rc7JW7epBVbgiOT/zM2QBbK9yBs7mjpb66EsUGSXocr7S fqv2dc6BLUUPujxGKV4Kvre//qEbL73LoK59buH8fHp2JU62toCmo0x+l+AGhKzWsv3m Fstf+C2Bpk1SWyZjSoftShe3/TV2U8XrLDesaE5VU3CMLXtw+xfhV76EdhOUytAVT6yO 4LR0eqFnkfX6iiZEAHJVnw58H27RxjFpJGWh5X1idzDF/FZJeE3iYRW0x01UxZD/IPgM jYkw== X-Gm-Message-State: AKaTC01bqDI0IDCUDtxWDYhs/R4kVZQ8+7/uSo+cERgN7lfooXz0bEiyaxnEBzmcJVsz4Eur X-Received: by 10.194.109.42 with SMTP id hp10mr36873290wjb.167.1481134087117; Wed, 07 Dec 2016 10:08:07 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id ia7sm32565724wjb.23.2016.12.07.10.08.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 10:08:06 -0800 (PST) From: Thomas Monjalon To: Anatoly Burakov Cc: dev@dpdk.org Date: Wed, 07 Dec 2016 19:08:05 +0100 Message-ID: <6468581.vY2a0GQL0B@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <3a9d86aa005a8f8abc82349ee2a100ce464b7d0d.1479560838.git.anatoly.burakov@intel.com> References: <3a9d86aa005a8f8abc82349ee2a100ce464b7d0d.1479560838.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] ethdev: don't look for devices if none were found 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: Wed, 07 Dec 2016 18:08:07 -0000 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.