Re: [PATCH v4] virtio-net: Ignore num_buffers when unused
Jason Wang <[email protected]>
| Newsgroups | dev.linux.lists.virtio-comment |
|---|---|
| Message-ID | <CACGkMEsT101TehxbqBA8dLqaNJsbANsHQQzvgECmXMjmgLqjQQ@mail.gmail.com> |
On Mon, May 26, 2025 at 1:15 PM Akihiko Odaki <[email protected]> wrote: > > If VIRTIO_NET_F_MRG_RXBUF has not been negotiated, vhost_net of Linux > prior to 6.14 and QEMU prior to 10.0.0 leave num_buffers uninitialized > while the specification tells to set it to one. > > Let drivers ignore this field to make them compatible with old > vhost_net/QEMU, similar to the hdr_len field, which is also marked as > unreliable due to implementation bugs. > > Signed-off-by: Akihiko Odaki <[email protected]> > Reviewed-by: Parav Pandit <[email protected]> > --- Reviewed-by: Jason Wang <[email protected]> Thanks