From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by dpdk.org (Postfix) with ESMTP id 8B2052C45 for ; Fri, 11 Mar 2016 19:55:21 +0100 (CET) Received: by mail-vk0-f51.google.com with SMTP id k1so145187641vkb.0 for ; Fri, 11 Mar 2016 10:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=kjUQvph8HXvHrYopeBrliw7i4nilkoaJzA2g0asGTME=; b=e38UfuaD8rq6Uv3KgDx7qxv6kfCFzPH7v0iTWzVv1s9TwcfSRGHdJHHUMF341ivp3t j8g90JHOAuW+bQAlaXfjx+Np8NbVwY6s1Ya8JUebiJ7ShX9hBQPTXr5Zfp8clNSoA2iX A8QiL1cFi/AHTXtz6RDkNtSWl/o3yhWiwm5YMaEqPiOnBuGCnp74xS7zhuniKavntmWq ep3tVVO/vjCDw6eGYu6IHnR18PSvBzotYSy6sAQnKhbN01Vzep9qC9FTHvc6wKxqO7sN Y9RxWCSzi0PrnR73jDSU8Rjk8g3u9SbyN35ILgMqPvqXI6VMBiqMITWXmqCWezSkr8dg ieBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=kjUQvph8HXvHrYopeBrliw7i4nilkoaJzA2g0asGTME=; b=iCtsK8s2e/U7yyvJQ9MQDVci6tIHK4GB0q3IJfkVbiQrrZSzA2ue+aU2GqzV88oXYu +xEqiz7SzsxdVMXN8jXmiOMMCHwNh83i14xCtg77VbLZ4rU2HI+v3cH/2eomVWVJluU6 AGSldgDLredLye+2wGYtNzKE0+SBooua1EL27wyiocXzNxOyDLQKN3dhc5IY1CrtKX9J 4Nt0yAmPPGdC6rXbgTkm+YvydfYtsnDx+QJNhAu4ynQedXlrNWLlQWZAch+xBhQdAm6K D6SmEHVqyTjWmPyY5d3c7EaCgduVFkM3ei3H90iEGqThMOCRRlSeqDAxd09Ove0FdNih CJ5w== X-Gm-Message-State: AD7BkJKOzAjwK3ma7qcorudzvrMypzNEcipDGB/H1+eZVEk5brSP2oE/ErhyVwT2O85TvQDT+s9oOPO4v9nMgQ== MIME-Version: 1.0 X-Received: by 10.31.167.75 with SMTP id q72mr11949399vke.71.1457722520998; Fri, 11 Mar 2016 10:55:20 -0800 (PST) Received: by 10.159.55.208 with HTTP; Fri, 11 Mar 2016 10:55:20 -0800 (PST) In-Reply-To: <159860913-165f2f798e5b3275d05256ebcfc7e71c@pmq5.m5r2.onet> References: <159860913-165f2f798e5b3275d05256ebcfc7e71c@pmq5.m5r2.onet> Date: Fri, 11 Mar 2016 19:55:20 +0100 Message-ID: From: Harold Demure To: dawid_jurek Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "users@dpdk.org" Subject: Re: [dpdk-users] Minimal dpdk configuration for 2 hosts X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 18:55:22 -0000 Hello Dawid I do not have any snippet of code ready to share and I am not really familiar with running the test applications (I prefer looking at the code). However, you can look at the load balancer example and the packet burst generator (in the test app) from the dpdk package to see how packets are sent over a udp/ip/ethernet stack and received from the NIC to be dispatched through software rings. Hope this helps Harold 2016-03-10 15:59 GMT+01:00 dawid_jurek : > 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=3Dtxonly --port-topology=3Dchai= ned > > On host2 (as reciever): > ./testpmd -c 0x3 -n4 -- -i --forward-mode=3Drxonly --port-topology=3Dchai= ned > > 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=C5=BCytkownik Harold Demure < > harold.demure87@gmail.com> napisa=C5=82: > > 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 on= e > port each and they are able to both send and receive messages. > Regards, > Harold > > 2016-03-04 21:47 GMT+01:00 dawid_jurek : > > 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 > > >