virtio_net: Bypass backends for MTU feature negotiation
commit75ebec11afe49539f71cc1c494e3010f91c86adb
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 May 2017 12:31:19 +0000 (23 14:31 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 May 2017 18:25:28 +0000 (25 21:25 +0300)
tree1965291be3a0308383d201d83de4a3aa1a272ed9
parentc10595fb348d3fe6991fe9750834bd2ab16d3190
virtio_net: Bypass backends for MTU feature negotiation

This patch adds a new internal "x-mtu-bypass-backend" property
to bypass backends for MTU feature negotiation.

When this property is set, the MTU feature is negotiated as soon
as supported by the guest and a MTU value is set via the host_mtu
parameter. In case the backend advertises the feature (e.g. DPDK's
vhost-user backend), the feature negotiation is propagated down to
the backend.

When this property is not set, the backend has to support the MTU
feature for its negotiation to succeed.

For compatibility purpose, this property is disabled for machine
types v2.9 and older.

Cc: Aaron Conole <aconole@redhat.com>
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Vlad Yasevich <vyasevic@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c
include/hw/compat.h
include/hw/virtio/virtio-net.h
include/hw/virtio/virtio.h