From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id 76972378E for ; Sat, 15 Apr 2017 17:56:19 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id z109so63730465wrb.1 for ; Sat, 15 Apr 2017 08:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vSvecWPHBOTY+n6yq3eTqRAcqG9bvfRVWe3Jkclatxo=; b=A276ygNlqfbLEPCrGWs9gxBvQcrddr77z5+0Zevaz/HfaGHIED/KeFj+6rdd1zYFgW +3+WZwQukkyaF3PrIKdr04wioKE6UC9Ce4Vdi/M0I5sbbD8Z54n1pj8Aj8bJgTi/IPMS Bf4UY991VDRsvC6yFxuqLcQGFXtGgChUxfZxShSl++R2oUVAQjBDSyNMhI5wmTPy3nKn Mice4GN/85UTxK7X7wKBfHxucyMBNRaZNwmhoqnBpJQrDAeRxdcre9CpJooDysb/dsWT 5VFJVvAwI2zI0zlaShEJ09CmE9NsVmFGXGKXh0nREjasVwmmjXey3p4fA8iY2Un4ugPH oXPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vSvecWPHBOTY+n6yq3eTqRAcqG9bvfRVWe3Jkclatxo=; b=kuaignLkdNX10QdIFjXlzhYdx/bJH69qH1ga4EC33htNHsRf9MNitOT4E2i5dns76q VO1YFc0xV6NEiVfp8h+ZzbrTtBDKrLDZlEjYU8w116FL367W7ONUs10yIEH4dhsFj6+q nukohBcxec4UfxigHbatgz08bD6tgE/E4a2ZG/gdJP5ZZhe9EvdebvTdEdDLGBvB07di uxYn5HviJq5IJnRONRbNFDU37JeSND1Ea0d+j8BEfUZjFJCHyiIo3BDv+cF3Gq6i8mWJ EmHp3jQrssnKSTLl7KnJPXGJj6fqH/FHKFgeRzMYfmNpkcijKM8vfsJ7X1TXNZd2pBNs vGxQ== X-Gm-Message-State: AN3rC/6lksi+yBWcVali3L+oGf5suU//BlwhSwmAZ+D4DbqCpDID8yUU EBsls4h/fTvIqST/wKlZ9nryxDxVGA== X-Received: by 10.223.154.129 with SMTP id a1mr11633803wrc.5.1492271778739; Sat, 15 Apr 2017 08:56:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.169.68 with HTTP; Sat, 15 Apr 2017 08:56:18 -0700 (PDT) In-Reply-To: References: From: Shivaram Mysore Date: Sat, 15 Apr 2017 08:56:18 -0700 Message-ID: To: Vincenzo Maffione Cc: users@dpdk.org, Giuseppe Lettieri Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Cannot attach DPDK NIC port to OVS X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 15:56:19 -0000 You should look at emails from -(Hint: search DPDK in subject) https://mail.openvswitch.org/pipermail/ovs-discuss/2017-March/thread.html https://mail.openvswitch.org/pipermail/ovs-discuss/2017-April/thread.html https://mail.openvswitch.org/pipermail/ovs-discuss/2017-April/044155.html If possible, I would recommend using Ubuntu 17.04 with OVS 2.7 with DPDK packages from http://packages.wand.net.nz/ which can simplify your deployment. /Shivaram On Fri, Apr 14, 2017 at 4:04 AM, Vincenzo Maffione < vincenzo.maffione@ing.unipi.it> wrote: > Hi, > I would like to attach one of my ixgbe NIC ports to an OpenVSwitch > instance, but I keep getting an unexpected error, see below. > > I've successfully bound both my ixgbe NIC ports to DPDK, using VFIO: > > # tools/dpdk-devbind.py --status > > Network devices using DPDK-compatible driver > ============================================ > 0000:01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=vfio-pci > unused=ixgbe > 0000:01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=vfio-pci > unused=ixgbe > > Network devices using kernel driver > =================================== > 0000:00:19.0 'Ethernet Connection (2) I218-V' if=eno1 drv=e1000e > unused=vfio-pci > 0000:06:00.0 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller' > if=enp6s0 drv=r8169 unused=vfio-pci > 0000:07:00.0 '82574L Gigabit Network Connection' if=enp7s0 drv=e1000e > unused=vfio-pci > > Other network devices > ===================== > > > Crypto devices using DPDK-compatible driver > =========================================== > > > Crypto devices using kernel driver > ================================== > > > Other crypto devices > ==================== > > > > Then I created a bridge > > # ovs-vsctl add-br obr1 -- set bridge obr1 datapath_type=netdev > > But then when trying to add the dpdk NIC: > > # ovs-vsctl add-port obr1 dpdk-p0 -- set Interface dpdk-p0 type=dpdk > options:dpdk-devargs=0000:01:00.0 > > the command fails, and I get this in the log: > > ovs-vswitchd[353]: 2017-04-14T10:54:06Z|00026|bridge|WARN|could not open > network device dpdk-p0 (No such device) > ovs-vswitchd[353]: ovs|00026|bridge|WARN|could not open network device > dpdk-p0 (No such device) > > Note that I've successfully managed to setup an OVS instance with two DPDK > vhost-user ports (each one assigned to a QEMU VM): this is why I'm > confident my OVS is built and configured correctly to work with DPDK. Also, > DPDK by itself is working as expected, I can use dpdk pktgen. > Moreover, OVS log shows that DPDK is recognized > > [...] > ovs|00005|dpdk|INFO|DPDK Enabled, initializing > [...] > > Note that I'm carefully following the documentation here > http://docs.openvswitch.org/en/latest/intro/install/dpdk/ and here > http://docs.openvswitch.org/en/latest/howto/dpdk/ > > More info: > > DPDK version: 16.11 > OVS version: 2.6.1, configured with --with-dpdk > Host: Archlinux > /proc/cmdline: BOOT_IMAGE=../vmlinuz-linux-vfio > root=UUID=1c777330-3f00-4ab8-8d5d-d4b2b5d860b0 rw intel_iommu=on > hugepages=2048 pci=assign-busses pcie_acs_override=downstream > initrd=../initramfs-linux-vfio.img > > Can anybody help? I'm at a loss here. > > Thanks, > Vincenzo >