From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0077.outbound.protection.outlook.com [207.46.100.77]) by dpdk.org (Postfix) with ESMTP id 2105428FD for ; Wed, 6 Apr 2016 23:21:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studentuml.onmicrosoft.com; s=selector1-student-uml-edu; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AACr+10cdm4xHkFgKLEF49yFj0GA3jwHbC0LSu4ewe8=; b=rNzgoslZy2Wio4Ux2x1PFE4MK31JMdN8YmPBMek4Fx0y6isZkyAooQz18iENwjMJ4hkBohJuwQ0/cDU1B7zsJV8DEUagN9IpHI2+dbAkHyEKfS6VJzRJQIiRY0iolgBLd5Xa/pnRsQHeSza4MXADBF43PAvMiyF/oqvG18O16+M= Received: from BLUPR02MB439.namprd02.prod.outlook.com (10.141.81.20) by BLUPR02MB439.namprd02.prod.outlook.com (10.141.81.20) with Microsoft SMTP Server (TLS) id 15.1.447.15; Wed, 6 Apr 2016 21:21:04 +0000 Received: from BLUPR02MB439.namprd02.prod.outlook.com ([10.141.81.20]) by BLUPR02MB439.namprd02.prod.outlook.com ([10.141.81.20]) with mapi id 15.01.0447.028; Wed, 6 Apr 2016 21:21:04 +0000 From: "Talukdar, Biju" To: "Singh, Jasvinder" , users Thread-Topic: problem running ip pipeline application Thread-Index: AQHRj5yVBfb1XFGsT0mpdZvI+6Lsnp98ntDwgADQhhM= Date: Wed, 6 Apr 2016 21:21:03 +0000 Message-ID: References: , <54CBAA185211B4429112C315DA58FF6DDED8FD@IRSMSX103.ger.corp.intel.com> In-Reply-To: <54CBAA185211B4429112C315DA58FF6DDED8FD@IRSMSX103.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=student.uml.edu; x-originating-ip: [132.245.17.53] x-ms-office365-filtering-correlation-id: 66769545-69a5-4223-0a30-08d35e615c39 x-microsoft-exchange-diagnostics: 1; BLUPR02MB439; 5:jssAMh0dxgzsic6r9CCuO0+fgRT8gb/uxyr0pVOnygRQgqZv2NfXuCVL4N8DnnL6M+3uBTrYhVL5K3C7bTF6Yk2lbUDmIWUQukGwHN5szMBsWuu7Ha0jCqjFJWxUeuvk6r1xxkInltt6/lPKbT6o2Q==; 24:18hDbtU2QY8lHS5BN1RPXSr+NCXQ6PH4zb2ngW67zg0mkWBtSD4HgefzZDjcBkVw0GLd3mAKW28DYeK465XRDy32+UjPSwabh0MDSpXzlbE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB439; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR02MB439; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB439; x-forefront-prvs: 0904004ECB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(377454003)(13464003)(45984002)(81166005)(5004730100002)(54356999)(19580395003)(99286002)(107886002)(575784001)(76576001)(189998001)(19580405001)(10400500002)(5008740100001)(75432002)(11100500001)(92566002)(551544002)(87936001)(5003600100002)(122556002)(33656002)(3660700001)(3900700001)(2900100001)(89122001)(76176999)(6116002)(66066001)(5002640100001)(77096005)(102836003)(3846002)(5001770100001)(50986999)(586003)(106116001)(1096002)(74316001)(86362001)(3280700002)(2906002)(88552002)(1220700001)(2950100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB439; H:BLUPR02MB439.namprd02.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: student.uml.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Apr 2016 21:21:04.0011 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4c25b8a6-17f7-46f9-83f0-54734ab81fb1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB439 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: Wed, 06 Apr 2016 21:21:08 -0000 Hi Jasvinder, Thank you very much . That worked fine. I am trying to change the source co= de of pass-through pipeline.=20 I believe the statement *port_out =3D port_in / p->n_ports_in ; in the function "in pipeline_passthrough_track(...)" is passing through the= packets from input port to the output port.My goal is to extract each pack= et's source ip and destination ip to apply my hash function and save the ha= sh value into a array. I did the following : l2fwd_pktmbuf_pool =3D rte_mempool_create("mbuf_pool", NB_MBUF, MBUF_SIZE, = 32, sizeof(struct rte_pktmbuf_pool_private), rte_pktmbuf_pool_init, NULL, rte_pktmbuf_init, NULL, rte_socket_id(), 0); if (l2fwd_pktmbuf_pool =3D=3D NULL) rte_exit(EXIT_FAILURE, "Cannot init mbuf pool\n"); total_nb_rx =3D rte_eth_rx_burst((uint8_t) port_in, 0, pkts_burst, MAX_PKT_BURST); before the statement=20 *port_out =3D port_in / p->n_ports_in ; I know that this is wrong. The program is not even passing through there. I= put a printf and I could not see the print. Now my question is could you please give some pointer where I should copy t= he packets( or just extract the src ip/dst ip ) before forwarding. I am rea= lly getting lost looking at the manual. Please help !! Thanks a ton=20 ________________________________________ From: Singh, Jasvinder Sent: Wednesday, April 6, 2016 5:22 AM To: Talukdar, Biju; users Subject: RE: problem running ip pipeline application Hi, > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Talukdar, Biju > Sent: Wednesday, April 6, 2016 1:43 AM > To: users > Cc: Talukdar, Biju > Subject: [dpdk-users] problem running ip pipeline application > > Hi , > > > I am getting the following error when trying to run dpdk ip pipeline > example.Could someone please tell me what went wrong. > > > system configuration: > > dpdk 2.2.0 > > ubuntu 14.04 > > > network driver: > > /dpdk-2.2.0$ ./tools/dpdk_nic_bind.py --status > > Network devices using DPDK-compatible driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_u= io > unused=3D > > Network devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=3Deth3 > drv=3Dixgbe unused=3Digb_uio > 0000:05:00.0 'I350 Gigabit Network Connection' if=3Deth0 drv=3Digb > unused=3Digb_uio *Active* > 0000:05:00.1 'I350 Gigabit Network Connection' if=3Deth2 drv=3Digb > unused=3Digb_uio > > Other network devices > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:03:00.0 'Device 15ad' unused=3Digb_uio > 0000:03:00.1 'Device 15ad' unused=3Digb_uio uml@uml:~/dpdk-2.2.0$ > ./tools/dpdk_nic_bind.py --status > > Network devices using DPDK-compatible driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_u= io > unused=3D > > Network devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=3Deth3 > drv=3Dixgbe unused=3Digb_uio > 0000:05:00.0 'I350 Gigabit Network Connection' if=3Deth0 drv=3Digb > unused=3Digb_uio *Active* > 0000:05:00.1 'I350 Gigabit Network Connection' if=3Deth2 drv=3Digb > unused=3Digb_uio > > Other network devices > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:03:00.0 'Device 15ad' unused=3Digb_uio > 0000:03:00.1 'Device 15ad' unused=3Digb_uio uml@uml:~/dpdk-2.2.0$ > > > Here is the dump --------> > > > > ~/dpdk-2.2.0/examples/ip_pipeline/ip_pipeline/x86_64-native-linuxapp- > gcc/app$ sudo -E ./ip_pipeline -f /home/uml/dpdk- > 2.2.0/examples/ip_pipeline/config/l2fwd.cfg -p 0x01 [sudo] password for > uml: > [APP] Initializing CPU core map ... > [APP] CPU core mask =3D 0x0000000000000003 [APP] Initializing EAL ... > EAL: Detected lcore 0 as core 0 on socket 0 > EAL: Detected lcore 1 as core 1 on socket 0 > EAL: Detected lcore 2 as core 2 on socket 0 > EAL: Detected lcore 3 as core 3 on socket 0 > EAL: Detected lcore 4 as core 4 on socket 0 > EAL: Detected lcore 5 as core 5 on socket 0 > EAL: Detected lcore 6 as core 6 on socket 0 > EAL: Detected lcore 7 as core 7 on socket 0 > EAL: Detected lcore 8 as core 0 on socket 0 > EAL: Detected lcore 9 as core 1 on socket 0 > EAL: Detected lcore 10 as core 2 on socket 0 > EAL: Detected lcore 11 as core 3 on socket 0 > EAL: Detected lcore 12 as core 4 on socket 0 > EAL: Detected lcore 13 as core 5 on socket 0 > EAL: Detected lcore 14 as core 6 on socket 0 > EAL: Detected lcore 15 as core 7 on socket 0 > EAL: Support maximum 128 logical core(s) by configuration. > EAL: Detected 16 lcore(s) > EAL: VFIO modules not all loaded, skip VFIO support... > EAL: Setting up physically contiguous memory... > EAL: Ask a virtual area of 0x40000000 bytes > EAL: Virtual area found at 0x7f24c0000000 (size =3D 0x40000000) > EAL: Requesting 1 pages of size 1024MB from socket 0 > EAL: TSC frequency is ~1999998 KHz > EAL: Master lcore 0 is ready (tid=3Dbc483940;cpuset=3D[0]) > EAL: lcore 1 is ready (tid=3Dbad86700;cpuset=3D[1]) > EAL: PCI device 0000:03:00.0 on NUMA socket 0 > EAL: probe driver: 8086:15ad rte_ixgbe_pmd > EAL: Not managed by a supported kernel driver, skipped > EAL: PCI device 0000:03:00.1 on NUMA socket 0 > EAL: probe driver: 8086:15ad rte_ixgbe_pmd > EAL: Not managed by a supported kernel driver, skipped > EAL: PCI device 0000:04:00.0 on NUMA socket 0 > EAL: probe driver: 8086:10fb rte_ixgbe_pmd > EAL: PCI memory mapped at 0x7f2500000000 > EAL: PCI memory mapped at 0x7f2500080000 > PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 5 > PMD: eth_ixgbe_dev_init(): port 0 vendorID=3D0x8086 deviceID=3D0x10fb > EAL: PCI device 0000:04:00.1 on NUMA socket 0 > EAL: probe driver: 8086:10fb rte_ixgbe_pmd > EAL: Not managed by a supported kernel driver, skipped > EAL: PCI device 0000:05:00.0 on NUMA socket 0 > EAL: probe driver: 8086:1521 rte_igb_pmd > EAL: Not managed by a supported kernel driver, skipped > EAL: PCI device 0000:05:00.1 on NUMA socket 0 > EAL: probe driver: 8086:1521 rte_igb_pmd > EAL: Not managed by a supported kernel driver, skipped > [APP] Initializing MEMPOOL0 ... > [APP] Initializing LINK0 (0) (1 RXQ, 1 TXQ) ... > PMD: ixgbe_dev_rx_queue_setup(): sw_ring=3D0x7f24fb128340 > sw_sc_ring=3D0x7f24fb127e00 hw_ring=3D0x7f24fb128880 > dma_addr=3D0xffb128880 > PMD: ixgbe_dev_tx_queue_setup(): sw_ring=3D0x7f24fb115c40 > hw_ring=3D0x7f24fb117c80 dma_addr=3D0xffb117c80 > PMD: ixgbe_set_tx_function(): Using simple tx code path > PMD: ixgbe_set_tx_function(): Vector tx enabled. > PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burs= t > size no less than 4 (port=3D0). > [APP] LINK0 (0) (10 Gbps) UP > [APP] Initializing MSGQ-REQ-PIPELINE0 ... > [APP] Initializing MSGQ-RSP-PIPELINE0 ... > [APP] Initializing MSGQ-REQ-CORE-s0c0 ... > [APP] Initializing MSGQ-RSP-CORE-s0c0 ... > [APP] Initializing MSGQ-REQ-PIPELINE1 ... > [APP] Initializing MSGQ-RSP-PIPELINE1 ... > [APP] Initializing MSGQ-REQ-CORE-s0c1 ... > [APP] Initializing MSGQ-RSP-CORE-s0c1 ... > [APP] Initializing PIPELINE0 ... > pipeline> [APP] Initializing PIPELINE1 ... > Cannot find LINK1 for RXQ1.0 Seems like you are having less ports than specified in l2fwd.cfg. In order = to run ip_pipeline with l2fwd.cfg configuration file, 4 ports are required.= So , you can either change configuration file and remove 3 extra ports (R= XQ1.0, RXQ2.0, RXQ3.0 and TXQ1.0, TXQ2.0, TXQ3.0) or bind 3 more ports to = dpdk and use the default l2fwd.cfg straightaway. Jasvinder