From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96B69C5ACAE for ; Thu, 12 Sep 2019 00:48:06 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 24E622085B for ; Thu, 12 Sep 2019 00:48:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24E622085B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sandvine.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D034C1E537; Thu, 12 Sep 2019 02:48:04 +0200 (CEST) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by dpdk.org (Postfix) with ESMTP id 5D6091E535 for ; Thu, 12 Sep 2019 02:48:03 +0200 (CEST) Received: from WTL-EXCHSV2-2.sandvine.com (192.168.194.59) by WTL-EXCHSV2-1.sandvine.com (192.168.194.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.1034.26; Wed, 11 Sep 2019 20:48:01 -0400 Received: from WTL-EXCHSV2-2.sandvine.com ([fe80::d8f1:d37e:6c06:11ef]) by WTL-EXCHSV2-2.sandvine.com ([fe80::d8f1:d37e:6c06:11ef%20]) with mapi id 15.01.1034.026; Wed, 11 Sep 2019 20:48:01 -0400 From: Jeff Weeks To: "Iremonger, Bernard" , "dev@dpdk.org" Thread-Topic: Intel X710 and DPDK... Thread-Index: AQHVaADUJyE9j406rEeMJNZAZGjpCqcmqk4wgAAUm00= Date: Thu, 12 Sep 2019 00:48:01 +0000 Message-ID: References: , <8CEF83825BEC744B83065625E567D7C260DF6E07@IRSMSX108.ger.corp.intel.com> In-Reply-To: <8CEF83825BEC744B83065625E567D7C260DF6E07@IRSMSX108.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.143.30] x-c2processedorg: b2f06e69-072f-40ee-90c5-80a34e700794 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Intel X710 and DPDK... X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks Bernard, I guess I was expecting to see them bound to a dpdk i40e driver. When sending traffic to these NICs, I'm not actually getting packets from D= PDK, and am trying to debug through. If I disable the VM, I can see the ho= st interfaces receive packets, and I've confirmed that the PCI passthrough = configuration appears to be accurate. When iterating all the RTE_ETH_DEVs, the list is emtpy, so it appears as th= ough the x710 cards aren't being managed by DPDK, and I'm not sure why not. Thanks, --Jeff ________________________________ /dev/jeff_weeks.x2936 Sandvine Incorporated ________________________________ From: Iremonger, Bernard Sent: Wednesday, September 11, 2019 12:30 PM To: Jeff Weeks; dev@dpdk.org Subject: RE: Intel X710 and DPDK... [EXTERNAL] Hi Jeff, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jeff Weeks > Sent: Tuesday, September 10, 2019 8:49 PM > To: dev@dpdk.org > Subject: [dpdk-dev] Intel X710 and DPDK... > > Hello, > > > I have some questions regarding the i40e driver in reference to Intel X71= 0 > NICs. > > > I have several 10G X710 cards on a host, mapped into a kvm-based guest vi= a > PCI-passthrough. > > > DPDK sees these cards (the 6 in "Other Network Devices"): > > # dpdk-devbind --status > > Network devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:00:03.0 '82540EM Gigabit Ethernet Controller 100e' if=3Deth0 drv=3De= 1000 > unused=3Duio_pci_generic > 0000:00:04.0 'Virtio network device 1000' if=3Deth1 drv=3Dvirtio-pci > unused=3Duio_pci_generic > > Other Network devices > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:00:09.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > 0000:00:0a.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > 0000:00:0b.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > 0000:00:0c.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > 0000:00:0d.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > 0000:00:0e.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' > unused=3Duio_pci_generic > > No 'Crypto' devices detected > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > No 'Eventdev' devices detected > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > No 'Mempool' devices detected > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > No 'Compress' devices detected > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > But it wont bind them to the i40e driver: > > root@10.129.182.229:~# dpdk-devbind -b i40e "0000:00:09.0" > Error: bind failed for 0000:00:09.0 - Cannot bind to driver i40e > > I'm wondering what I can do to debug this? > > Thanks, > Jeff You cannot bind DPDK to the i40e kernel driver. Try the following: ./dpdk/usertools/dpdk-devbind.py -b igb_uio 0000:00:09.0 or ./dpdk/usertools/dpdk-devbind.py -b uio_pci_generic 0000:00:09.0 Regards,