From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by dpdk.org (Postfix) with ESMTP id 0E2392BF3 for ; Fri, 1 Sep 2017 17:25:16 +0200 (CEST) Received: by mail-qk0-f171.google.com with SMTP id o63so2388547qkb.3 for ; Fri, 01 Sep 2017 08:25:16 -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; bh=v1DLi7wltmzqSh1rHQXsSwyEn64JY6ggt9gd3Slx6gM=; b=V/+f1f8xaQaP12nTu/jLL4gdBHdcBFUI5z0E3Y0zvwZMUaGMPcT2CFBo6zYm6zJVv8 JR1GIUP5DZEeSWXfaVegENNAy0wp5sRsOWMaaFo3DcRGwNKjMT9Sy6l/04NBflNOjChe opcyMWsSXSj8Ftmpmi2TitOVZtWg2YL6ECSwu0LVOXlSbLvklcoDvmzpnXv9h/j7+tL5 bWqo6GK4LTy19+F5doQ3kPAEbsd8varIWZeihGVUs9PBCVAAjbr2PY/yNpmxA+51ucEv OAxbgRs0uKz4ms+J1RBx3KhzxYGHK9mTtMJRtgNDPpivysOx4D55ngkwb3N2m2c7SlNF Nshg== 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; bh=v1DLi7wltmzqSh1rHQXsSwyEn64JY6ggt9gd3Slx6gM=; b=q6iyifwvN8i1dVgF5HU2OaH0KlHP+1JPKXu4xsbej7gpgw865IdYjhPEc/Ciyh9/g6 kC+0EuCI/PNIqBPXTz+iy484opHMzlnOhQmIyM2f7wTb8J8itMT+l6FRQoL0G1PJa6ei B1OSbu2O83Akq2zJtuLuWbLg66vecie0sTZx8niobZgD7NkljhH38WeVjalIgFECuRI6 8ivZiCz+ltxqCMWoCgCmrHV/iOxpEt4KY25ZLT/I4q6tKIQJcoEE4ENQoCBQMc616h4X /4EH5BjYxZFTWgZKe0gy6KFFczFhdPkx1lWj5RoIa4xUCkx2svCUhZc6Q//FDsVd59x2 zGxw== X-Gm-Message-State: AHPjjUhoIJc+7qxgD2XimoiwvqmPMdX3EpXVDLBsZhBGzhxI/TTVMm+t Qk0dTHX2GOuf3cvPqOgM/Oh/BoVMDrJ0 X-Google-Smtp-Source: ADKCNb7PGJyPdmt48QitE0vY64xGr7gYM4K/8C/EiUm7J7ClVPLpXbdzeghnFTHWKJiiUEE0bwNEGkp7Mil7LbnF22c= X-Received: by 10.55.58.14 with SMTP id h14mr2967228qka.21.1504279516157; Fri, 01 Sep 2017 08:25:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.84.16 with HTTP; Fri, 1 Sep 2017 08:25:15 -0700 (PDT) In-Reply-To: References: From: Sagar Singha Date: Fri, 1 Sep 2017 20:55:15 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Unable to run l2fwd code 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, 01 Sep 2017 15:25:17 -0000 I have found that it is failing in function "vmxnet3_dev_start()". when its trying to activate the device by writing on BAR1 register and reading from BAR1 register. after that only its failing. VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD, VMXNET3_CMD_ACTIVATE_DEV); ret = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_CMD); /*=====================HERE IT IS FAILING AFTER READING THE REGISTER===========*/ if (ret != 0) { printf("============sagar:Device activation: UNSUCCESSFUL==============`\n"); PMD_INIT_LOG(ERR, "Device activation: UNSUCCESSFUL"); return -EINVAL; } any configuration issue ?? any solution please !!!! On Fri, Sep 1, 2017 at 4:46 PM, Sagar Singha wrote: > Hi, > > I am using VMXNET3 type VM .OS distro=UBUNTU14.04. > My VM is having only one core CPU and 1 GB RAM > > I have followed the below process to configure dpdk after downloading the > source code: > > 1.make config T=x86_64-native-linuxapp-gcc > 2.make > 3.sudo modprobe uio > sudo insmod build/kmod/igb_uio.ko > modprobe vfio > modprobe uio_pci_generic > modprobe vfio-pci > 4.echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages- > 2048kB/nr_hugepages > 5.sudo mkdir /mnt/huge > sudo mount -t hugetlbfs nodev /mnt/huge > 6.echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode > 7../usertools/dpdk_devbind.py --bind=vfio-pci --force ens160 > > > after that I am running the below command for running the l2fwd > > l2fwd c1 n4 --no-huge -- -p1 > > Then the error is like below: > > EAL: Detected 1 lcore(s) > EAL: Probing VFIO support... > EAL: VFIO support initialized > EAL: Started without hugepages support, physical addresses not available > EAL: PCI device 0000:03:00.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 15ad:7b0 net_vmxnet3 > EAL: PCI device 0000:0b:00.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 15ad:7b0 net_vmxnet3 > EAL: using IOMMU type 8 (No-IOMMU) > EAL: Ignore mapping IO port bar(3) addr: 5001 > EAL: PCI device 0000:13:00.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 15ad:7b0 net_vmxnet3 > MAC updating enabled > Notice: odd number of ports in portmask. > Lcore 0: RX port 0 > Initializing port 0... In rte_eth_dev_start > From return diag > EAL: Error - exiting with code: 1 > Cause: rte_eth_dev_start:err=-22, port=0 > > Can any one please help here!! > Thanks i advance !!! > > > -- > Thanks & Regards, > Sagar Singha > Contact:7416733224 > 9475209510 > > > -- Thanks & Regards, Sagar Singha Contact:7416733224 9475209510