From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0080.outbound.protection.outlook.com [104.47.42.80]) by dpdk.org (Postfix) with ESMTP id 9BBA46CBB for ; Fri, 30 Sep 2016 14:07:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QFlwe5GT7qqyXS4gEFblDXooQiMMZ/voqs2/UMJ+sxA=; b=EexkgXofo/lxbOVByTR/P1v9alkCkny86ewM4OUZ4qswLVxE49eagtFt+2CXIxz6gOxUPR30MRN6yl36+VwkrMxlBx85PQbgBHOXFH6RjS4WbCud/HaiEB1dlCzSv4a8a8OqdL/8w5R+FckEUPAnxbvnYdBZnOFqGjxY7XT5ESY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Kamil.Rytarowski@cavium.com; Received: from cavium1.semihalf.local (31.172.191.173) by CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Fri, 30 Sep 2016 12:07:07 +0000 From: Kamil Rytarowski To: CC: , , , , , , , Kamil Rytarowski , Kamil Rytarowski Date: Fri, 30 Sep 2016 14:05:53 +0200 Message-ID: <1475237154-25388-15-git-send-email-krytarowski@caviumnetworks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475237154-25388-1-git-send-email-krytarowski@caviumnetworks.com> References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> <1475237154-25388-1-git-send-email-krytarowski@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: VI1PR07CA0001.eurprd07.prod.outlook.com (10.163.160.139) To CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) X-MS-Office365-Filtering-Correlation-Id: f7b5f331-386c-44f6-0886-08d3e92a4dd0 X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 2:B8uWqrmipzL8XZsfr+oL/hxyQY0xGL/JcGdCjoQgpgFCt3Pse2nMTSGX7ULb5Y8tXiWMIF0eF+nG/aEYLtT6CC9S6TtrWGeJbWveIOeJRwUo+TRxIFXGbghRGJrgSSXYJiYUPVtZZ0Fc4jI7tmOo4F7jz3tWoUzdFpIPwF58YXz+uVGdK524mCrx/rHa+PnV; 3:4RSGGB10/4scMLu9bIjTPhH80l2PSa46lpa6UOJghaZnXl4V5i9k5gGx1mEHHi36IyYz9DWvST3Ww7OpbMocGycOx0xFR60mMUulWtLu1g7YplhK92sfyboMiafnx2t6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 25:K2IcTsS96y0dn43rexhqBECCJmbw6H5g+D+uiCE41QZQOSLIhH9xY+iajrdUv4n7wSPqrYoHQoY5CQtKryKiMAoJH5TxXhM7bO7Q8WVmqRYw1DwPFDKuK0BwguZJl+dqTm/8k6EUyYzkvoqJSvWcHiNDegkaXldshvPzoal4NCN8rSG3MYJyihXSYVw88S33qJpiG78riq+g+EKmFn25BspVNtUapf4B+dlTJvO15vk5VR6jJeaCinNA4xbzHZB+PRhxi03fK2xe3jvI2a311b1Z3sp8iEJ0LV4ZsVDbz5XJj+qHZd/aMIRaDs421p2/O39WYartBTjZ5F5URcAr1I+0n5dZony0EkyLLPVbPGtcIlvLSK5lYPmU3ihzvEdeK+moquBNk9mG/iSJ/Xjw9T7nw4B6ZjvfsgxGLxyxdSzVAgi1cxb/jpxN1GCXYZRCgQdjP3eY3LLzrbgF3Hxo6Ctb9vf7pz8HIRkknsGz6Fo2KfRKp5SC/c1iuoaXsi3zvTS0Othie0X/MKfOnMzrJSCtUi4GtKbC3YG7WbKbZR4kFb4VFlVd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-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY4PR07MB3063; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 4:Pcx7zg0rmmROe45XrEb1OLMXia1IrsVbnhqsvgvpfH+GXfqb5fstMZfFbm7w7UvWqKj0AatngVmrZaoVEiahpZcRX4OEuZO64Wcp5Fa2NYuo45YfIkMcPyEGSWAOb74Ou8MMvYdqp0Pgl3PLWMgCSj//EF3AnZQ3HaGnrkO7H3Lox9vDuWfmfZ6dbuTZH5qthuF5P7Y5exMnueRNT5x8oJvSMRZkVDLw07ewQ/66hzme3VBUh1hevtvEXgB4wQyKoXkw0C+/VE5UrYlsETu3aurZ34c5IinbuQ4BSumqscCr8N+kWX9NtcvYXzdpHgxurmKEhAg0OuTzYIQPerXhYOqVNYyfnjkNjBQvRZ1Or5eoKEkV+XUeG5mN5iNV3nQLVmfnJFooZLWHlTEFwS4alA== X-Forefront-PRVS: 008184426E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(92566002)(3846002)(66066001)(189998001)(47776003)(42882006)(36756003)(105586002)(19580395003)(97736004)(6916009)(6666003)(68736007)(42186005)(19580405001)(50986999)(50226002)(77096005)(76176999)(5003940100001)(6116002)(7736002)(2950100002)(101416001)(586003)(106356001)(7846002)(5660300001)(4001430100002)(305945005)(33646002)(229853001)(110136003)(8676002)(4326007)(81166006)(107886002)(81156014)(50466002)(2906002)(48376002)(2351001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3063; H:cavium1.semihalf.local; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4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eez8FrkY9bPruEV2QSoa89POk1fZ+T7ZKhArviZUM5wwySsvcl3GT1gJWu0Gm77GelwJX5doTjOZ1GTU8QwTyftOTy8rtzr1/RxirvxNpJ/3xGn4x+lt2ZiezkrMm6y3VLKHGDFIAGtcOOcPGKt1bc2+7A2unWoVuWGrFsqAmXx7Pop6yQvicLilmHKqmiXWd3Tsvh6K1x3Gyh8WIL3jfA2dHRQtmMpydhm/bfT8WRuvqh5MhG+LGpmzzcgWEy+y+U9rMkQYKZQg7sSpyja SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2016 12:07:07.4374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3063 Subject: [dpdk-dev] [PATCH v2 14/15] ethdev: Support VFs on the different PCI domains 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: Fri, 30 Sep 2016 12:07:12 -0000 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) -- 1.9.1