From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0070.outbound.protection.outlook.com [104.47.2.70]) by dpdk.org (Postfix) with ESMTP id 77D1A558C for ; Thu, 10 Nov 2016 15:52:15 +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=jYLdFGfuD7zPgBJg6p8UfqM53TwevFiqo2ZoriGXiY8=; b=dxxIwTdB+TZtH4GvRXY1cwBwEWwAtuEc76ICvUOekSsPuavvvA4x1MDPoDZ8Uv0SNVXLYV1bDZ4hOyJc1hkek+SssO5mVkGR4hgAvVOvHPI+MVQN+w2LMfdLPL26MEPx2SZkagVgNjSraOvsO00O/4egIlfTPl5y9yATzkQ223E= Received: from VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) by VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) 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 14:52:14 +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 14:52:14 +0000 From: Eli Britstein To: "users@dpdk.org" Thread-Topic: SRIOV with DPDK-PF: PMD: eth_ixgbevf_dev_init(): VF Initialization Failure Thread-Index: AdI7Yf3QRGJkTLbuQ+i4te6lr7O4pA== Date: Thu, 10 Nov 2016 14:52:13 +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; VI1PR0201MB2319; 7:0CaJmkiYQpKNugtu4HLrU6y8sGpcBxxQ+P6A9i/6MNWsXvHOokOmktbTWj5YAwsZhItxetheCKn1luDM6r/RTMsq+Oxu97o0NhtzpxtgIuDddFZznVkIK8s5B3AJp5QguqXtfUTXokwkd5z/NX0M6cu9rfqR5VgIeNnbzjodx39daZjL7o4YS1UGZABDgtFXqQjJsK4PUhSjRBAO0ryAzxQQM+Zi/BZkV7TZtV6eV+j8RA7RfLXKKVk2kZJ5lpULlU0PW86JJTPQjPAaEJ5rJeZV7rYGVUjKu5fHztcntUoiPdTZUeROk6WMcOjp3N2Dd9EgMOwWeoqk2E++Lhb2Mo30hOizMWRY2/Ln94F+SNI= x-ms-office365-filtering-correlation-id: 83d6d1ea-1fb6-409a-f43c-08d40979286f x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR0201MB2319; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046); SRVR:VI1PR0201MB2319; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2319; x-forefront-prvs: 01221E3973 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(34854003)(42154003)(53754006)(199003)(189002)(5640700001)(5890100001)(107886002)(122556002)(8936002)(105586002)(66066001)(5630700001)(3660700001)(3280700002)(9686002)(1730700003)(81156014)(81166006)(97736004)(8676002)(76576001)(2501003)(7846002)(189998001)(77096005)(2906002)(33656002)(6916009)(50986999)(54356999)(87936001)(5660300001)(7736002)(68736007)(86362001)(575784001)(74316002)(7696004)(2351001)(101416001)(106356001)(110136003)(2900100001)(3846002)(92566002)(6116002)(586003)(790700001)(450100001)(102836003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0201MB2319; H:VI1PR0201MB2319.eurprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: toganetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: toganetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2016 14:52:13.8179 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 73f7e7df-ca98-4f08-bf85-f137b447da96 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2319 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 14:52:15 -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. ---------------------------------------------------------------------------= ---------------------------------------------------------------------