From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/test: pci_autotest test fails if there is any device bound to igb_uio driver Date: Wed, 05 Nov 2014 22:42:04 +0100 Message-ID: <3195341.oQ9HdtNXe4@xps13> References: <1414872242-32349-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Pablo de Lara Return-path: In-Reply-To: <1414872242-32349-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > 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