From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by dpdk.org (Postfix) with ESMTP id D17153256 for ; Fri, 7 Sep 2018 17:44:38 +0200 (CEST) Received: by mail-oi0-f65.google.com with SMTP id k12-v6so28021579oiw.8 for ; Fri, 07 Sep 2018 08:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PFdyR4djqWJLC7P4lLzudAQJ+ERESG6jranVc8+WJ1o=; b=m8zXK+OS4vH3m/IRnkYjuIfEnf8nRP/396nWyGBi2Fra9hiV8QGskdGSwxx17D8pWZ J13X5cJq4VSSb87t5xUsmGhghdz0PkG93oIlq+mXzSueaVkCqh61HZiAYoEzfrwrGpZU lr3qXjEbI4TZTAUvQUstzVFXOOI5bNwvcqINttddMwW+qBt2QjaiFevZyYUkhXGBnMzv MTMe6moKfGkX3TuDITLAIdMvuaaZaywPsfvKtzgwy7W7kRbWgXlJowhdPgC/FsIeYy0G 5SKxt9nYHEObcqk+WQuiY05NPDuBppYFcO0D46zRhYT8rkUfIYXIZJjqWt2UlFCfNfwd QfmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PFdyR4djqWJLC7P4lLzudAQJ+ERESG6jranVc8+WJ1o=; b=Wg+u4AqzXA3C2XbOdPOwCWPVcBl07YDPmbSn9CEqJ6oWlsif7GaNgLm+hQx0a3OfUZ talf7OejAugRh1osssTDL0SaaQAY5CODW5di2Rlrjd9GIlSGAMxK5kWJGVhkDalqJbaT IycCuVh+Yme34dTjJlWh1v5PWLlCTfDzojC9Fa7rDLRwlg8DCsbbh1F3sb7lhD98WaOn 5xMRIRAE6hEjl7Ycwrkm+UdyvYapSCdJ7er43HRMZEvR2fgeCHaveIevcerZiVAkJoys qpRhHnA5PZcENp/OkVnQVVbrQncBxc4Od8tYkrt3wUwFy90Ityui5iX6OoMaRe3x/tQu mJrA== X-Gm-Message-State: APzg51C0sZLbGv0nkqiFfzOLnelyFFNaNWptqY3ThwLY+eeU91hjcT9C 5tsUoCGflYZf2fOD/XOxjKMAKBYhu5a/jdK+h1A= X-Google-Smtp-Source: ANB0VdbakdlUseZSXIJiYcQ/2hfw1OHmZfc9y918QQIpGli2e6n+UEmXgRFX19uADAg0f4bYMvLOXJ1OgIoP3NxxHhE= X-Received: by 2002:a54:4d9d:: with SMTP id y29-v6mr9045451oix.273.1536335078155; Fri, 07 Sep 2018 08:44:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rami Rosen Date: Fri, 7 Sep 2018 18:44:26 +0300 Message-ID: To: jfargen@redhat.com Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-users] TestPMD testing with VMX3NET Devices... 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: Fri, 07 Sep 2018 15:44:39 -0000 Hi Jamie, >Ok, can you clear something else up. Should I use the vfio-pci or the igb_uio driver/kernel module? Sure. First there is a third option, which is binding with uio_pci_generic, which is a generic kernel module. When you bind with igb_uio, an entry called max_vfs will be generated under the linux pci device sysfs entry. Echoing an integer into max_vfs will generate DPDK VFs (if the DPDK PMD support VFs; Intel and Mellnox and other vendor nics do support it) as opposed to echoing into sriov_numvs, which generates a kernel module PF/PFs. OTOH, You don't have max_vfs with vfio_pci and uio_pci_generic. It says in the DPDK doc: "If UEFI secure boot is enabled, the Linux kernel may disallow the use of UIO on the system. Therefore, devices for use by DPDK should be bound to the vfio-pci kernel module rather than igb_uio or uio_pci_generic.' see http://doc.dpdk.org/guides/linux_gsg/linux_drivers.html#vfio see also: "5.4. Binding and Unbinding Network Ports to/from the Kernel Modules": http://doc.dpdk.org/guides/linux_gsg/linux_drivers.html#linux-gsg-binding-kernel Hope this helps to clarify things, Regards, Rami Rosen