From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: ciprian.barbu <ciprian.barbu@enea.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] can eth_igb_xmit_pkts called with len 0 affect transmission?
Date: Fri, 24 Jul 2015 02:49:28 +0000 [thread overview]
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC0909D14BBB@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <55B10619.1060801@enea.com>
Hi Ciprian,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ciprian.barbu
> Sent: Thursday, July 23, 2015 11:20 PM
> To: dev@dpdk.org
> Subject: Re: [dpdk-dev] can eth_igb_xmit_pkts called with len 0 affect
> transmission?
>
> Anyone?
>
> On 17.07.2015 16:48, ciprian.barbu wrote:
> > Hi,
> >
> > I'm seeing a strange behavior when calling rte_eth_tx_burst with len
> > == 0. I'll explain the reason for this situation further bellow. But
> > what I'm seeing is that after doing this call my application keeps
> > returning from eth_igb_xmit_pkts here, even when len > 0:
> > http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_e1000/igb_rxtx.c?h=rel
> > eases#n476
Don’t understand what the len means? The packet length?
According to where the code returns, seems the queue is not initialized correctly.
I saw you used odp-dpdk. Sorry, I'm not familiar with it. Why not try dpdk examples,
and check if the behavior is same?
> >
> >
> > I can't really explain myself this behavior, I don't understand very
> > well what the nic does once it receives buffers in its rings, but to
> > me it looks like calling rte_eth_tx_burst with len 0 has this effect.
> >
> > What I'm using in my tests is the linaro odp-dpdk implementation and
> > the odp_l2fwd example. The odp-dpdk implementation makes this call to
> > try and make the pmd to flush the tx queue in case there are no more
> > free buffers in the pool, but this was only verified for ixgbe 82599
> > cards, for igb the packets are not actually flushed until the tail
> > circles back the whole length of the queue. I'm pretty much the only
> > one (that I know
> > of) that uses odp with 1G igb i350 cards and see this issue.
> >
> > Can anyone explain whether I'm getting this right and there could be
> > side effects to calling eth_igb_xmit_pkts with len 0?
> >
> > Thank you,
> > /Ciprian
next prev parent reply other threads:[~2015-07-24 2:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 13:48 ciprian.barbu
2015-07-23 15:19 ` ciprian.barbu
2015-07-24 2:49 ` Lu, Wenzhuo [this message]
2015-07-24 9:30 ` ciprian.barbu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A0DE07E22DDAD4C9103DF62FEBC0909D14BBB@shsmsx102.ccr.corp.intel.com \
--to=wenzhuo.lu@intel.com \
--cc=ciprian.barbu@enea.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).