From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doherty, Declan" Subject: Re: [PATCH v3] net/bonding: support bifurcated driver in eal cli using --vdev Date: Mon, 2 Oct 2017 12:06:13 +0100 Message-ID: <0c17c7cc-9e11-da22-c2b1-311b6f16b979@intel.com> References: <266cd54d289bfd6e9535a173c9607f0234f8b1b7.1499167396.git.gowrishankar.m@linux.vnet.ibm.com> <502c45826dbbfd2bc3f4f743aeea87f159921ae9.1505929849.git.gowrishankar.m@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Thomas Monjalon , =?UTF-8?Q?Ga=c3=abtan_Rivet?= To: Gowrishankar , dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6B7D41B201 for ; Mon, 2 Oct 2017 13:06:16 +0200 (CEST) In-Reply-To: <502c45826dbbfd2bc3f4f743aeea87f159921ae9.1505929849.git.gowrishankar.m@linux.vnet.ibm.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 20/09/2017 7:04 PM, Gowrishankar wrote: > From: Gowrishankar Muthukrishnan > > At present, creating bonding devices using --vdev is broken for PMD like > mlx5 as it is neither UIO nor VFIO based and hence PMD driver is unknown > to find_port_id_by_pci_addr(), as below. > > testpmd --vdev 'net_bonding0,mode=1,slave=,socket_id=0' > > PMD: bond_ethdev_parse_slave_port_kvarg(150) - Invalid slave port value > () specified > EAL: Failed to parse slave ports for bonded device net_bonding0 > > This patch fixes parsing PCI ID from bonding device params by verifying > it in RTE PCI bus, rather than checking dev->kdrv. > > Fixes: eac901ce ("ethdev: decouple from PCI device") > Signed-off-by: Gowrishankar Muthukrishnan > --- > v3: > - adapt rte_bus API (with suggestions from Declan and Gaƫtan) > ... > Acked-by: Declan Doherty