DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>,
	"Bie, Tiwei" <tiwei.bie@intel.com>
Cc: "Wang, Zhihong" <zhihong.wang@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2 6/8] net/virtio: support IN_ORDER Rx and Tx
Date: Wed, 27 Jun 2018 14:27:41 +0000	[thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E630CBF12@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <f5f200d2-a2c6-f327-29b0-38ca889ad57d@redhat.com>



> -----Original Message-----
> From: Maxime Coquelin [mailto:maxime.coquelin@redhat.com]
> Sent: Wednesday, June 27, 2018 4:18 PM
> To: Liu, Yong <yong.liu@intel.com>; Bie, Tiwei <tiwei.bie@intel.com>
> Cc: Wang, Zhihong <zhihong.wang@intel.com>; dev@dpdk.org
> Subject: Re: [PATCH v2 6/8] net/virtio: support IN_ORDER Rx and Tx
> 
> 
> 
> On 06/25/2018 05:17 PM, Marvin Liu wrote:
> > IN_ORDER Rx function can support merge-able feature. Descriptors
> My understanding of the code is that IN_ORDER Rx function only supports
> mergeable feature (and it seems to be confirmed by patch 7).
> 
> So maybe change the text to:
> "IN_ORDER Rx function requires merge-able feature."

Thanks for point out this, Rx function choice was depended on merge-able feature. Will change comment in next release.

> 
> > allocation and free will be done in bulk.
> >
> > Virtio dequeue logic:
> >      dequeue_burst_rx(burst mbufs)
> >      for (each mbuf b) {
> >              if (b need merge) {
> >                      merge remained mbufs
> >                      add merged mbuf to return mbufs list
> >              } else {
> >                      add mbuf to return mbufs list
> >              }
> >      }
> >      if (last mbuf c need merge) {
> >              dequeue_burst_rx(required mbufs)
> >              merge last mbuf c
> >      }
> >      refill_avail_ring_bulk()
> >      update_avail_ring()
> >      return mbufs list
> >
> > IN_ORDER Tx function can support offloading features. Packets can't be
> s/can support/supports/
> 
> > transmitted by IN_ORDER Tx will be handled by normal Tx.
> 
> Can you clarify why some packets can't be transmitted by IN_ORDER Tx?

My previous description may not clear, all Tx descriptors will be saved to avail ring in-order.
For making code clean, packets which matched "can_push" option will be handled by simple xmit inorder function.
Those packets can't match "can_push" will be handled one by one by previous xmit function.

Thanks,
Marvin

> 
> > Virtio enqueue logic:
> >      xmit_cleanup(used descs)
> >      for (each xmit mbuf b) {
> >              if (b can inorder xmit) {
> >                      add mbuf b to inorder burst list
> >                      continue
> >              } else {
> >                      xmit inorder burst list
> >                      xmit mbuf b with normal xmit
> >              }
> >      }
> >      if (inorder burst list not empty) {
> >              xmit inorder burst list
> >      }
> >      update_avail_ring()
> >
> > Signed-off-by: Marvin Liu <yong.liu@intel.com>
> >
> 
> 
> Other than above clarification needed, the code looks good to me.
> 
> Thanks,
> Maxime

  reply	other threads:[~2018-06-27 14:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25 15:17 [dpdk-dev] [PATCH v2 0/8] support VIRTIO_F_IN_ORDER feature Marvin Liu
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 1/8] vhost: announce VIRTIO_F_IN_ORDER support Marvin Liu
2018-06-26  7:54   ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 2/8] net/virtio: add VIRTIO_F_IN_ORDER definition Marvin Liu
2018-06-26  7:58   ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 3/8] net/virtio-user: add mrg_rxbuf and in_order vdev parameters Marvin Liu
2018-06-27  6:53   ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 4/8] net/virtio: free IN_ORDER descriptors before device start Marvin Liu
2018-06-27  6:58   ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 5/8] net/virtio: extract common part for IN_ORDER functions Marvin Liu
2018-06-27  6:59   ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 6/8] net/virtio: support IN_ORDER Rx and Tx Marvin Liu
2018-06-27  8:18   ` Maxime Coquelin
2018-06-27 14:27     ` Liu, Yong [this message]
2018-06-27 14:32       ` Maxime Coquelin
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 7/8] net/virtio: add IN_ORDER Rx/Tx into selection Marvin Liu
2018-06-27  8:19   ` Maxime Coquelin
2018-06-28 14:11     ` Liu, Yong
2018-06-25 15:17 ` [dpdk-dev] [PATCH v2 8/8] net/virtio: annouce VIRTIO_F_IN_ORDER support Marvin Liu
2018-06-27  8:20   ` Maxime Coquelin
2018-06-26  7:56 ` [dpdk-dev] [PATCH v2 0/8] support VIRTIO_F_IN_ORDER feature Maxime Coquelin
2018-06-26  8:01   ` Liu, Yong

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=86228AFD5BCD8E4EBFD2B90117B5E81E630CBF12@SHSMSX103.ccr.corp.intel.com \
    --to=yong.liu@intel.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --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).