DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors
Date: Wed, 22 Jul 2015 10:55:11 +0200	[thread overview]
Message-ID: <79868347.qM8YWBKqTE@xps13> (raw)
In-Reply-To: <1437417646-11221-2-git-send-email-stephen@networkplumber.org>

2015-07-20 11:40, Stephen Hemminger:
> The number of descriptors can be either zero to use the whole
> available ring, or some value smaller. This is used to limit
> the number of mbufs allocated for the receive ring. If more
> descriptors are requested than available the size is silently
> truncated.
[...]
> +	if (nb_desc == 0 || nb_desc > vq_size)
> +		nb_desc = vq_size;

This behaviour should be common to every drivers and explained in the API doxygen:
http://dpdk.org/browse/dpdk/tree/lib/librte_ether/rte_ethdev.h?id=v2.1.0-rc1#n1843

  parent reply	other threads:[~2015-07-22  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 18:40 [dpdk-dev] [PATCH v2 0/2] virtio: fixes for 2.1-rc1 Stephen Hemminger
2015-07-20 18:40 ` [dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors Stephen Hemminger
2015-07-21  5:06   ` Ouyang, Changchun
2015-07-22  8:55   ` Thomas Monjalon [this message]
2015-07-20 18:40 ` [dpdk-dev] [PATCH v2 2/2] virtio: small cleanups Stephen Hemminger
2015-07-21  4:57   ` Ouyang, Changchun
2015-07-21  5:00 ` [dpdk-dev] [PATCH v2 0/2] virtio: fixes for 2.1-rc1 Ouyang, Changchun
2015-07-22  8:59 ` Thomas Monjalon

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=79868347.qM8YWBKqTE@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.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).