DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: dev@dpdk.org, tiwei.bie@intel.com, jfreimann@redhat.com,
	zhihong.wang@intel.com
Cc: stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] vhost: avoid memory barriers when no descriptors dequeued
Date: Wed, 24 Oct 2018 12:51:22 +0200	[thread overview]
Message-ID: <82847dae-6dd6-8841-f140-5b91e33c04d7@redhat.com> (raw)
In-Reply-To: <20181023100710.14739-1-maxime.coquelin@redhat.com>



On 10/23/18 12:07 PM, Maxime Coquelin wrote:
> In both split and packed dequeue paths, flush_shadow_used_ring
> and vhost_ring_call variants gets called even if not packets
> have been dequeued, and so no descriptors updates happened.
> 
> It has an impact on CPU pipeline, as memory barriers are used
> in these functions.
> 
> This patch don't call these functions if no descriptors have
> been dequeued. The performance gain with split ring when
> dequeue zero-copy is disabled should be null, but should be
> noticeable with packed ring or dequeue zero-copy enabled.
> 
> Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring")
> Fixes: 915cf9404225 ("vhost: use shadow used ring in dequeue path")
> Cc:stable@dpdk.org
> 
> Signed-off-by: Maxime Coquelin<maxime.coquelin@redhat.com>
> ---
> 
> Changes in v2:
> - Fix shadow_used_idx reset in error path (Tiwei)
> 
>   lib/librte_vhost/virtio_net.c | 24 ++++++++++++++++--------
>   1 file changed, 16 insertions(+), 8 deletions(-)


Applied to dpdk-next-virtio/master.

Maxime

      parent reply	other threads:[~2018-10-24 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-23 10:07 Maxime Coquelin
2018-10-23 12:39 ` [dpdk-dev] [dpdk-stable] " Jens Freimann
2018-10-24  8:50 ` [dpdk-dev] " Tiwei Bie
2018-10-24 10:51 ` Maxime Coquelin [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=82847dae-6dd6-8841-f140-5b91e33c04d7@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=dev@dpdk.org \
    --cc=jfreimann@redhat.com \
    --cc=stable@dpdk.org \
    --cc=tiwei.bie@intel.com \
    --cc=zhihong.wang@intel.com \
    /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).