From: dawid_jurek <dawid_jurek@vp.pl>
To: Harold Demure <harold.demure87@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Minimal dpdk configuration for 2 hosts
Date: Thu, 10 Mar 2016 15:59:50 +0100 [thread overview]
Message-ID: <159860913-165f2f798e5b3275d05256ebcfc7e71c@pmq5.m5r2.onet> (raw)
Hello Harold,
I did investigation and one directional forwarding through 2 hosts connected by one port NIC each is possible indeed.
Testpmd with following command line arguments can do that:
On host1 (as sender):
./testpmd -c 0x3 -n4 -- -i --forward-mode=txonly --port-topology=chained
On host2 (as reciever):
./testpmd -c 0x3 -n4 -- -i --forward-mode=rxonly --port-topology=chained
Anyway still I don't how to run two directional communication. Harold, could you provide commands/command line options for this?
Also It seems that 2 port NIC on every host is required to run basicfwd, rxtx_callbacks and other examples
(dpdk gives me print that number of ports must be even).
Regards,
Dawid
W dniu 2016-03-06 10:30:51 użytkownik Harold Demure <harold.demure87@gmail.com> napisał:
Hello Dawid,
I am no expert but a single port should be able to take care of both TX and RX queues. For example, I am currently running two hosts with only one port each and they are able to both send and receive messages.
Regards,
Harold
2016-03-04 21:47 GMT+01:00 dawid_jurek <dawid_jurek@vp.pl>:
Hello,
I wonder what is the minimal configuration (in sense on number of NIC ports) to run basic dpdk examples like
basicfwd, rxtx_callbacks or forwarding by testpmd for 2 hosts connected directly by Ethernet.
Is it possible to perform one directional transmission for some kind of sender-reciever scenario (2 hosts, every host with one port)?
It seems that for every kind of transmission between 2 machines I need at least 4 ports
(because every port may take care of TX or RX but not both of them at the same time).
Is it correct?
Regards,
Dawid
From Simon.Jouet@glasgow.ac.uk Thu Mar 10 17:36:35 2016
Return-Path: <Simon.Jouet@glasgow.ac.uk>
Received: from plockton.cent.gla.ac.uk (plockton.cent.gla.ac.uk
[130.209.16.75]) by dpdk.org (Postfix) with ESMTP id AF4CA2E81
for <users@dpdk.org>; Thu, 10 Mar 2016 17:36:35 +0100 (CET)
Received: from cas06.campus.gla.ac.uk ([130.209.14.39])
by plockton.cent.gla.ac.uk with esmtp (Exim 4.72)
(envelope-from <Simon.Jouet@glasgow.ac.uk>) id 1ae3Zj-00014f-Hb
for users@dpdk.org; Thu, 10 Mar 2016 16:36:35 +0000
Received: from CMS08-01.campus.gla.ac.uk ([169.254.1.211]) by
CAS06.campus.gla.ac.uk ([130.209.14.39]) with mapi id 14.03.0279.002; Thu, 10
Mar 2016 16:36:35 +0000
From: Simon Jouet <Simon.Jouet@glasgow.ac.uk>
To: "users@dpdk.org" <users@dpdk.org>
Thread-Topic: L2fwd very slow throughput
Thread-Index: AdF66wHM5iT08bzlTk+DNFHq2Vz5dw=Date: Thu, 10 Mar 2016 16:36:33 +0000
Message-ID: <8379404C2611CB4BB6D4166627C18EA916BAE8D9@CMS08-01.campus.gla.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-users] L2fwd very slow throughput
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: 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, 10 Mar 2016 16:36:35 -0000
SGkgZXZlcnlvbmUsDQoNCkkgd2VudCB0aHJvdWdoIHByZXZpb3VzIG1lc3NhZ2VzIG9uIHRoZSBt
YWlsaW5nIGxpc3QgdG8gbG9vayBmb3IgcGVvcGxlIHdpdGggYSBzaW1pbGFyIGlzc3VlLCBldmVu
IHRob3VnaCBJIGZvdW5kIH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AzDQoNCkkgdHJpZWQg
dG8gdXNlIHRlc3RwbWQgaW4gaW9md2QgYW5kIG1hY2Z3ZCBtb2RlIHdpdGggdGhlIGRlZmF1bHQg
Y29uZmlndXJhdGlvbiBhbmQgd2l0aCBleGFjdGx5IHRoZSBzYW1lIHRlc3QgSSByZWFjaCB0aGUg
MTBHYml0L3Mgd2l0aG91dCBwcm9ibGVtIGhvd2V2ZXIgd2l0aCB0aGUgbDJmd2QsIGwzZndkIHRo
ZSBwZXJmb3JtYW5jZXMgYXJlIHNsb3cgYXMgZGVzY3JpYmVkIGFib3ZlLiBJIHRyaWVkIHRvIGNo
YW5nZSB0aGUgcnggYnVmZmVyIHNpemUgaW4gdGhlIGwyZndkIGV4YW1wbGUgZnJvbSAzMiB0byA2
NCBidXQgdGhlIHJlc3VsdCBpcyB0aGUgc2FtZS4NCg0KRmluYWxseSBJIHRyaWVkIHRoZSBuZXRt
YXBfY29tcGF0IGJyaWRnZSBhbmQgdGhlIHJlc3VsdCBpcyBoYWxmIHRoZSBzcGVlZCBvZiBsMmZ3
ZA0KDQogICAgICAgbWF4aW1hbCByYXRlIGZvciBwYWNrZXRzaXplIDY0OiAwLjc1IE1wcHMsIDM4
Mi4yNiBNQml0L3MsIDUwMS43MSBNQml0L3Mgd2lyZSByYXRlDQoNCkFtIEkgbWlzc2luZyBzb21l
dGhpbmcgb2J2aW91cz8NCg0KQmVzdCByZWdhcmRzLA0KU2ltb24NCg0K
next reply other threads:[~2016-03-10 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 14:59 dawid_jurek [this message]
2016-03-11 18:55 ` Harold Demure
-- strict thread matches above, loose matches on Subject: below --
2016-03-04 20:47 dawid_jurek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=159860913-165f2f798e5b3275d05256ebcfc7e71c@pmq5.m5r2.onet \
--to=dawid_jurek@vp.pl \
--cc=harold.demure87@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).