On Mon, Oct 20, 2025 at 6:41 PM Michael S. Tsirkin <[email protected]> wrote:
>
> On Mon, Oct 20, 2025 at 03:09:57PM +0800, Jason Wang wrote:
> > @@ -2782,7 +2874,8 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
> >       if (!num)
> >               return -EINVAL;
> >
> > -     if ((vq->packed_ring ? vq->packed.vring.num : vq->split.vring.num) == 
> > num)
> > +     if ((virtqueue_is_packed(vq) ? vq->packed.vring.num :
> > +                                    vq->split.vring.num) == num)
> >               return 0;
> >
> >       err = virtqueue_disable_and_recycle(_vq, recycle);
>
>
> This is exactly virtqueue_get_vring_size:
>

Yes, I've switched to use virtqueue_get_vring_size() here.

Thanks


Reply via email to