From 45a368ad4f6135f32be5c051823a060eada0ac12 Mon Sep 17 00:00:00 2001 From: Maxime Coquelin Date: Sat, 10 Dec 2016 16:30:37 +0100 Subject: 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 Cc: Aaron Conole Signed-off-by: Maxime Coquelin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/net/vhost_net.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/net/vhost_net.h') 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 -- cgit v1.1