From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f171.google.com (mail-qc0-f171.google.com [209.85.216.171]) by dpdk.org (Postfix) with ESMTP id 0A0614BBC for ; Sun, 13 Apr 2014 08:07:15 +0200 (CEST) Received: by mail-qc0-f171.google.com with SMTP id c9so7594253qcz.2 for ; Sat, 12 Apr 2014 23:08:53 -0700 (PDT) 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:content-type; bh=TiDpKayt3hPlPTyHmlx5FS0FKcRWUlrjmGPOSM/1ZlQ=; b=x6HzHbPGXOBXoBaLhRwn6E52YlOPGXr1fKyqEoXTVtymapfi7Eof5RgQsMstV0NXWk 7JiioDsYCQ2p7dLMXBEOkH0JykdUk4F3n0Byd3ISI0z2U6bCkxB4ZCCKP8kaQT6uT8iG EMbQUak7Xd4qv2Rz21YDJy6TTP1UzeiIwR/wOW4TisxWUX6q+HffTlYhE0rgbSNUu/+q JcyNrh2uw41M6qcyO1JQw92pXEv6KKww9ZDpIDiaeN2wXQ96UJlSJKNpxVdx1S9gS0ZP KyqsPa5H7WJA+gUxf2Zq6amahRooRMupyQnQMm6DlrhUwg8PUD+/zT10yQnr6VehDK4P BJHQ== MIME-Version: 1.0 X-Received: by 10.224.20.72 with SMTP id e8mr244241qab.86.1397369332885; Sat, 12 Apr 2014 23:08:52 -0700 (PDT) Received: by 10.96.223.202 with HTTP; Sat, 12 Apr 2014 23:08:52 -0700 (PDT) In-Reply-To: <65072E01-9F4F-4C35-A173-2299B5C6CE0D@gmail.com> References: <1861179.6WnqIWz1vA@xps13> <65072E01-9F4F-4C35-A173-2299B5C6CE0D@gmail.com> Date: Sun, 13 Apr 2014 11:38:52 +0530 Message-ID: From: sabu kurian To: Chae-yong Chong Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 06:07:16 -0000 Hai Chae-yong Chong, Thanks on the reply. But I'm nor actually forwarding packets. I'm crafting my own packets in mbuf's (74 byte packets all) and sending it using ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool,burst_size); When burst_size is 1, it does work. Work in the sense the NIC will continue with sending packets, at a little over 50 percent of the link rate. For 1000 Mbps link rate .....The observed transmit rate of the NIC is 580 Mbps (using Intel DPDK). When the NIC sends out some hundred thousand packets , billions are getting dropped as well. I don't care about the billions getting dropped, but it should be possible to achieve at least 900 Mbps transmit rate with Intel DPDK and I350 on 1 Gbps link. Could someone help me out on this ? Thanks and regards On Sun, Apr 13, 2014 at 10:44 AM, Chae-yong Chong wrote: > I think if you just forward the packets there should be no tx failure. If > you instruct the core to send the packet in burst, the tx rate is higher > than 10Gbps as the core is too powerful. > > --- > Sent from Boxer | http://getboxer.com > On April 11, 2014 at 7:16:47 PM GMT+9, sabu kurian > wrote: > > To add to my previous mail..... > > only upto 544 packets are actually sent... then it fails > > > On Fri, Apr 11, 2014 at 3:34 PM, sabu kurian wrote: > > > Hi Friends, > > > > Thanks for the reply. > > > > This is the portion of the code where the I350 fails to send packet: > > > > for(;;){ > > > > ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool, > > burst_size); > > > > if (unlikely(ret < burst_size)) { > > for(j=ret;j<(burst_size-ret);j++) > > { > > rte_pktmbuf_free(m_pool[j]); > > } > > } > > else > > { > > > > lcore_stats[lcore_id].tx += (uint64_t)burst_size; > > } > > > > } > > > > all of the m_pool were allocated using > > > > for(j=0;j> { > > > m_pool[j] = rte_pktmbuf_alloc(pktmbuf_pool); > > > > } > > > > > > > > > > On Fri, Apr 11, 2014 at 1:26 PM, Thomas Monjalon < > > thomas.monjalon@6wind.com> wrote: > > > >> Hi, > >> > >> 2014-04-11 11:29, sabu kurian: > >> > Even after installing all the required igb drivers for I350 (the > device > >> > seems to work perfect on the host machine), am unable to transmit > >> packets > >> > using the same device (on Intel DPDK) using > >> > >> Please follow this documentation to setup your environment and do some > >> basic > >> tests with testpmd: > >> http://dpdk.org/doc/quick-start > >> > >> -- > >> Thomas > >> > > > > > >