[virtio-dev] [PATCH] virtio-net: use mtu size as buffer length for big packets

Michael S. Tsirkin
Tue, 09 Aug 2022 09:25:22 -0000

On Tue, Aug 09, 2022 at 03:44:22PM +0800, Jason Wang
wrote:
> > +             unsigned int mtu = vi->dev->mtu;

BTW should this not be max_mtu?  Otherwise if user configures mtu that
is too small we'll add buffers that are too small.  some backends simply
lock up if this happens (I think vhost does).
Maybe we should add a feature to allow packet drop if it's too small.
And send mtu guest to host while we are at it?

--
MST