From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BE06C2C08 for ; Wed, 6 Apr 2016 18:00:33 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 06 Apr 2016 09:00:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,447,1455004800"; d="scan'208";a="926789646" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga001.jf.intel.com with ESMTP; 06 Apr 2016 09:00:31 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.239]) by IRSMSX151.ger.corp.intel.com ([169.254.4.72]) with mapi id 14.03.0248.002; Wed, 6 Apr 2016 17:00:30 +0100 From: "Singh, Jasvinder" To: "Talukdar, Biju" , users Thread-Topic: Need help with dpdk ip pipelining Thread-Index: AQHRjsH2MAIYBEx11ke0Ul7sPovsl597CbOggACp6g+AAVZQ8A== Date: Wed, 6 Apr 2016 16:00:29 +0000 Message-ID: <54CBAA185211B4429112C315DA58FF6DDEDD30@IRSMSX103.ger.corp.intel.com> References: , <54CBAA185211B4429112C315DA58FF6DDEBFFC@IRSMSX103.ger.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDEwZDg2NzAtMzRlYi00ZmU5LWFjMWQtMWQyNjk1MTk2MDdhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS45LjYuNiIsIlRydXN0ZWRMYWJlbEhhc2giOiJteUtrNjNJZHo0d0VzK0puYXFhRlZuNjNBcE54d3Ewb29tZWczcElLdW9rPSJ9 x-ctpclassification: CTP_PUBLIC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Need help with dpdk ip pipelining 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: Wed, 06 Apr 2016 16:00:34 -0000 Hi Biju, > -----Original Message----- > From: Talukdar, Biju [mailto:Biju_Talukdar@student.uml.edu] > Sent: Tuesday, April 5, 2016 8:12 PM > To: Singh, Jasvinder ; users > Subject: Re: Need help with dpdk ip pipelining >=20 > Hi Jasvinder, >=20 > Thank you very much for the quick reply. I have gone through load balanci= ng > application. > One question I have is, the application output is given to the NIC ports= (for > e.g. NIC TX0, NIC TX1, NIC TX2 etc.). But my aim is to steer the output = of the > application to a VM. Could you please tell me how can I achieve this. Or = as a > matter of fact is there any generic way to hand the output of the applica= tion > to any other usersapce process. >=20 > Thanks a ton >=20 Not sure about exact approach. You could look at ivshmem library that allow= s zero-copy data sharing form host to guest or guest-to-guest if it suits t= o your scenario. http://dpdk.org/doc/guides/prog_guide/ivshmem_lib.html There is a sample app (l2fwd-ivshmem) Illustrating the use of ivhsmem libra= ry for transferring packets between host and guest. =20 > ________________________________________ > From: Singh, Jasvinder > Sent: Tuesday, April 5, 2016 5:04 AM > To: Talukdar, Biju; users > Subject: RE: Need help with dpdk ip pipelining >=20 > HI Biju, >=20 > > -----Original Message----- > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Talukdar, > > Biju > > Sent: Monday, April 4, 2016 11:33 PM > > To: users > > Cc: Talukdar, Biju > > Subject: [dpdk-users] Need help with dpdk ip pipelining > > > > Hi all, > > > > > > I have two questions. Could someone in the community please help. I > > really look forward to some guidance in these direction. > > > > > > First,I have a application which implements a measurement sketch. > > I want to accelerate it with using dpdk ip pipelining application. But > > as I read through the guide in dpdk.org, I realized that it has hard > > pipelines for say Rx-> flow classification - > ip routing -> traffic > > manager -> Tx. Could anyone please explain me how could I integrate my > > application in one of the pipeline. Is it even possible. Please help. >=20 > What do you mean by hard pipelines? IP Pipeline application consists of > reusable modules (pipeline blocks) which implement data plane > functionalities such as flow classification, routing, firewall etc. Thes= e modules > are implemented using dpdk packet framework libraries (librte_port/table, > librte_pipeline). In configuration file, depending upon the application, = we > specify various parameters of the pipeline modules such as ports (in/out)= , > tables, core affinity, and their connectivity with each other as you can = see . > You can pick any pipeline module if it exists to build your application o= r you > can implement any specific pipeline in a way existing pipeline modules ha= ve > been implemented. > Please see sample configuration files such as l2fwd.cfg, l3fwd.cfg > (dpdk/examples/ip_pipeline/config) to get more idea on ip pipeline > application. Some other configuration files illustrate the use of various > pipeline modules towards building edge router upstream /downstream > packet processing workload. >=20 > > Second, I want to use a dpdk application which can schedule > > packets to different VMs depending upon the src ip (or some logic, > > which is programmable).Is there any dpdk application available which I > > can use and modify in some way to use for the purpose. I have used > > OVS-DPDK for this purpose before. But here I am looking for a lightwei= ght > dpdk application. > > Another condition need to be made is once I schedule and direct a > > packet to a VM, it should be steered through usersapce only. Any > > pointers in this direction will be very helpful. >=20 > Please see load balancer sample application if it suits to your scenario. >=20 > > keep hacking > > > > Biju