Hi, John: > -----Original Message----- > From: Mcnamara, John > Sent: Wednesday, May 10, 2017 5:58 PM > To: Yang, Zhiyong <zhiyong.y...@intel.com>; dev@dpdk.org > Cc: yuanhan....@linux.intel.com; maxime.coque...@redhat.com > Subject: RE: [PATCH] doc: update virtio doc > > > > > -----Original Message----- > > From: Yang, Zhiyong > > Sent: Wednesday, May 10, 2017 7:18 AM > > To: dev@dpdk.org; Mcnamara, John <john.mcnam...@intel.com> > > Cc: yuanhan....@linux.intel.com; maxime.coque...@redhat.com; Yang, > > Zhiyong <zhiyong.y...@intel.com> > > Subject: [PATCH] doc: update virtio doc > > > > Add more explanations about vring size changes and virtio_header size. > > > > Signed-off-by: Zhiyong Yang <zhiyong.y...@intel.com> > > --- > > doc/guides/nics/virtio.rst | 13 +++++++++---- > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > diff --git a/doc/guides/nics/virtio.rst b/doc/guides/nics/virtio.rst > > index > > 91bedea..36ddd08 100644 > > --- a/doc/guides/nics/virtio.rst > > +++ b/doc/guides/nics/virtio.rst > > @@ -41,8 +41,8 @@ The DPDK extends kni to support vhost raw socket > > interface, which enables vhost to directly read/ write packets > > from/to a physical port. > > With this enhancement, virtio could achieve quite promising performance. > > > > -In future release, we will also make enhancement to vhost backend, - > > releasing peak performance of virtio PMD driver. > > +In future release, we will also make enhancement to vhost backend. > > +Peak performance of virtio PMD driver will be released with every > > +release > > version since DPDK 17.02 release. > > Hi, > > There have been great performance improvements in Virtio in the last few > releases. However, we can't really promise that is will improve in every > release. > I'd suggest removing these two lines and the previous line starting with "With > this enhancement, virtio could ...". >
Ok. > > > > > ... > > > > -* RTE_PKTMBUF_HEADROOM should be defined larger than sizeof(struct > > virtio_net_hdr), which is 10 bytes. > > +* RTE_PKTMBUF_HEADROOM should be defined > > + larger than sizeof(struct virtio_net_hdr), which is 10 bytes, > > +when > > using non-mergeable. > > + larger than sizeof(struct virtio_net_hdr_mrg_rxbuf), which is 12 > > bytes when mergeable or F_VERSION_1 > > + is set. > > > > All constants and struct names should be ```` quoted. Like this: > > > * ``RTE_PKTMBUF_HEADROOM`` should be defined larger than > ``sizeof(struct virtio_net_hdr)``, which is 10 bytes, when using > non-mergeable or larger than ``sizeof(struct virtio_net_hdr_mrg_rxbuf)``, > which is 12 bytes when mergeable or ``F_VERSION_1`` is set. > Good suggestion. Zhiyong Yang > John >