From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by dpdk.org (Postfix) with ESMTP id C011068F8 for ; Thu, 8 Sep 2016 20:43:30 +0200 (CEST) Received: by mail-vk0-f47.google.com with SMTP id f76so49164598vke.0 for ; Thu, 08 Sep 2016 11:43: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=Z84JOsvo8ulWvuZ5SNddpiUt2b2ikqev2d+rHsFsWb8=; b=0R3bDDkGgJpEQl0e8z2k5Yj2wc87/BsNyM8UmkH7tamh6NyavqhrYpTRjzSCi9zqik hVKxUT5zN+qYheAi/QIpYKOkVuL6Q9ingU1JYyobZ10YIzpiBzlXS5QCPKFZNE++Nhrl WRn6PCQdz9pUjokICrexfRlhjtwrAFd5wJtRt0KN4GKUyKE6/c7U5240JFKzYgk+5H+B 5KUDp/99Kk0NT+90cmcPFATcjIsx1ojCSoi8S8OYRxz1zb9h49sxt+GTPfMZ4Tp4iRe3 KNm9brrcziZJdcxGTdfA1czdjMspRotDere4hMXfO85ON39N9ehpjEJkBZV2iy+3PBsZ 3ccA== 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=Z84JOsvo8ulWvuZ5SNddpiUt2b2ikqev2d+rHsFsWb8=; b=nJhZKQk4fOvRmCB8TjAyKLZDNQx/3r/R+q2lXoGRrNqV5zxG97aqyuIyHwnYn2UavD 9tcPCJo/agofrV5Hnkb1M6FikauWNgGOsVy0k8gJpW+kLdN0D7zstzs7U1yPY07Eo3Gp XU+WqKqWrbW4OwAgHmqySUbDnNG7qIYDS7rV72o9d4gUM5mVAhEPiFnLhhYCpCoh/GVz cDmzfVNcL2Kc9ATZ1G2SCRw9Qgd8rfO3kVs9kxzmMbR/hY5q7DdQQuctz5qr4+U+doei 6xsOzINX+gwn+SkxDW6gm3KPR6B8b6sm/QOTze9ax0ltP7eF2TrGxLUKGdjPVDjUy8ZQ e1tA== X-Gm-Message-State: AE9vXwPYsHZfPQexbOr+gQE5dgjVJmVdqQ9yE2vgFqTsjd57iDiuiPYjdQtmYs1VyUdqIivqd6pQxEny/aZXJg== X-Received: by 10.31.221.3 with SMTP id u3mr879779vkg.25.1473360210163; Thu, 08 Sep 2016 11:43:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.66.135 with HTTP; Thu, 8 Sep 2016 11:43:09 -0700 (PDT) In-Reply-To: <6A8EF5C4-3C8E-44D2-A49D-74E8E521EA08@drivenets.com> References: <3670099F-BDDC-4AB6-B0BC-276222CB81DD@drivenets.com> <6A8EF5C4-3C8E-44D2-A49D-74E8E521EA08@drivenets.com> From: Sandeep Rayapudi Date: Thu, 8 Sep 2016 14:43: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: Thu, 08 Sep 2016 18:43:31 -0000 Hi Ori, I managed to get the traffic flowing after setting the MAC address of the destination port on source machine and vice-versa. Command used in packetgen prompt is: set mac 0 Thanks, Sandeep On Thu, Sep 8, 2016 at 2:57 AM, Ori Zakin wrote: > Make sure the VF Mac/Vlan filters correspond to the packetgen config. > > Ori > > > On 8 Sep 2016, at 12:51 AM, Sandeep Rayapudi > wrote: > > 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: >> > > mail.com> >> > Content-Type: text/plain; charset=3DUTF-8 >> > >> > Hi all, when i tried to run pktgen/testpmd on the container with SR-IO= V >> 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/vf= i >> o0* >> > -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 >> > > >