From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 14/15] ethdev: Support VFs on the different PCI domains Date: Mon, 10 Oct 2016 11:19:29 +0100 Message-ID: <90a90355-4f83-1def-081b-070924dd60d0@intel.com> References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> <1475237154-25388-1-git-send-email-krytarowski@caviumnetworks.com> <1475237154-25388-15-git-send-email-krytarowski@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: maciej.czekaj@caviumnetworks.com, zyta.szpak@semihalf.com, slawomir.rosek@semihalf.com, rad@semihalf.com, jerin.jacob@caviumnetworks.com, john.mcnamara@intel.com, Kamil Rytarowski To: Kamil Rytarowski , dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 773012952 for ; Mon, 10 Oct 2016 12:19:33 +0200 (CEST) In-Reply-To: <1475237154-25388-15-git-send-email-krytarowski@caviumnetworks.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Kamil, On 9/30/2016 1:05 PM, Kamil Rytarowski wrote: > It's possible to have the same numbers for bus, device id and function, > therefore we need to differentiate on domain. > > This enables DPDK with multiple VFs on ThunderX 2-socket hardware. > > Signed-off-by: Maciej Czekaj > Signed-off-by: Kamil Rytarowski > Signed-off-by: Zyta Szpak > Signed-off-by: Slawomir Rosek > Signed-off-by: Radoslaw Biernacki > Signed-off-by: Jerin Jacob > --- > lib/librte_ether/rte_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index 382c959..01d5fb0 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -225,7 +225,7 @@ rte_eth_dev_create_unique_device_name(char *name, size_t size, > { > int ret; > > - ret = snprintf(name, size, "%d:%d.%d", > + ret = snprintf(name, size, "%d:%d:%d.%d", pci_dev->addr.domain, > pci_dev->addr.bus, pci_dev->addr.devid, > pci_dev->addr.function); > if (ret < 0) > Is it possible to separate this patch from patchset, this is a ethdev patch and it seems not directly related to the rest of the patchset? Thanks, ferruh