From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <sabu2kurian@gmail.com>
Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com
 [209.85.216.173]) by dpdk.org (Postfix) with ESMTP id 889B668CF
 for <dev@dpdk.org>; Fri, 11 Apr 2014 12:02:28 +0200 (CEST)
Received: by mail-qc0-f173.google.com with SMTP id r5so5566052qcx.4
 for <dev@dpdk.org>; Fri, 11 Apr 2014 03:04:05 -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=XbwV70DOjRauMIk6DJG7VTbD7iBRqT5GQEdoxGPsSL0=;
 b=0gjFpEdEBdutu6y/byPx8aSWumWBa94CECgL49FC0Xh+9K4DIdn82KDBjdcvGyLWZm
 QSGLdAkvl/4LJYUErAxfW39hSfJB4+HX8WGa8sIzFoLtdUpK/LlJY2/BMSR/XWSvFfYt
 5xOsDmLE+iXL0593WeuGi4cIlPC9qgKen27i877gMeNhE/nY1GJ9p9f4GZeWql9/YOnv
 8YjmuLcOEbdQZ4Zf3aBcf+c/LSfRZxLcTf7zab5Ybto9jS2+9a3i/DZq2AxCe4PfvmUD
 XTzPAROa0iFMXmlG3OTxMFE2BZQQLvxhMv7QNxfq6s5kk2gxVAA/BEFoOencDmLWioqe
 ZEOA==
MIME-Version: 1.0
X-Received: by 10.229.54.201 with SMTP id r9mr27028638qcg.6.1397210645792;
 Fri, 11 Apr 2014 03:04:05 -0700 (PDT)
Received: by 10.96.223.202 with HTTP; Fri, 11 Apr 2014 03:04:05 -0700 (PDT)
In-Reply-To: <1861179.6WnqIWz1vA@xps13>
References: <CAJ2bnfBPoD7-s4YEtKJZ3HrHBcObzsoX=UK7LXEiJwyckpeZ9A@mail.gmail.com>
 <1861179.6WnqIWz1vA@xps13>
Date: Fri, 11 Apr 2014 15:34:05 +0530
Message-ID: <CAJ2bnfC56CFn_7q8gcZxhGPituLFPZUZ4xNKESb1rQ66Ww4WCg@mail.gmail.com>
From: sabu kurian <sabu2kurian@gmail.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Cc: "dev@dpdk.org" <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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Apr 2014 10:02:28 -0000

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<burst_size;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
>