From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Cheng Jiang <cheng1.jiang@intel.com>, chenbo.xia@intel.com
Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com,
wenwux.ma@intel.com, yuanx.wang@intel.com,
yvonnex.yang@intel.com
Subject: Re: [RFC v3] add support for async vhost packed ring dequeue
Date: Thu, 9 Jun 2022 15:03:36 +0200 [thread overview]
Message-ID: <b7e6f37c-0cb7-ec1b-1d83-cf02d023499b@redhat.com> (raw)
In-Reply-To: <20220530045633.21737-1-cheng1.jiang@intel.com>
Hi Cheng,
On 5/30/22 06:56, Cheng Jiang wrote:
> This RFC patch implements packed ring dequeue data path for asynchronous
> vhost.
Please remove RFC in the next revision.
> Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
> ---
> lib/vhost/virtio_net.c | 217 ++++++++++++++++++++++++++++++++++++-----
> 1 file changed, 191 insertions(+), 26 deletions(-)
>
> diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c
...
> +
> +static __rte_always_inline int
> +virtio_dev_tx_async_single_packed(struct virtio_net *dev,
> + struct vhost_virtqueue *vq,
> + struct rte_mempool *mbuf_pool,
> + struct rte_mbuf *pkts,
> + uint16_t slot_idx,
> + bool legacy_ol_flags)
> +{
> + int err;
> + uint16_t buf_id, desc_count = 0;
> + uint16_t nr_vec = 0;
> + uint32_t buf_len;
> + struct buf_vector buf_vec[BUF_VECTOR_MAX];
> + static bool allocerr_warned;
> +
> + if (unlikely(fill_vec_buf_packed(dev, vq, vq->last_avail_idx, &desc_count,
> + buf_vec, &nr_vec, &buf_id, &buf_len,
> + VHOST_ACCESS_RO) < 0))
> + return -1;
> +
> + if (unlikely(virtio_dev_pktmbuf_prep(dev, pkts, buf_len))) {
> + if (!allocerr_warned) {
> + VHOST_LOG_DATA(ERR, "Failed mbuf alloc of size %d from %s on %s.\n",
> + buf_len, mbuf_pool->name, dev->ifname);
We have defined a common format for all Vhost logs to ease logs
filtering:
VHOST_LOG_DATA(ERR, "(%s) Failed mbuf alloc of size %d from %s.\n",
dev->ifname, buf_len, mbuf_pool->name);
Could you please fix it here and everywhere else in the patch?
With above minor comments fixed, feel free to add:
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
next prev parent reply other threads:[~2022-06-09 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 8:25 [RFC] add support for async " Cheng Jiang
2022-05-30 4:56 ` [RFC v3] add support for async vhost " Cheng Jiang
2022-06-09 13:03 ` Maxime Coquelin [this message]
2022-06-09 13:23 ` Jiang, Cheng1
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=b7e6f37c-0cb7-ec1b-1d83-cf02d023499b@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=chenbo.xia@intel.com \
--cc=cheng1.jiang@intel.com \
--cc=dev@dpdk.org \
--cc=jiayu.hu@intel.com \
--cc=wenwux.ma@intel.com \
--cc=xuan.ding@intel.com \
--cc=yuanx.wang@intel.com \
--cc=yvonnex.yang@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).