summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMaxime Coquelin2016-12-10 16:30:37 +0100
committerMichael S. Tsirkin2017-01-10 06:02:53 +0100
commit45a368ad4f6135f32be5c051823a060eada0ac12 (patch)
tree4264d030bc17d419087a327c8195ae62059eabab /include/net
parentvhost-user: Add MTU protocol feature and op (diff)
downloadqemu-45a368ad4f6135f32be5c051823a060eada0ac12.tar.gz
qemu-45a368ad4f6135f32be5c051823a060eada0ac12.tar.xz
qemu-45a368ad4f6135f32be5c051823a060eada0ac12.zip
vhost-net: Notify the backend about the host MTU
This patch provides a way for virtio-net to notify the backend about the host MTU set by the user. Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Aaron Conole <aconole@redhat.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/vhost_net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/vhost_net.h b/include/net/vhost_net.h
index 5a08efffef..afc1499eb9 100644
--- a/include/net/vhost_net.h
+++ b/include/net/vhost_net.h
@@ -35,4 +35,6 @@ int vhost_set_vring_enable(NetClientState * nc, int enable);
uint64_t vhost_net_get_acked_features(VHostNetState *net);
+int vhost_net_set_mtu(struct vhost_net *net, uint16_t mtu);
+
#endif