From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) by dpdk.org (Postfix) with ESMTP id 4857F5F0F for ; Thu, 18 Oct 2018 23:17:44 +0200 (CEST) Received: by mail-vs1-f52.google.com with SMTP id r83so24022333vsc.4 for ; Thu, 18 Oct 2018 14:17:44 -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=GGN3AgtkrHIxFpBY8f4yWDGj0BuK7c4/FUFz3jNBNLA=; b=cf4xGNUukCAQVrk6dun2BhVBIec5EMYMUQwRrZX/v7t41DtzkQj05d8SR2nosBj6IR NDdfhIbRHUvP+Gh8pn0r9ZsRTKgdWHl6eu3vrTf4S5CLTJ+yH6WfI+EF1NVuModz1dHW E55RIhBgUzmRpYTc/KbKDSkgLgaL0gLMJlH51SsPK75IHm6vz1r5CEAJL/OY8T+BGogj ROMwCjce0PVUWBArh9rt/rpoOGuobPzAiO4cjL6lPsCwjAgLAWYfHS0w4PnLLCh249TQ N6xXx7ud7T6kpaqI+6sA0X6wLaoRl6B2YzS7p4aQto91bHCkDRZYKQNmyDAhrXhSdrY7 xmcQ== 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=GGN3AgtkrHIxFpBY8f4yWDGj0BuK7c4/FUFz3jNBNLA=; b=Z3S6osif0aUhiZLI4aWqMjY2zIt/G5/zdz/6WJhowp9VSOoejA+R5amNsBwSylDj5G 6wGxhNL3pqfbU3EmsN1eKqYvYNI5z+IozI7OQjHkCLyEqd91tVmfdg8ZUTDfC2z961TG 3EOA1ucC15YfNKDPDBq+e/dAiDVL7+5Q9aYTkQs7a6jWYepQb2FSFSKr3WwNSWrqX52k JU5m8snMkbH5SCrNV6xgVhh8B6Zq7QzsNzmslV7nE1+d1f3TxYH5v4btcGSz9CY10sJI PAqEyy78W5ivz4BQOeLGj9gH6V/abn+qPFKUn0mDdgC8Qjw1ClB2Z0Qoz2Rv8Yn1Oxig BPsQ== X-Gm-Message-State: ABuFfojqdk/9AJLSsg5Oznpa1AiFuMurcQBySqXOD7PVEOjWUFcnqjl0 y59d1wiKfuE4Md96mnHblatYc8ywKPaD38n5xb4= X-Google-Smtp-Source: ACcGV62FaLzV3gh0KIP2L86I4MkT4pdqlQkhPn3iO6QwxkeywAbq45tMVAcd5KRX9iZ8oV/SaD0DixKW2l+Ej6C0U0s= X-Received: by 2002:a67:d91d:: with SMTP id t29mr11855409vsj.26.1539897463519; Thu, 18 Oct 2018 14:17:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kushal Gautam Date: Thu, 18 Oct 2018 23:17:32 +0200 Message-ID: To: roszenrami@gmail.com 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] using the basic l2fwd app 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: Thu, 18 Oct 2018 21:17:44 -0000 Hi Rami: thank you for your inputs. Indeed, I had syntactic issues, and also, restarting the machine did the trick. One thing that I was not clear is about "portmask". For instance, in the docs, we can find "./l2fwd -n 1 -c f -- -q 8 -p 0x3". What exactly the value "0x3" refers to? Regards, Kushal. On Thu, Oct 18, 2018 at 7:34 PM Rami Rosen wrote: > Hi Kushal, > The output of dpdk-devbind -- status that you posted shows that there are > no ports that are bound to dpdk. This is the reason for the error you get= . > You should try > insmod igb_uio.ko > ( this kernel module is generated in the build process of DPDK) > > And > dpdk-devbind.py -b igb_uio 0000:81:00.0 > > And likewise to the other port, 0000:81:00.1 > And the launch the l2fwd app. > > > You can also use vfio-pci or uio_pci_generic for binding the device to > DPDK, look in the docs. > > Regards, > Rami Rosen > > > > =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=94=D7=B3, 18 = =D7=91=D7=90=D7=95=D7=A7=D7=B3 2018, 17:24, =D7=9E=D7=90=D7=AA Kushal Gauta= m =E2=80=8F< > kushal.gautam@gmail.com>: > >> Hi: >> >> I am new to DPDK and my current use case with DPDK is minimal. Thus, I >> think the l2fwd type of sample application should suffice. >> >> Below is a portion of the output of `dpdk-devbind.py --status` command >> My DPDK version is 18.08, and I am using Ubuntu 16.04 (Linux Kernel >> version >> 4.15.12) >> >> Network devices using kernel driver >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 0000:01:00.0 'I350 Gigabit Network Connection 1521' if=3Deno1 drv=3Digb >> unused=3Digb_uio *Active* >> 0000:01:00.1 'I350 Gigabit Network Connection 1521' if=3Deno2 drv=3Digb >> unused=3Digb_uio >> 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=3Dens1f0 >> drv=3Di40e unused=3Digb_uio *Active* >> 0000:81:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=3Dens1f1 >> drv=3Di40e unused=3Digb_uio *Active* >> >> I am connecting to this machine via 0000:01:00.0 >> >> My requirement is to be able to send packets from 0000:81:00.0 to >> 0000:81:00.1 and get some measurements like tx and rx times. >> >> I tried to run the sample app as (as shown in docs): >> >> ./l2fwd -n 1 -c f -- -q 8 -p 0x3 >> >> I have an error like this: >> >> EAL: Detected 16 lcore(s) >> EAL: Detected 2 NUMA nodes >> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket >> EAL: No free hugepages reported in hugepages-1048576kB >> EAL: No free hugepages reported in hugepages-1048576kB >> EAL: No free hugepages reported in hugepages-1048576kB >> EAL: Probing VFIO support... >> EAL: PCI device 0000:01:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:1521 net_e1000_igb >> EAL: PCI device 0000:01:00.1 on NUMA socket 0 >> EAL: probe driver: 8086:1521 net_e1000_igb >> EAL: PCI device 0000:81:00.0 on NUMA socket 1 >> EAL: probe driver: 8086:1572 net_i40e >> EAL: PCI device 0000:81:00.1 on NUMA socket 1 >> EAL: probe driver: 8086:1572 net_i40e >> MAC updating enabled >> EAL: Error - exiting with code: 1 >> Cause: No Ethernet ports - bye >> >> I did not understand the usage of port mask in this context. >> >> Some inputs on this would be very helpful. >> >> Regards, >> Kushal. >> >