From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40074.outbound.protection.outlook.com [40.107.4.74]) by dpdk.org (Postfix) with ESMTP id EE4B7A10 for ; Thu, 10 Nov 2016 16:02:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TogaNetworksLtd.onmicrosoft.com; s=selector1-toganetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TbS3tezFAQ9Rf4gj0503xckc1jPnPs0E6DPpNfND/c8=; b=Nf6U13H4lM1Qrze8U4WNWkJVS6dvXl1Uuy4PDHWj4FqV/H0tArbj1dEi85sGqlO/RlbAshxe005iGj8d+Ig7FK5aNwmBKzAkdx4ds9AVlYfr7O3iJ8cv83na6NeW4ysz5TT8apZ0RIXW+qh3tOc1w9NMxIIdAKqFaVhB6N1V+x4= Received: from VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) by VI1PR0201MB2318.eurprd02.prod.outlook.com (10.168.63.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Thu, 10 Nov 2016 15:02:53 +0000 Received: from VI1PR0201MB2319.eurprd02.prod.outlook.com ([10.168.63.21]) by VI1PR0201MB2319.eurprd02.prod.outlook.com ([10.168.63.21]) with mapi id 15.01.0707.013; Thu, 10 Nov 2016 15:02:54 +0000 From: Eli Britstein To: "users@dpdk.org" Thread-Topic: SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure Thread-Index: AdI7Y3yHPzW9ym/qRG6hSzns5oh+rw== Date: Thu, 10 Nov 2016 15:02:54 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=eli.britstein@toganetworks.com; x-originating-ip: [84.94.204.35] x-microsoft-exchange-diagnostics: 1; VI1PR0201MB2318; 7:JbECZamy0J8xzTEXd900CgkZOg8wPCVPKQ8AGUhkT+f7FBCG/GtJcQ9dz6hSVtKaP3usjkWbkY5qMoULwcaHIx1sXzO8u/6bQTUR5QoDYQHEia86qwpClcRqjtfNr8DqOjKYynypMnf3jZkTflQoe+LXD7iyq/dPhv6JLroPVC0msTiDN0HpGgpMYRoTmRIYjIuE4I302YrFO+sdrtnk3X5eh5nDUE5oVznQb9Gb26/x1R/A/nivLIVj46xcFuF3atmkSGQXS5m+YUJbdrvEPz0SDTLkSByzq8HmUKML4iLxGaqtemlPAAG3p3y/G93ipEitXA0cJY3m/dn8oYVkYiOELB7ki7L2U/040JFAPl8= x-ms-office365-filtering-correlation-id: 302c0172-08fc-42d5-bb52-08d4097aa611 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR0201MB2318; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046); SRVR:VI1PR0201MB2318; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2318; x-forefront-prvs: 01221E3973 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(34854003)(42154003)(189002)(199003)(53754006)(107886002)(74316002)(7846002)(87936001)(66066001)(7736002)(305945005)(50986999)(106356001)(97736004)(101416001)(105586002)(54356999)(122556002)(8936002)(5660300001)(33656002)(81156014)(110136003)(81166006)(8676002)(1730700003)(9686002)(7696004)(189998001)(6916009)(92566002)(77096005)(5890100001)(3660700001)(2501003)(3280700002)(586003)(3846002)(575784001)(6116002)(102836003)(86362001)(2900100001)(76576001)(68736007)(2906002)(5640700001)(2351001)(450100001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0201MB2318; H:VI1PR0201MB2319.eurprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: toganetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toganetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2016 15:02:54.0630 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 73f7e7df-ca98-4f08-bf85-f137b447da96 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2318 Subject: [dpdk-users] SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2016 15:02:56 -0000 Hi all, I want to use both PF and VF bound to igb_uio. However, when doing so, VF init fails: EAL: PCI device 0000:04:10.1 on NUMA socket 0 EAL: probe driver: 8086:10ed rte_ixgbevf_pmd PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -100 EAL: Error - exiting with code: 1 Cause: Requested device 0000:04:10.1 cannot be used The sequence I use it this: Initial state: - 04:00.1 is bound to Linux driver (ixgbe) - no VFs configured Step 1: configure a VF echo 1 > /sys/bus/pci/devices/0000:04:00.1/sriov_numvfs Step 2: set VF's MAC address ip link set dev enp4s0f1 vf 0 mac 00:bb:dd:04:00:00 Step 3: bind the VF to igb_uio Step 4: execute L2FWD ./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w 0000:04:00.1 -- -T 0 -p 1 Wo= rks as expected Step 5: bind the PF to igb_uio Step 6: execute L2FWD again ./dpdk/examples/l2fwd/build/l2fwd -c 1 -n 1 -w 0000:04:00.1 -- -T 0 -p 1 --------------------------- FAILURE --------------------------- I tried several DPDK versions (1.7.1, 2.0.0, 2.2.0, 16.07). All fail in eth= _ixgbevf_dev_init. Usually the error code is -100, but in some cases also I saw -15. Please advise Thanks, Eli ---------------------------------------------------------------------------= ---------------------------------------------------------------------- This email and any files transmitted and/or attachments with it are confide= ntial and proprietary information of Toga Networks Ltd., and intended solely for the use of the individual or en= tity to whom they are addressed. If you have received this email in error please notify the system manager. = This message contains confidential information of Toga Networks Ltd., and is intended only for the individual = named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Pleas= e notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mai= l from your system. If you are not the intended recipient you are notified that disclosing, copying, distribut= ing or taking any action in reliance on the contents of this information is strictly prohibited. ---------------------------------------------------------------------------= ---------------------------------------------------------------------