From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by dpdk.org (Postfix) with ESMTP id 445649205 for ; Wed, 7 Sep 2016 23:51:30 +0200 (CEST) Received: by mail-vk0-f53.google.com with SMTP id w64so25045908vkh.3 for ; Wed, 07 Sep 2016 14:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yVB6vJ/SoD4ynGh5JoZDX/LC6OmgwB4AIGYt+Aj8hI4=; b=pLj19dvAvIJIc/NTQ4ghGcfjdJDbbnSDBYIk0i9w+T3k/S2uxpojlFO/rwCol6sdsH LUKMDpg8/CjlC1tgD+2NqaUUWRw382e1y0Yn2zTCcsdUSg+TKKUvkIV7tsauxRfqGDj1 01J6QEDH0k0IqK6KiqvpVSI8iblGyDCEMuWpOuJHz5Zosfo++jXgNx1ex8lDPsRI1x67 v9MAzMpYwornAaKigosq7Eo1Xdrtya2lJNkIZOo/biqAdvKkSH9PIqN0E32m2/GkORVb b6J1XZ2fpuGFVScyatIP2XE5Ql15mS9vsRM2Rhd2fkz2rPJzxTmQ5LKtag2sWZmxWAX4 Xiuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yVB6vJ/SoD4ynGh5JoZDX/LC6OmgwB4AIGYt+Aj8hI4=; b=M96L2As3AKOr/B3hexhJAmBM5F15eDd+NTrwN5VwBf7RmQ+affd9aZkZv5pcX0LT6o KcMZocgi2Qa06wE3yjuCo4XzBviXfdLXy8lbhdRdQblgQjD41EPADeaVv0AvaixtLAj7 pvpafKYc4JaVQa3y4EC38FFM8qpCIrm60Pgyb3lRLFbqddUJnerJWaRVOewq7OgZIu06 kp9RwXD+7Uo3tXx1LfffMYIhWMzFty0GpzuVNasGKfsT/QfeS89npnNdSA6oIxtDxYv+ 2QbMAG8OtYWvHyn23kifrSuZ66D4AfBfkkbX5fyg5R1FiHRLNiEkGykXQ2anOH4uZFh6 /xPA== X-Gm-Message-State: AE9vXwMe/ZbqUAv8DgLtu+HHS2bRrDByAyAg/J+YFlOkZrmWUhSCVH27M1DjuW9abie5o+MRHl7/Xi73rSpfPQ== X-Received: by 10.31.2.76 with SMTP id 73mr679537vkc.67.1473285089599; Wed, 07 Sep 2016 14:51:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.66.135 with HTTP; Wed, 7 Sep 2016 14:51:09 -0700 (PDT) In-Reply-To: <3670099F-BDDC-4AB6-B0BC-276222CB81DD@drivenets.com> References: <3670099F-BDDC-4AB6-B0BC-276222CB81DD@drivenets.com> From: Sandeep Rayapudi Date: Wed, 7 Sep 2016 17:51:09 -0400 Message-ID: To: Ori Zakin Cc: "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: Re: [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: Wed, 07 Sep 2016 21:51:30 -0000 Thanks Ori. When I did the ip link up, packetgen comes up. Now the nics on these two hosts connected by cable. When I played traffic on one container using packetgen, the traffic doesn't reach the other container. Any clues why? On Wed, Sep 7, 2016 at 7:38 AM, Ori Zakin wrote: > Can you run =E2=80=9Cip link=E2=80=9D on host? > Check if the physical device is up. > > Ori > > > > Message: 1 > > Date: Tue, 6 Sep 2016 14:09:04 -0400 > > From: Sandeep Rayapudi > > To: users@dpdk.org > > Subject: [dpdk-users] PMD: eth_ixgbevf_dev_init(): VF Initialization > > Failure: -15 > > Message-ID: > > gmail.com> > > Content-Type: text/plain; charset=3DUTF-8 > > > > 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? 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 >