From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 3154F7F2D for ; Wed, 5 Nov 2014 22:33:00 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id y10so2002685wgg.2 for ; Wed, 05 Nov 2014 13:42:24 -0800 (PST) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=oxTQrGebz90euNBKrL/W50RJuvI44Ko4nPETuI9saiA=; b=CHWXoul0q7tbF1kV38Q3S1T7o56WRiIoeIKO8B9Ei182y5jv2dfeK16dGpWujUJhrH 1/MJGEWgwKhaIGCKdBmEYpugyLC2iXAZWVEt7a9/0yDsp1RVnZ0+PwiunXAz9ypg6+qS 3cx3BIAlpZSouqp1Zyylvv+L95F2qfyj5ernLDC96sUbAc39V0S3irAx1hFq6xSEMDhR /9qOz2H8fghLt6bey7pxTwSSe49LTLUWNhi+NTNwEOKjtLbLzpnwzMJaFrtKx+kBCZ3o S27wAH2MFN9HJr92IIGxpvQ2EIqzso2IPx1l3SOIhwCHZpMlZfH+8F+/77PIuSTFRx72 IR6g== X-Gm-Message-State: ALoCoQlMQdAIGGUpoZyOwC1LrALFXROv3GG6Dkk1Xnj5kf24FA04jc9LXxu2rP/j9OExwt3scow1 X-Received: by 10.180.107.136 with SMTP id hc8mr35036395wib.78.1415223744728; Wed, 05 Nov 2014 13:42:24 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id ce1sm5508624wjc.2.2014.11.05.13.42.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Nov 2014 13:42:24 -0800 (PST) From: Thomas Monjalon To: Pablo de Lara Date: Wed, 05 Nov 2014 22:42:04 +0100 Message-ID: <3195341.oQ9HdtNXe4@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.2-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: <1414872242-32349-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1414872242-32349-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] app/test: pci_autotest test fails if there is any device bound to igb_uio driver 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, 05 Nov 2014 21:33:00 -0000 > Since commit a155d430119 ("support link bonding device initialization"), > rte_eal_pci_probe() is called in rte_eal_init(). > pci_autotest called it to bind devices to the test_driver and test_driver2. > Therefore, the function is called twice and devices already allocated > will cause the test fail. > > This patch solves that issue, unregistering all previous drivers before > calling rte_eal_pci_probe() for the first time, so DPDK does not try > to allocate data for the devices, binding them to their previous > drivers again. > > Signed-off-by: Pablo de Lara Applied Thanks -- Thomas