From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by dpdk.org (Postfix) with ESMTP id 9416C5A08 for ; Tue, 6 Sep 2016 20:09:25 +0200 (CEST) Received: by mail-vk0-f46.google.com with SMTP id f76so107541135vke.0 for ; Tue, 06 Sep 2016 11:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ZIAf8EtIQ43waXHvJxJd4nTM5KSl16X3ByCt8qT2pDg=; b=UFVzFRXhie32VQ7VBTybpbJzTCYzA28pM/16m0rNRIAiPzfmfWGFEi9Zh8HROeK9/A kGyaNF56gvuIlzhh/GZTv5hixAhe7XFjp42AT/PbKwsNKG+jI0Q8x3h2ryIP2f0tvQyC qKS50oExS15Aaqzophb/slVox15RkOOsru6tXARnh0xpv4moL+P/IMrc9Fc16nvTW8W7 FmgDYdpFnrbGwrr38d2y/MSRayus71O6h3ogPwfTRNxsF18FJg29Avv8aDP3qFOhnGI6 +p7KF9CSEjh1XP+zjFMJ59xDtrNq3EMiLb1vaRkkNd8xXEK8CGoD2lodu9UNoKtFf03s xYgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZIAf8EtIQ43waXHvJxJd4nTM5KSl16X3ByCt8qT2pDg=; b=br9JFQfGhWvHvq6PmjUfhkyETEyECdB7ioyGzEhpCYMKvQYkN3J3lTSpj2237T89Z+ cMYTV3EKP55+3rerd0L55jlk0rfBkQOofJfZtKov614TO1Fv7jNZC/E5Siig8Zh6n3tn WWxW4c4gjQi6oTOOCjAG7UFPdPYJAp9re/HdLS/CBDghUmBeGex4MwEOlSAEqvD3EFdl wxGjYKZrzG7kpSbmAyqOM4g1K/9jB5vOE49I5ipPmyJDTETkmEwq8ck/PjhayDZpt3W+ mfsd6Woos/gg2mblDju4B9uxz2hfk93FZuRIPKKPpQYy/gTGkboyqRPTEa7vmMGOMHSv +3dA== X-Gm-Message-State: AE9vXwO83rZ8b/vRNVkRr/AMSw+lxKk+Fq9xr2TXPNiFy44+HgTL82CG748h3dTA20RJwhs2yhCLMpbRkKx1jg== X-Received: by 10.31.13.197 with SMTP id 188mr26745082vkn.87.1473185364825; Tue, 06 Sep 2016 11:09:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.66.135 with HTTP; Tue, 6 Sep 2016 11:09:04 -0700 (PDT) From: Sandeep Rayapudi Date: Tue, 6 Sep 2016 14:09:04 -0400 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 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: Tue, 06 Sep 2016 18:09:25 -0000 Hi all, when i tried to run pktgen/testpmd on the container with SR-IOV VF, VF Init fails with error code -15. Any inputs please? Steps I followed are: 1. Create a Virtual Function on NIC a. Add boot option for the host: *iommu=3Dpt intel_iommu=3Don* b. Without this option, we're unable to edit the file: /sys/bus/pci/devices/0000:05:00.0/sriov_numvfs c. After reboot, echo *1* > sriov_numvfs d. Now, we're able to see *1 *Virtual Function in *lspci | grep -i ethernet* output e. Now dpdk-devbind tool displays that the virtual function bound to *ixgbevf* 2. Bind the VF NIC to vfio-pci 3. Create the mountpoint 4. Start the container with: a. docker run --privileged -itd -v */dev/vfio/vfio0:/dev/vfio/vfio0* -v /mnt/huge_c0/:/dev/hugepages/ -v /sys/bus/pci/drivers:/sys/bus/pci/drivers -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev -v /usr:/usr -v /lib:/lib 5. Start DPDK application ./app/app/x86_64-native-linuxapp-gcc/pktgen -c 0x1f -n 3 -- -P -m "2.0" Copyright (c) <2010-2016>, Intel Corporation. All rights reserved. Powered by Intel=C2=AE DPDK EAL: Detected 28 lcore(s) EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: VFIO support initialized PMD: bnxt_rte_pmd_init() called for (null) EAL: PCI device 0000:04:00.0 on NUMA socket 0 EAL: probe driver: 8086:10fb rte_ixgbe_pmd EAL: PCI device 0000:04:00.1 on NUMA socket 0 EAL: probe driver: 8086:10fb rte_ixgbe_pmd EAL: PCI device 0000:05:00.0 on NUMA socket 0 EAL: probe driver: 8086:10fb rte_ixgbe_pmd EAL: PCI device 0000:05:00.1 on NUMA socket 0 EAL: probe driver: 8086:10fb rte_ixgbe_pmd EAL: PCI device 0000:05:10.0 on NUMA socket 0 EAL: probe driver: 8086:10ed rte_ixgbevf_pmd EAL: using IOMMU type 1 (Type 1) PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 EAL: Error - exiting with code: 1 Cause: Requested device 0000:05:10.0 cannot be used Thanks, Sandeep