Re: [PATCH net] virtio-net: reject small vring sizes

From: Alvaro Karsz
Date: Sun Apr 23 2023 - 04:01:46 EST


We could add a new virtio_config_ops: peek_vqs.
We can call it during virtnet_validate, and then fixup the features in case of small vrings.

If peek_vqs is not implemented by the transport, we can just fail probe later in case of small vrings.