This series is based on on-going RFC from Aaron Conole which defines a way for the host to expose its max MTU to the guest [0].
Using it, the guest can size its receive buffers accordingly, and if GRO is disabled, can disable the mergeable buffers to improve performance. In this version, the only way to pass the MTU relies on the added MTU protocol feature, but it could also be done with a new property. Thanks, Maxime [0]: https://lists.oasis-open.org/archives/virtio-dev/201609/msg00021.html Maxime Coquelin (4): virtio-net: reuse MTU related bits from Linux header vhost-user: Add new protocol feature MTU vhost-net: Add new MTU feature support virtio-net: Add MTU feature support hw/net/vhost_net.c | 11 +++++++++++ hw/net/virtio-net.c | 16 ++++++++++++++++ hw/virtio/vhost-user.c | 11 +++++++++++ include/hw/virtio/vhost.h | 1 + include/hw/virtio/virtio-net.h | 1 + include/net/vhost_net.h | 2 ++ include/standard-headers/linux/virtio_net.h | 3 +++ 7 files changed, 45 insertions(+) -- 2.7.4