[PATCH v3 3/5] vhost: merge sync and async descriptor to mbuf filling
Ding, Xuan
xuan.ding at intel.com
Sun Apr 24 04:02:40 CEST 2022
Hi Maxime, David,
> -----Original Message-----
> From: Maxime Coquelin <maxime.coquelin at redhat.com>
> Sent: Friday, April 22, 2022 11:46 PM
> To: David Marchand <david.marchand at redhat.com>; Ding, Xuan
> <xuan.ding at intel.com>
> Cc: Xia, Chenbo <chenbo.xia at intel.com>; dev <dev at dpdk.org>; Hu, Jiayu
> <jiayu.hu at intel.com>; Jiang, Cheng1 <cheng1.jiang at intel.com>; Pai G, Sunil
> <sunil.pai.g at intel.com>; liangma at liangbit.com
> Subject: Re: [PATCH v3 3/5] vhost: merge sync and async descriptor to mbuf
> filling
>
>
>
> On 4/22/22 13:06, David Marchand wrote:
> > We (at RH) have some issues with our email infrastructure, so I can't
> > reply inline of the patch.
> >
> > Copy/pasting the code:
> >
> > +static __rte_always_inline uint16_t
> > +async_poll_dequeue_completed_split(struct virtio_net *dev, uint16_t
> > +queue_id, struct rte_mbuf **pkts, uint16_t count, uint16_t dma_id,
> > +uint16_t vchan_id, bool legacy_ol_flags) { uint16_t start_idx, from,
> > +i; uint16_t nr_cpl_pkts = 0; struct async_inflight_info *pkts_info;
> > +struct vhost_virtqueue *vq = dev->virtqueue[queue_id];
> > +
> >
> > Please, don't pass queue_id as an input parameter for
> > async_poll_dequeue_completed_split().
> > The caller of this helper already dereferenced the vq.
> > You can pass vq.
> >
> >
>
>
> I think David's comment was intended to be a reply to patch 4, but I agree
> with him.
>
> Could you please fix this and also fix the build issues reported by the CI? I'll
> continue the review on V4.
Thanks for your suggestion, please see v4.
Regards,
Xuan
>
> Thanks,
> Maxime
More information about the dev
mailing list