From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by dpdk.org (Postfix) with ESMTP id 90C0D1B150 for ; Thu, 18 Oct 2018 19:34:57 +0200 (CEST) Received: by mail-ot1-f54.google.com with SMTP id v2so23445329otk.1 for ; Thu, 18 Oct 2018 10:34:57 -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=6e40ueblGW2SxHwr0zFvX72e04FG/D5jPGk61oxEeCY=; b=SYuHHrhIckvYh/Pw4q0QlQ3pMZYYWvi7fn3Dyh84txnD0GD7ZCtW8SkRbkg65BKKCR DUSc94nA3y92kJiJwf5/NxjDbpPU/caDb1MFHlIKdfjOznIeoGSEOydnRpycuyaJhs+U 5kDYz3SVgd+6uQ9Wi+6kh+lPylOuX9qmUihWrI9mo9hF31e3j3nnyOl1JGbKi0s9L/6e JgePQoprfIUAJ5pJEJVpeWSgl9qcX4DcMEGV/GaUSwII+TFGKMwxJJRc1WAcLid5YsUf fN0WdOQdQsEZd3PSri+c8XCD0Tad69brocneTXkP1g9WbTq6M7nXF8hA/hWJ4cRzpCeP 0nrQ== 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=6e40ueblGW2SxHwr0zFvX72e04FG/D5jPGk61oxEeCY=; b=nfsa61PGvHVrE49lg3JFJt4ZIXoztlMq7Ge+k8nDpA/D0oecODTYmHM6qpmHxF+mub TUUxjsoIHMPMZEOYwpa6QWgCTiyYXT6At+trLBb5NosbotZTv2KZa5axpJCHEVeTpyuq YEsWuS+9U/Xo4pH/wPChoRWilHOrL4nkceFbcmWra5G4CqAIMsKBv6tPVtq1tasVbMbz 289Bika4PLNeCIvUxf3j8zvzY+k8Dr1IIVUGyimg7CUrI2UeBn7Q3JBRWEn/uq36TLq9 Lcoritp1VeI87k5xwx7xsvllcz1lMfmXGAYrZflhgbyMmkw9ny9042OhuTsV7K8+MDeV Aomg== X-Gm-Message-State: ABuFfohNhgQ74y/LErVskQptJ+JBtG3U2ZAEIbYzlGxmHmsMa00FunBG iq3zAmy1jwRyzy0pLmxruubzOeRi3GUfYi6iWLw= X-Google-Smtp-Source: ACcGV628Jw14S2u2UIKLYoqIvjO8GjKsZitP6+1KuS9Nsj5F1QSkTXRJ0TfXt44vIrni4FJ+5IouG2PRj2DnOO8QFKU= X-Received: by 2002:a9d:44ca:: with SMTP id p10mr19053693otg.291.1539884096740; Thu, 18 Oct 2018 10:34:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rami Rosen Date: Thu, 18 Oct 2018 20:34:45 +0300 Message-ID: To: Kushal Gautam 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 17:34:57 -0000 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 versi= on > 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. >