DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
@ 2014-04-11  5:59 sabu kurian
  2014-04-11  7:56 ` Thomas Monjalon
  0 siblings, 1 reply; 6+ messages in thread
From: sabu kurian @ 2014-04-11  5:59 UTC (permalink / raw)
  To: dev

Hi friends,

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

ret = rte_eth_tx_burst(port_ids[lcore_id], 0, m_pool, burst_size);

At times it might transfer 10 or 15 packets in a burst_size of 64
At times all packets are getting dropped

I'm using 64 bit Ubuntu 12.04
Kernel : 3.2.0-29-generic

I have built the kernel and library modules(Intel DPDK) with

make config T=x86_64-default-linuxapp-gcc
make

loaded modules with

sudo modprobe uio

sudo insmod ./x86_64-default-linuxapp-gcc/kmod/igb_uio.ko


Any help would be appreciated.

Thanks and regards

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
  2014-04-11  5:59 [dpdk-dev] I350 drops packet on rte_eth_tx_burst() sabu kurian
@ 2014-04-11  7:56 ` Thomas Monjalon
  2014-04-11 10:04   ` sabu kurian
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Monjalon @ 2014-04-11  7:56 UTC (permalink / raw)
  To: sabu kurian; +Cc: dev

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
  2014-04-11  7:56 ` Thomas Monjalon
@ 2014-04-11 10:04   ` sabu kurian
  2014-04-11 10:04     ` sabu kurian
  0 siblings, 1 reply; 6+ messages in thread
From: sabu kurian @ 2014-04-11 10:04 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
  2014-04-11 10:04   ` sabu kurian
@ 2014-04-11 10:04     ` sabu kurian
  2014-04-13  5:14       ` Chae-yong Chong
  0 siblings, 1 reply; 6+ messages in thread
From: sabu kurian @ 2014-04-11 10:04 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

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 <sabu2kurian@gmail.com> 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<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
>>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
  2014-04-11 10:04     ` sabu kurian
@ 2014-04-13  5:14       ` Chae-yong Chong
  2014-04-13  6:08         ` sabu kurian
  0 siblings, 1 reply; 6+ messages in thread
From: Chae-yong Chong @ 2014-04-13  5:14 UTC (permalink / raw)
  To: sabu kurian; +Cc: dev

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

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 <sabu2kurian@gmail.com> 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<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

>>

>

>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] I350 drops packet on rte_eth_tx_burst()
  2014-04-13  5:14       ` Chae-yong Chong
@ 2014-04-13  6:08         ` sabu kurian
  0 siblings, 0 replies; 6+ messages in thread
From: sabu kurian @ 2014-04-13  6:08 UTC (permalink / raw)
  To: Chae-yong Chong; +Cc: dev

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 <cychong@gmail.com> 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 <http://bit.ly/1hRkK2W>
> On April 11, 2014 at 7:16:47 PM GMT+9, sabu kurian <sabu2kurian@gmail.com>
> 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
> >>
> >
> >
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-13  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11  5:59 [dpdk-dev] I350 drops packet on rte_eth_tx_burst() sabu kurian
2014-04-11  7:56 ` Thomas Monjalon
2014-04-11 10:04   ` sabu kurian
2014-04-11 10:04     ` sabu kurian
2014-04-13  5:14       ` Chae-yong Chong
2014-04-13  6:08         ` sabu kurian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).