DPDK usage discussions
 help / color / mirror / Atom feed
From: Gaurav Bansal <zeebee48@gmail.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] packet drops with missing rxdIdx count in vmxnet3
Date: Wed, 9 Oct 2019 11:41:43 +0530	[thread overview]
Message-ID: <CAFQQEmAom2aG-NdcNfHUQMxPkFW0jfwP8yh-AeO0wR9+st=YEQ@mail.gmail.com> (raw)
In-Reply-To: <20190930075938.77a2c70d@hermes.lan>

Hi Stephen,
Thanks for the reply. Does that mean receive index skip is expected in case
a packet spans across multiple segments ? I am seeing following behaviour :

We receive the packets in vmxnet3_recv_pkts function... this is done by
checking gen bits (in a while loop). For each packet received, we increment
next2proc in comp_ring and then fetch rxdIdx using next2proc value as
follows :
rcd = &rxq->comp_ring.base[rxq->comp_ring.next2proc].rcd;
idx = rcd->rxdIdx;

Now for the case when i am seeing packet drops, next2proc is getting
incremented by 1 but rxdIdx gets incremented by 2. This is seen by printing
the following in gdb :
p rxq->comp_ring.next2proc
p rxq->comp_ring.base[rxq->comp_ring.next2proc].rcd.rxdIdx

$1094 = *262*
$1095 = *6*

//for next packet
$1099 = *263*
$1100 = *8*

Is this too an expected behaviour ? In that case how we will receive the
packet with rxdIdx = 7 ?

thanks,
gaurav

On Mon, Sep 30, 2019 at 8:29 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:

> On Mon, 30 Sep 2019 11:22:19 +0530
> Gaurav Bansal <zeebee48@gmail.com> wrote:
>
> > hi all,
> > havn't heard back on this so far. Can anyone please let me know of the
> > possible reasons for the NIC to skip some of the indexes of the
> descriptor
> > ring in the Rx path (as also shown by the vmxnet3 logs in my previous
> mail)
> > ?
> > thanks,
> > gaurav
> >
>
> A packet can span multiple segments if your receive mbuf is too small to
> fit
> all the data. That would cause the receive data to create a chained mbuf.
>
>
>

      reply	other threads:[~2019-10-09  6:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 10:39 [dpdk-users] packet drops seen once the no of rxd pkts reach the ring size Gaurav Bansal
2019-09-26  5:15 ` Gaurav Bansal
2019-09-26  5:16   ` Stephen Hemminger
2019-09-26  7:55     ` Gaurav Bansal
2019-09-28  8:47       ` [dpdk-users] packet drops with missing rxdIdx count in vmxnet3 Gaurav Bansal
2019-09-30  5:52         ` Gaurav Bansal
2019-09-30 14:59           ` Stephen Hemminger
2019-10-09  6:11             ` Gaurav Bansal [this message]

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='CAFQQEmAom2aG-NdcNfHUQMxPkFW0jfwP8yh-AeO0wR9+st=YEQ@mail.gmail.com' \
    --to=zeebee48@gmail.com \
    --cc=stephen@networkplumber.org \
    --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).