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 E4FAE2B96 for ; Fri, 15 Apr 2016 10:48:40 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 15 Apr 2016 01:48:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,486,1455004800"; d="scan'208";a="945733623" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga001.fm.intel.com with ESMTP; 15 Apr 2016 01:48:38 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.12]) by IRSMSX107.ger.corp.intel.com ([169.254.10.228]) with mapi id 14.03.0248.002; Fri, 15 Apr 2016 09:48:38 +0100 From: "Singh, Jasvinder" To: "Talukdar, Biju" , users Thread-Topic: problem running ip pipeline application Thread-Index: AQHRj5yVBfb1XFGsT0mpdZvI+6Lsnp98ntDwgADQhhOAACZqyoAC8gbwgAaIuHOAA7ZHIA== Date: Fri, 15 Apr 2016 08:48:37 +0000 Message-ID: <54CBAA185211B4429112C315DA58FF6DE0B339@IRSMSX103.ger.corp.intel.com> References: , <54CBAA185211B4429112C315DA58FF6DDED8FD@IRSMSX103.ger.corp.intel.com>, , <54CBAA185211B4429112C315DA58FF6DE0632A@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjlmMjkyZTctMmFiYi00YWU5LThlM2QtZDc5Yzc4YmU3YjZiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjVxVzU3bDdkeGtwcm1tRStyaXVhemJQT1F6R1JMdlZrZ0tcL29vbjlOcjVvPSJ9 x-ctpclassification: CTP_IC 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] problem running ip pipeline application 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, 15 Apr 2016 08:48:41 -0000 Hi Biju, > -----Original Message----- > From: Talukdar, Biju [mailto:Biju_Talukdar@student.uml.edu] > Sent: Wednesday, April 13, 2016 1:04 AM > To: Singh, Jasvinder ; users > Subject: Re: problem running ip pipeline application >=20 > Hi Jasvinder, > Thanks a lot for your guidance. >=20 > I could see the prints that the pipeline initialization is complete. I ga= ve prints > in the function pipeline_passthrough_init(). And I could see the prints. = But I > get no prints from the function pkt_work(). This function process all the > packets. PKT_WORK macro uses pkt_work() function. Again PKT_WORK is > used by port_in_ah macro. I am showing the code snippets from > passthrough pipeline. >=20 > #define port_in_ah(dma_size, hash_enabled) \ > PKT_WORK(dma_size, hash_enabled) \ > PKT4_WORK(dma_size, hash_enabled) \ > PIPELINE_PORT_IN_AH(port_in_ah_size##dma_size##_hash##hash_enable > d,\ > pkt_work_size##dma_size##_hash##hash_enabled, \ > pkt4_work_size##dma_size##_hash##hash_enabled) >=20 >=20 > Now, port_in_ah is called like as show below: >=20 > port_in_ah(8, 0) > port_in_ah(8, 1) > port_in_ah(16, 0) > port_in_ah(16, 1) > port_in_ah(24, 0) > port_in_ah(24, 1) > port_in_ah(32, 0) > port_in_ah(32, 1) > port_in_ah(40, 0) > port_in_ah(40, 1) > port_in_ah(48, 0) > port_in_ah(48, 1) > port_in_ah(56, 0) > port_in_ah(56, 1) > port_in_ah(64, 0) > port_in_ah(64, 1) >=20 > So eventually pkt_work() should get called by the above calls. But why I = am > not getting any prints from pkt_work(). I have no clue why I am not getti= ng > any test prints. Why the program execuion is not reaching up to those > printfs. > Do you think that I am not even getting any packets and thats why > pkt_work() is not get called at all. In that scenario, where I should loo= k in? > Remember I am just trying the sample example application. There is no cod= e > change there apart from my prints. Logically it should work. >=20 The routine pkt_work() is invoked to process one packet at a time and, in c= ase, when continuous packets are sent, pkt4_work() comes into play which pr= ocesses packets in bulk (4 packets at a time) for the performance reason. T= herefore, try sending one packet to the pipeline and see if printf() (intro= duced in pkt_work()) works or insert printf() in pkt4_work() as well. Thanks, Jasvinder