DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Amedeo Sapio <amedeo.sapio@polito.it>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] rte_eth_tx_burst reliability
Date: Tue, 16 Oct 2018 09:01:07 -0700	[thread overview]
Message-ID: <20181016090107.45efe64d@xeon-e3> (raw)
In-Reply-To: <CAMkTTJODO9RDXHCcr2oQ6MThtC98yN_AHwO-fQLEJL0_UgawOQ@mail.gmail.com>

On Tue, 16 Oct 2018 18:38:23 +0300
Amedeo Sapio <amedeo.sapio@polito.it> wrote:

> Dear all,
> 
> while using rte_eth_tx_burst() to send packets in batches, I see that,
> sometimes, the amount of packets that the function says are sent, are not
> actually sent.
> 
> I am accumulating the return value of rte_eth_tx_burst() in a variable and,
> at the end of the job, the value of the accumulator is greater than the
> value of  "opackets"  in the device "eth_stats".
> I see the same number of transmitted packets in eth_stats, eth_xstats and
> on the other side of the cable, and this number is less than the sum of the
> values returned by rte_eth_tx_burst().
> 
> So, my question is: in what case the rte_eth_tx_burst() function returns a
> value that does not correspond to the real number of transmitted packets?
> According to the documentation, the function is returning only the number
> of packets that have been successfully inserted in the ring, so I assumed
> the return value was reliable.
> 
> Testbed:
> NIC: Intel 82599ES
> DPDK driver: igb_uio
> DPDK version: 18.05
> Traffic: UDP packets, sized 174B, with IP and UDP checksum offload
> 

If number sent < number requested it means the transmit descriptor
ring is full. Application needs to handle this and retransmit, or drop
in that case.

       reply	other threads:[~2018-10-16 16:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAMkTTJODO9RDXHCcr2oQ6MThtC98yN_AHwO-fQLEJL0_UgawOQ@mail.gmail.com>
2018-10-16 16:01 ` Stephen Hemminger [this message]
2018-10-16 16:22   ` Amedeo Sapio

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=20181016090107.45efe64d@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=amedeo.sapio@polito.it \
    --cc=users@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).