DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] CMake configuration
@ 2017-05-11  0:22 Rob Zimmerman
  2017-05-11  5:55 ` [dpdk-users] Tx/Rx using single ethernet port Dharmesh Mehta
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Zimmerman @ 2017-05-11  0:22 UTC (permalink / raw)
  To: users

Has anybody tried setting up a CMake environment for their DPDK-based
application? The only example I saw was on Github and is from 2 years ago,
thus irrelevant. Given the complexity of the existing DPDK build scripts I
figured it was worth reaching out to the list before starting to whip up my
own from scratch.

Cheers,
Rob

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-users] Tx/Rx using single ethernet port.
  2017-05-11  0:22 [dpdk-users] CMake configuration Rob Zimmerman
@ 2017-05-11  5:55 ` Dharmesh Mehta
       [not found]   ` <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Dharmesh Mehta @ 2017-05-11  5:55 UTC (permalink / raw)
  To: users

Hello,
I am new to DPDK world, and looking for any working example  to do tx/rx on single ethernet port. Also please include what arguments are required in order to run.
Is it possible to run multiple instance of same application? I wrote one app, which sens data (verified on wireshark),  but when i try to run second instance of same app, my first instance of same app  stop sending data. I am passing different name using --file-prefix to the both instances app. Any help is really appreciated.
ThxD.
From keith.wiles@intel.com  Thu May 11 16:39:24 2017
Return-Path: <keith.wiles@intel.com>
Received: from mga05.intel.com (mga05.intel.com [192.55.52.43])
 by dpdk.org (Postfix) with ESMTP id 7A56BDE0
 for <users@dpdk.org>; Thu, 11 May 2017 16:39:24 +0200 (CEST)
Received: from fmsmga003.fm.intel.com ([10.253.24.29])
 by fmsmga105.fm.intel.com with ESMTP; 11 May 2017 07:39:23 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.38,324,1491289200"; d="scan'208";a="855585856"
Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203])
 by FMSMGA003.fm.intel.com with ESMTP; 11 May 2017 07:39:23 -0700
Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by
 FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Thu, 11 May 2017 07:39:23 -0700
Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.235]) by
 FMSMSX151.amr.corp.intel.com ([169.254.7.149]) with mapi id 14.03.0319.002;
 Thu, 11 May 2017 07:39:16 -0700
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Dharmesh Mehta <mehtadharmesh@yahoo.com>
CC: "users@dpdk.org" <users@dpdk.org>
Thread-Topic: [dpdk-users] Tx/Rx using single ethernet port.
Thread-Index: AQHSyhtPaagmyHWDvUe6KNmBth6kJqHvqdoA
Date: Thu, 11 May 2017 14:39:15 +0000
Message-ID: <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
References: <CAG0K5qu32UtEbabThzWuOXCPk4vmjYvXUT7nddiGYSQf9FwEwA@mail.gmail.com>
 <1341883971.7036816.1494482150825@mail.yahoo.com>
In-Reply-To: <1341883971.7036816.1494482150825@mail.yahoo.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.254.184.241]
Content-Type: text/plain; charset="utf-8"
Content-ID: <78A87E4CD3F53B429DA195F032881ED8@intel.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [dpdk-users] Tx/Rx using single ethernet port.
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 11 May 2017 14:39:25 -0000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G8gJHtjbWR9ICR7ZHBka19vcHRzfSAke2JsYWNrX2xpc3R9IC0tICR7cGt0Z2Vu
X29wdHN9ICR7cG9ydF9tYXB9ICR7bG9hZF9maWxlfQ0KDQoNClJlZ2FyZHMsDQpLZWl0aA0KDQo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] Tx/Rx using single ethernet port.
       [not found]   ` <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
@ 2017-05-12  0:52     ` Dharmesh Mehta
  0 siblings, 0 replies; 3+ messages in thread
From: Dharmesh Mehta @ 2017-05-12  0:52 UTC (permalink / raw)
  To: Wiles, Keith; +Cc: users

Hello Keith,
Thank you so much, As per your suggestion- now i can run multiple instance of same application. Issue was, I was not doing black list of unused ports.
Once again, thanks for your help.
Regards,D.



      From: "Wiles, Keith" <keith.wiles@intel.com>
 To: Dharmesh Mehta <mehtadharmesh@yahoo.com> 
Cc: "users@dpdk.org" <users@dpdk.org>
 Sent: Thursday, May 11, 2017 7:39 AM
 Subject: Re: [dpdk-users] Tx/Rx using single ethernet port.
   

> On May 11, 2017, at 12:55 AM, Dharmesh Mehta <mehtadharmesh@yahoo.com> wrote:
> 
> Hello,
> I am new to DPDK world, and looking for any working example  to do tx/rx on single ethernet port. Also please include what arguments are required in order to run.
> Is it possible to run multiple instance of same application? I wrote one app, which sens data (verified on wireshark),  but when i try to run second instance of same app, my first instance of same app  stop sending data. I am passing different name using --file-prefix to the both instances app. Any help is really appreciated.
> ThxD.

Running two instance or more you have to split up the resources like lcores, ports, memory and the file-prefix. Make sure you have enough memory setup to run two instances. If your app needs 32 huge pages then make sure you have 64 huge pages allocated. Set the —file-prefix different for each instance. Make sure you use the -m <memSize> or —socket-mem options to limit the amount of memory each instance consumes. Make sure you blacklist/whitelist the ports correctly to give a port(s) to each instance. Then make sure you use different cores for each instance.

In Pktgen I have two scripts I use to run two instances. Here are the scripts called pktgen-master.sh and pktgen-slave.sh

pktgen-master.sh
————————
dpdk_opts="-l 8-16 -n 4 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg1"
pktgen_opts="-T -P"
port_map="-m [9:10].0 -m [11:12].1 -m [13:14].2 -m [15:16].3"
bl_common="-b 05:00.0 -b 05:00.1 -b 82:00.0 -b 83:00.0"
black_list="${bl_common} -b 81:00.0 -b 81:00.1 -b 81:00.2 -b 81:00.3"
load_file="-f themes/black-yellow.theme"

echo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
sudo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}


pktgen-slave.sh
———————
dpdk_opts="-l 18-26 -n 4 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg2"
pktgen_opts="-T -P"
port_map="-m [19:20].0 -m [21:22].1 -m [23:24].2 -m [25:26].3"
bl_common="-b 05:00.0 -b 05:00.1 -b 82:00.0 -b 83:00.0"
black_list="${bl_common} -b 04:00.0 -b 04:00.1 -b 04:00.2 -b 04:00.3"
load_file="-f themes/black-yellow.theme"

echo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
sudo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}


Regards,
Keith



   
From andrey.chilikin@intel.com  Fri May 12 14:52:26 2017
Return-Path: <andrey.chilikin@intel.com>
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
 by dpdk.org (Postfix) with ESMTP id 777D6282
 for <users@dpdk.org>; Fri, 12 May 2017 14:52:25 +0200 (CEST)
Received: from orsmga004.jf.intel.com ([10.7.209.38])
 by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 12 May 2017 05:52:24 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.38,329,1491289200"; d="scan'208";a="86770091"
Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25])
 by orsmga004.jf.intel.com with ESMTP; 12 May 2017 05:52:23 -0700
Received: from irsmsx106.ger.corp.intel.com ([169.254.8.202]) by
 irsmsx110.ger.corp.intel.com ([169.254.15.151]) with mapi id 14.03.0319.002;
 Fri, 12 May 2017 13:52:22 +0100
From: "Chilikin, Andrey" <andrey.chilikin@intel.com>
To: suryanathan p <suryanathan.p@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Thread-Topic: [dpdk-users] RSS for non IP protocols
Thread-Index: AQHSxRFK8K83mt1fwEKIHm9grJulD6HwsJeg
Date: Fri, 12 May 2017 12:52:22 +0000
Message-ID: <AAC06825A3B29643AF5372F5E0DDF053646980DE@IRSMSX106.ger.corp.intel.com>
References: <CAK7-UXoXp6KG5AMvH0LHXEuokza=krkzr0EzTz08x1Vs=K3xGA@mail.gmail.com>
In-Reply-To: <CAK7-UXoXp6KG5AMvH0LHXEuokza=krkzr0EzTz08x1Vs=K3xGA@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmU5MDRhYTEtMDFkOC00YjcwLWJmZjYtNDAwZDVjYzA4ODkyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IktIY2xqWnhnblNpYmRrTys3Q0xobk92TUNCcWJsRm1GUmxRekVMM1c0Zzg9In0x-ctpclassification: CTP_IC
dlp-product: dlpe-windows
dlp-version: 10.0.102.7
dlp-reaction: no-action
x-originating-ip: [163.33.239.181]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [dpdk-users] RSS for non IP protocols
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 12 May 2017 12:52:26 -0000

SGksDQoNCkZvciBYNzEwIGRlZmF1bHQgaW5wdXQgc2V0IGZvciBFVEhfUlNTX0wyX1BBWUxPQUQg
Zmxvd3MgaW5jbHVkZXMgb25seSBFdGhlcnR5cGUgaXRzZWxmLiBIYXZlIGEgbG9vayBhdCAiIDcu
MS4yIFBhY2tldCB0eXBlcyBhbmQgaW5wdXQgc2V0IiBvZiB0aGUgbGF0ZXN0IFg3MTAgZGF0YXNo
ZWV0Lg0KWW91IGNhbiBjaGFuZ2UgaXQgYnkgY29uZmlndXJpbmcgbmV3IGlucHV0IHNldCB0byBp
bmNsdWRlIDggd29yZHMgKFJURV9FVEhfSU5QVVRfU0VUX0ZMRVhfUEFZTE9BRF8xU1RfV09SRCB0
byBSVEVfRVRIX0lOUFVUX1NFVF9GTEVYX1BBWUxPQURfOFRIX1dPUkQpIG9mIEwyIHBheWxvYWQg
dXNpbmcgInN0cnVjdCBydGVfZXRoX2hhc2hfZmlsdGVyX2luZm8gaW5mbyIgYW5kIHRoZW4gY2Fs
bGluZyBydGVfZXRoX2Rldl9maWx0ZXJfY3RybChwb3J0aWQsIFJURV9FVEhfRklMVEVSX0hBU0gs
IFJURV9FVEhfRklMVEVSX1NFVCwgJmluZm8pOw0KDQovQW5kcmV5DQoNCi0tLS0tT3JpZ2luYWwg
TWVzc2FnZS0tLS0tDQpGcm9tOiB1c2VycyBbbWFpbHRvOnVzZXJzLWJvdW5jZXNAZHBkay5vcmdd
IE9uIEJlaGFsZiBPZiBzdXJ5YW5hdGhhbiBwDQpTZW50OiBUaHVyc2RheSwgTWF5IDQsIDIwMTcg
OTowMSBQTQ0KVG86IHVzZXJzQGRwZGsub3JnDQpTdWJqZWN0OiBbZHBkay11c2Vyc10gUlNTIGZv
ciBub24gSVAgcHJvdG9jb2xzDQoNCkhpLA0KDQpJcyB0aGVyZSBhIHdheSB3ZSBjYW4gZW5hYmxl
IFJTUyBmb3Igbm9uIElQIHByb3RvY29scz8gQnkgZGlzYWJsaW5nIFJTUywgYWxsIHRoZSBwYWNr
ZXRzIGFyZSBxdWV1ZWQgdG8gcnggcXVldWUgMC4gSSB0cmllZCB0aGUgRVRIX1JTU19MMl9QQVlM
T0FEIG9wdGlvbiBhbmQgdGhhdCBkb24ndCBzZWVtIHRvIGhlbHAgb24gZWl0aGVyIHRoZSA4MjU5
OSBvciB0aGUgWDcxMCBjb250cm9sbGVycy4NCg0KUmVnYXJkcywNClN1cnlhbmF0aGFuIFANCg=

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-12  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11  0:22 [dpdk-users] CMake configuration Rob Zimmerman
2017-05-11  5:55 ` [dpdk-users] Tx/Rx using single ethernet port Dharmesh Mehta
     [not found]   ` <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
2017-05-12  0:52     ` Dharmesh Mehta

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).