From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by dpdk.org (Postfix) with ESMTP id 74FC05F21 for ; Fri, 19 Oct 2018 08:52:48 +0200 (CEST) Received: by mail-vk1-f182.google.com with SMTP id q7so488270vke.10 for ; Thu, 18 Oct 2018 23:52:48 -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=zZlUpeo3ykXRdp7FgAfwkdlukcvzAMnPlTCJUY/ADp0=; b=NVjs0L/DHF4GY5JDhe5+Su4QEf/mPUPv3lHtPDvIPaXJYm0OfYmBeAAB5JQHEZ3DfV 7vYg4aOPKVwK9iNEFgfE88HULURGQFbIuvY4+VR/2LujcfaunVRdt8UVaR369hzDEv4Q j9q6Pbg/+mjqcIJLP4yZ2cQuh4HgJVMod0R9AxRQ759UgNb9xd9Jv+h6S5vdILTHOyBG Z2giVUP0ZtXWPsrmVUhLg8AnGrNmfhJq9S62D7kw5FbFCJbHVp8sloixLlgS3MBOilMJ /chCcLvQQr74hspZLFfQihnHZiCkNzGbZAJmcgFwpdqLVSqETRF4IPBayNwv9avZeO6K B3lg== 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=zZlUpeo3ykXRdp7FgAfwkdlukcvzAMnPlTCJUY/ADp0=; b=FLcMpw4+rjgClvqAsMem7i+6XgE60ABVfdwj+kBMMV8ZD+COkTYR5NGaN+ePkhK/e1 nYaTmefzHAWdYXrtgKu1sEQ+BScfV1rJ4ubYcOVp7/drLc4TOOnOW8zGl5dJApr3/jW9 l6/BlbUi3XxZLKvr6i4ytGt+6xEl8i6efSac3yVzP5k4LFzAkxrActWupZyilHt58Vxk K28a9s+nVaqo3hHxQaPydYXcx+06vqG2RvsJmIRR33P5BZ7US3NfXlOfMTeKazvIygdy GWdK56cS9cXTf+voVpDXVn4cjw0afHk5AGp3jLV/WtZIbHNwqCgPpMDGi05lBDZPFlFV Kx+w== X-Gm-Message-State: ABuFfoifOGMktHTZBintbIbjyrJ6niNOrN0jgN0U17LBmN3wHIsv2ya5 ag0pFKLP4Ox0AwrlRKNibWST1HLlWVCDaN8sfck= X-Google-Smtp-Source: ACcGV61LfrmBMXTgpobOMPgtj0uUJMEGm1LXfwHh/TaLzhQZSafm9GO1XT8u5KQlOoxy07BIDX5RWxy0ayPFSYj1fDo= X-Received: by 2002:a1f:2910:: with SMTP id p16mr12469804vkp.69.1539931967715; Thu, 18 Oct 2018 23:52:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kushal Gautam Date: Fri, 19 Oct 2018 08:54:24 +0200 Message-ID: To: Rami Rosen 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: Fri, 19 Oct 2018 06:52:49 -0000 Hi Rami, Thank you again. That's what confused me. Regards, Kushal. On Fri, Oct 19, 2018, 01:36 Rami Rosen wrote: > Hi Kushal, > 0x3 is a bitmask of ports. It is represented in binary as 0011. This mean= s > that ports 0 and port 1should be used by the DPDK application that you us= e. > If you want to use other ports in your application, you should use a > different portmask. For example, to use port 0 and port 3, you need a por= t > mask of 1001 in binary, which is 0x9 in hex. > > Regards, > Rami Rosen > > > =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=95=D7=B3, 19 = =D7=91=D7=90=D7=95=D7=A7=D7=B3 2018, 00:17, =D7=9E=D7=90=D7=AA Kushal Gauta= m =E2=80=8F< > kushal.gautam@gmail.com>: > >> 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 y= ou >>> 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, 1= 8 =D7=91=D7=90=D7=95=D7=A7=D7=B3 2018, 17:24, =D7=9E=D7=90=D7=AA Kushal Gau= tam =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=3Dig= b >>>> unused=3Digb_uio *Active* >>>> 0000:01:00.1 'I350 Gigabit Network Connection 1521' if=3Deno2 drv=3Dig= b >>>> unused=3Digb_uio >>>> 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=3Dens1f= 0 >>>> drv=3Di40e unused=3Digb_uio *Active* >>>> 0000:81:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=3Dens1f= 1 >>>> 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. >>>> >>>