aboutsummaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@redhat.com>2016-12-10 16:30:37 +0100
committerMichael S. Tsirkin <mst@redhat.com>2017-01-10 07:02:53 +0200
commit45a368ad4f6135f32be5c051823a060eada0ac12 (patch)
tree4264d030bc17d419087a327c8195ae62059eabab /include/net
parentc5f048d8fb69ae9b52a02ff4435b403b2ba19db7 (diff)
downloadqemu-45a368ad4f6135f32be5c051823a060eada0ac12.zip
qemu-45a368ad4f6135f32be5c051823a060eada0ac12.tar.gz
qemu-45a368ad4f6135f32be5c051823a060eada0ac12.tar.bz2
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 5a08eff..afc1499 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