DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] story of rte_memset()
@ 2018-07-24 10:49 Sivakiran Kodali
  0 siblings, 0 replies; only message in thread
From: Sivakiran Kodali @ 2018-07-24 10:49 UTC (permalink / raw)
  To: users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8; format=flowed, Size: 11702 bytes --]

Hello All,

Ive seen a couple of patches saying rte_memset() improves performance when compared against 
libc's memset(). But i dont see any rte_memset() code in the 17.11 tar ball. Did the patch went in ?
Or is it just rte_memcpy() that is available ?


Thanks
Sivakiran K
From kandy_pal@yahoo.com  Wed Jul 25 00:07:28 2018
Return-Path: <kandy_pal@yahoo.com>
Received: from sonic301-32.consmr.mail.ne1.yahoo.com
 (sonic301-32.consmr.mail.ne1.yahoo.com [66.163.184.201])
 by dpdk.org (Postfix) with ESMTP id AF948239
 for <users@dpdk.org>; Wed, 25 Jul 2018 00:07:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t\x1532470047; bh=MP6FhtT2JcDL5krIJtXEaK6FTdbQHG5Xin+vpsiIriI=;
 hÚte:From:To:In-Reply-To:References:Subject:From:Subject;
 b=LZuRER90AxMPbJUL7hOqLdF6wXCjTW0naxAVJCie3/YPghCGqSDIbusMRI1niJKjqa+Tgl9/3m2uVpLmiBURUN/9HdDiSq7FSUIk9j59SIxSR1BeGfHSi4ViQJkHhnDg3xkBj+YKM5+Y0tJ/3cM9ECyNNqNRM/3cg47m03LpuNuTig3PbaWJbFwTy4GZgQ+kioCOKd8OpbyBoDYuHP6iIEREX6hivfkITEaPQsnkmQtHV1VJ7BrgXsZwkLaErqxITpnVkIsMs5YmBVKFNHW3D1OfCGyPL6Y3BUZPv5rPgnrQaITHKW735qoFJmtQXXLeczm1qrNeF5WMqs0O93Fxhg=X-YMail-OSG: 9bNzsycVM1kRiMSccQqiwTIyhYlm3lIZPpyHoeZMQS7pl_jjbbQ90fZJeEF1rSq
 rI9U0z0XgGUvV60cJgnoQQpfCg9_JLKd10Talh3QG136EoPTe3Z4SwT896Riq7Qmz7q7Rjv1fqIt
 kiFwahFTWALzXWVG.DtzzGVV_e8BICXCp5RjvyN71yOH58HVAx2KtRdpKSJqPIdmVwks0L3PAjXc
 adK1w0UcWHcqiODIKCL_1ieWGun_OgpryYm152rYph_f9U1ZhSHrieXfuggvzsbaIvsTurWUyVHG
 z4o8vXBACFVKgv4K3YFP6C0pfImT4Re6zWYaq7TTVtkThSU9qNS6llrjFqItzy5k5YTJ_8Fso.bm
 5iErYneJKCHKDEDuVbvPAZUme4a7WsjK3uPeunEf5e99ZFWt1VCSHngw04qEeggSp7cl1s5jGyaT
 l8DTqRxuKNVfZ9k7JC1jTaTmvzkHEFQ3fU8HaRfOY0CLgd8ooVcuLpItJXtDjgfEqv4Z8QdnsFhT
 s9CEjukiFBa1i8wsHXW4Kex_.OSrS1p0nIlE.FPWTtCjF52b3oiu9251lzuFdugLBU7iZgrpzjKr
 9C24Nx4EF4vJ0JuSIMsyrWgHp.QUMay128a6Z3P.GebjtTX.z6jr08hu22FKa1GMFGT2NlckHPtV
 QyCNQ7BdzxzIlW4bwUAH_X9NrY8lI0rX7GQ30HtPQxpWch4Fc5NWUuFpiD52hnqaXck0zl.lo_DS
 D4vxbW4SMhd9SlRbOpR8gYLE2kUUo9G56Yg2gUNNjT3yOLVdXlvxzMVXR3EqsU9xIX6hlIQCqhsq
 Ta0SAoCC2SQyIr2I2_DfJtL5vC3y9q5PZrpClCbqOBrgg37eH5x0OOPif_Jv_yX2SXYhpvF096He
 efdwM3hcXt7qH7r539ZfrgxNW5i16Rr5mLit.uuVS8e3twMjavEkKTGaX1X.wBhsyral2xdMJiLa
 45OQLc6V0KzwDJJrhXhw6kW0qkdFJhyvTParv
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 24 Jul 2018 22:07:27 +0000
Date: Tue, 24 Jul 2018 22:07:25 +0000 (UTC)
From: Kandy Palanisamy <kandy_pal@yahoo.com>
To: "users@dpdk.org" <users@dpdk.org>, "Rosen, Rami" <rami.rosen@intel.com>
Message-ID: <31270285.1835622.1532470045443@mail.yahoo.com>
In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F967336B0A@HASMSX110.ger.corp.intel.com>
References: <441815769.67094.1532038944327.ref@mail.yahoo.com>
 <441815769.67094.1532038944327@mail.yahoo.com>
 <9B0331B6EBBD0E4684FBFAEDA55776F967336B0A@HASMSX110.ger.corp.intel.com>
MIME-Version: 1.0
X-Mailer: WebService/1.1.12144 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64;
 x64; rv:61.0) Gecko/20100101 Firefox/61.0
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] TestPMD: Unable to create TAP interface
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Jul 2018 22:07:28 -0000

 Hello Rami,
Thanks for your suggestion.
The /dev/net/tun device is automatically created, if I just insmod the kernel module 'tun' (I had not done that; that was the cause of the failure). After that, the testpmd command to create tuntap is successful.
Kandy

    On Monday, July 23, 2018, 12:38:36 PM PDT, Rosen, Rami <rami.rosen@intel.com> wrote:  
 
 Hi Kandy,
What is the output of 
ls -al /dev/net/tun 
on that host ? 
if it is empty, can you please try:

mkdir /dev/net (if it doesn't exist already)
mknod /dev/net/tun c 10 200

and then launch the same command you used for starting testpmd ? 

See:
https://www.kernel.org/doc/Documentation/networking/tuntap.txt

Regards,
Rami Rosen

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of Kandy Palanisamy
Sent: Friday, July 20, 2018 01:22
To: users@dpdk.org
Subject: [dpdk-users] TestPMD: Unable to create TAP interface

Hi,
I tried to create a tap device using TestPMD as follows:
     testpmd -l 0-3 -n 4 --vdev=net_tap0 -- -i But, I get the error:
PMD: Initializing pmd_tap for net_tap0 as dtap0
PMD: Unable to create TAP interface
PMD: dtap0: tun_alloc() failed.

Appreciate if someone could help what I am missing.
Here is the complete log, and list of modules loaded and the ixgbe interface bound to dpdk.=====================================================================
root@intel-corei7-64:/tmp# /usr/bin/testpmd -l 0-3 -n 4 --vdev=net_tap0 -- -i
EAL: Detected 16 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix
EAL: Probing VFIO support...
EAL: NUMA support not available consider that all memory is in socket_id 0
EAL: PCI device igb_uio 0000:04:00.0: uio device registered with irq 50
0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:15ac net_ixgbe
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL:   probe driver: 8086:15ac net_ixgbe
EAL: PCI device 0000:0a:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1533 net_e1000_igb
PMD: Initializing pmd_tap for net_tap0 as dtap0
PMD: Unable to create TAP interface
PMD: dtap0: tun_alloc() failed.
PMD: TAP Unable to initialize net_tap0
vdev_probe(): failed to initialize net_tap0 device

EAL: Bus (vdev) probe failed.
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.

Configuring Port 0 (socket 0)
Port 0: 00:13:95:2B:DC:7E
Checking link statuses...
Done
testpmd> 

root@intel-corei7-64:/tmp# lsmod
Module                  Size  Used by
rte_kni                20480  0
igb_uio                16384  0
uio                    16384  1 igb_uio
8021q                  24576  0
nfc                    69632  0
bnep                   20480  2
intel_rapl             20480  0
igb                   167936  0
ixgbe                 249856  0
mei_me                 28672  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
mei                    61440  1 mei_me
mdio                   16384  1 ixgbe
coretemp               16384  0
root@intel-corei7-64:/tmp#
root@intel-corei7-64:/tmp#
root@intel-corei7-64:/tmp# dpdk-devbind --status

Network devices using DPDK-compatible driver ============================================
0000:04:00.0 'Ethernet Connection X552 10 GbE SFP+ 15ac' drv=igb_uio unused=ixgbe

Network devices using kernel driver
===================================
0000:04:00.1 'Ethernet Connection X552 10 GbE SFP+ 15ac' if=eth2 drv=ixgbe unused=igb_uio
0000:0a:00.0 'I210 Gigabit Network Connection 1533' if=eth0 drv=igb unused=igb_uio *Active*

::Thanks for your help,Kandy
  
From ubndra@gmail.com  Wed Jul 25 01:25:24 2018
Return-Path: <ubndra@gmail.com>
Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com
 [209.85.208.170]) by dpdk.org (Postfix) with ESMTP id 4770B98
 for <users@dpdk.org>; Wed, 25 Jul 2018 01:25:24 +0200 (CEST)
Received: by mail-lj1-f170.google.com with SMTP id q5-v6so5039315ljh.12
 for <users@dpdk.org>; Tue, 24 Jul 2018 16:25:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s 161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=bKqWsTl77XjGlyv4/Zjy5mLeX1dwRGDYdHA+qmeFDHk=;
 b=mVLm2Y4cLMCEXaYiuF2wVrussP+gNLuZJu/TzYhj/x7XZ9FGcAZD6VD1owM/swEqmk
 8Ressgw4DRNHbFsWssgkleGXQAcCs7oUXvSQYcOggt3x3JglUXLf9dvpPywYBIzu49Qm
 DU/7y9yIkrXQi8h1Gx13EDBRNpzqEoHe1LykpRgIHc1w9eJpx2oDpOhaT2//NKNSQv+b
 AF+VHspIo/XjFAZvzWPMveZPibFZwOx8dsIM+7RmPDvSeycM2wCkzQBacbcSf36rLBIO
 3vaP0CXqCkRs1vQk+SF4GrpAh7cmP4pXdFbGxcFNd0qSknPfEU5XhSq7inSjSYOr0K0E
 zeXA=X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d\x1e100.net; s 161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=bKqWsTl77XjGlyv4/Zjy5mLeX1dwRGDYdHA+qmeFDHk=;
 b=jVRNJ1mPWmmps+5GahrYrXo8mVU57Xye4F5I/gxkYdDhQ6jJ+23eLAuj6Z9OOArW8Q
 USND75jOyQFTdo81LFyGSfEnhQ3YpVY7XAUIw0mF2tsLCC+nfowzw7H/EZdVv38YWz7C
 q+tpLlADwKsfA9UMzb7AF2v9rqiew9/Cz/Kg/czwfK3yAxINpf7fLvruGP7ny1yA//wY
 XPOTVwyeu2F1cBqIPjwN0GICOhFW3YLS53tUTPk5SaY9ba2YxCwmFMlRyF/oDKMTICpo
 IByjq7TDKpl5jQ05F9TgE5Z0yn+DMndE8tOmqKCgRv/6UP+GG6m/ik3rXrbVpSLDCPPv
 hDAA=X-Gm-Message-State: AOUpUlFu6fUyLyAIen1KXKMpX/WXUOQFDGqHorB/0p85GLNLSeA2/2FK
 vC/MGOXdQuAdNim9VCz8nLbucxZGZyXRSF+L8dB8OaDkRKgv8Q=X-Google-Smtp-Source: AAOMgpfP0LxtHsJWRbU7Yzuo+p0v8E2cDzcSmlZYiel2XVDtQuiN9k86mGb5gPMkz5eT/tr4G2f2Oe0mR/aT09KjAW0X-Received: by 2002:a2e:9bc9:: with SMTP id
 w9-v6mr13054918ljj.33.1532474723732;
 Tue, 24 Jul 2018 16:25:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a2e:302:0:0:0:0:0 with HTTP;
 Tue, 24 Jul 2018 16:25:23 -0700 (PDT)
From: Uditha Bandara <ubndra@gmail.com>
Date: Wed, 25 Jul 2018 09:25:23 +1000
Message-ID: <CALPy68MSyyprzOcmOZM9OKMCKDOMveMSO7z5yPyj3aiBOwC=+w@mail.gmail.com>
To: users@dpdk.org
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-users] pktgen run.py error: NameError: name 'false' is not
	defined
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Jul 2018 23:25:24 -0000

Hi,

I'm trying to install Pktgen on a system running Linux Mint 18.1 Serena.
I followed the steps given in:

http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html

When I executed "./tools/run.py -s default" I am getting the following
error.

uditha@udithapc ~/sandbox/pktgen/pktgen-dpdk $ ./tools/run.py -s default
>>> sdk '/home/uditha/sandbox/pktgen/dpdk', target
'x86_64-native-linuxapp-gcc'
Traceback (most recent call last):
  File "./tools/run.py", line 361, in <module>
    main()
  File "./tools/run.py", line 358, in main
    setup_cfg(cfg_file)
  File "./tools/run.py", line 219, in setup_cfg
    cfg = load_cfg(cfg_file)
  File "./tools/run.py", line 119, in load_cfg
    cfg = imp.load_source('cfg', '', f)
  File "", line 1, in <module>

NameError: name 'false' is not defined

I have tried cleaning up the files and a re-install but getting the same
error. Does any of the config files needed to be edited before this step?

Thanks in advance!

Regards,
Uditha

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-24 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 10:49 [dpdk-users] story of rte_memset() Sivakiran Kodali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).