From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from SNT004-OMC1S25.hotmail.com (snt004-omc1s25.hotmail.com [65.55.90.36]) by dpdk.org (Postfix) with ESMTP id B76B52C4F for ; Wed, 28 Dec 2016 06:38:47 +0100 (CET) Received: from APC01-HK2-obe.outbound.protection.outlook.com ([65.55.90.7]) by SNT004-OMC1S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 27 Dec 2016 21:38:46 -0800 Received: from SG2APC01FT047.eop-APC01.prod.protection.outlook.com (10.152.250.60) by SG2APC01HT088.eop-APC01.prod.protection.outlook.com (10.152.250.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.10; Wed, 28 Dec 2016 05:38:43 +0000 Received: from PS1PR02MB1595.apcprd02.prod.outlook.com (10.152.250.59) by SG2APC01FT047.mail.protection.outlook.com (10.152.251.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.10 via Frontend Transport; Wed, 28 Dec 2016 05:38:43 +0000 Received: from PS1PR02MB1595.apcprd02.prod.outlook.com ([10.167.48.25]) by PS1PR02MB1595.apcprd02.prod.outlook.com ([10.167.48.25]) with mapi id 15.01.0789.018; Wed, 28 Dec 2016 05:38:43 +0000 From: April Teodoro To: "dev@dpdk.org" Thread-Topic: Packet is not being sent Thread-Index: AQHSYMxANKrGXnxSyUi33UuM+hTTDqEc141b Date: Wed, 28 Dec 2016 05:38:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-PH, en-US Content-Language: en-PH X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=hotmail.ph; x-incomingtopheadermarker: OriginalChecksum:CD8278E5864B4448F7B73053994E378F06217C5F3045F54FE1735295B77A3EF4; UpperCasedChecksum:443FF4B20671B774FF7DCE7D921FC093FDC1C4A49351510279C3A5AA92FE183C; SizeAsReceived:7318; Count:39 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [qFRBIbwvqJf6MovHX6C4giNJ+V7wHCyz] x-incomingheadercount: 39 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; SG2APC01HT088; 7:hsjOKVLDN3fRhASQ3KtyTU8prgT6echOEqGvGSlD8Kj3/A29KOnvDGBxhEl7mGhHgVHihrw2us6Vw1nmiQhZ01HDV8VcikkxBracHmSt0HqMNwW4c5aUOfcf1nwMKhjPIUOBi0JTM3Kzm7FATfxulQ66vqS83mFLwgVKWJNCuEwkcLRhs4BJlOVSEZoBsOYUMxQDh81Y/cN2R6AsbokxhpJwW+2/7BY8AQQceYFbflxoC/pDF/5i/vNTgPncIqV/jhBmxICcGjawadqWcHJC1d9C2egDsBkaPpYmiDGJi8lIwBe55zkLThX9n62PbC/wpVHFCLfF/YG6Rr000Hv5qfck9LX9X+jYdjdyI77U+OkldzmMhOM2l62K2Xiq+wKwZ5WQHmEplpu+AGPMiawImx5LWGFF6r7f0eS7YsoZhhvyYnzsDZLAF10LaEZ58C6uTCDJHkj8NY5Wk4Glz/p+0Q== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2APC01HT088; H:PS1PR02MB1595.apcprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 710c7975-cbdb-4dbb-6fe2-08d42ee3c94e x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(1603103113)(1603101340)(1601125047); SRVR:SG2APC01HT088; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:SG2APC01HT088; BCL:0; PCL:0; RULEID:; SRVR:SG2APC01HT088; x-forefront-prvs: 0170DAF08C spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2016 05:38:43.5306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT088 X-OriginalArrivalTime: 28 Dec 2016 05:38:47.0193 (UTC) FILETIME=[A8FD4090:01D260CC] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Fw: Packet is not being sent X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 05:38:48 -0000 ________________________________ From: April Teodoro Sent: Wednesday, December 28, 2016 1:36 PM To: dev@dpdk.org Subject: Packet is not being sent i, I am wondering what is causing the packet to be dropped. Please help me. The mempool was created and retrieved via lookup The port and queues have been verified to be correct. However, according to stats, no packet is transmitted, although rte_eth_tx_= burst returns 1. I also do not receive anything on the connected machine. 532 if(mem =3D=3D NULL) 533 { 534 LOG <<"No mem"; 535 } 536 else{ 537 LOG << "has mem"; 538 } 539 540 rte_mbuf *mbufs =3D rte_pktmbuf_alloc(mem); 541 if(NULL =3D=3D mbufs) 542 { 543 LOG << "ALLOCATION failed"; 544 } 545 else 546 { 547 LOG << "ALLOCATION successful"; 548 } 549 550 uint8_t* messageToSend =3D NULL; 551 LOG << "SENDRAW 2"; 552 ether_addr addr; 553 rte_eth_macaddr_get(port, &addr); 554 LOG << "start port 2: " << rte_eth_dev_start(2); 569 ether_addr_copy(&addr, &hdr->s_addr); 570 hdr->ether_type =3D rte_cpu_to_be_16(0x9998); 571 mbufs->pkt_len =3D mbufs->data_len =3D 8; 572 573 messageToSend =3D (uint8_t*)&hdr[2]; 574 575 for(auto i=3D0u; i < sendmsg.header.msgSize; ++i) { 576 messageToSend[i] =3D sendmsg.data[i]; 577 } 578 579 LOG << "SENDRAW " << sendmsg.header.msgSize; 580 mbufs->pkt_len =3D sendmsg.header.msgSize; 581 LOG << "SENDRAW 5"; 582 LOG << "SENDRAW 6"; 583 rte_mbuf *mbufArray[] =3D {mbufs}; 584 rte_pktmbuf_refcnt_update(mbufs, 1); 585 LOG << "SENDRAW 7"; 586 //uint16_t nbPk =3D rte_eth_tx_burst(2, 0, mbufArray, 1); 587 uint32_t sent =3D 0; 588 struct rte_eth_dev_info dev_info; 589 struct rte_eth_stats stats; 590 LOG << "stats successful? " << rte_eth_stats_get(2, &stats); 591 rte_eth_dev_info_get(2, &dev_info); 592 LOG << "dev info: " << (dev_info.pci_dev->addr.bus); 593 while (1) { 594 sent =3D rte_eth_tx_burst(2, 0, mbufArray, 1); 595 if (sent > 0) { 596 LOG << "opackets: " << stats.opackets; 597 LOG << "obytes: " << stats.obytes; 598 LOG << "oerrors: " << stats.oerrors; 599 LOG << "packets transmitted " << sent; 600 return; 601 } 602 } 603 604 605 }