[pve-devel] [PATCH qemu-server] vmconfig_update_net: mtu is not hotpluggable

Alexandre Derumier aderumier at odiso.com
Sat Nov 26 08:20:25 CET 2022


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a746b3d..81d3997 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5294,6 +5294,7 @@ sub vmconfig_update_net {
 	if (safe_string_ne($oldnet->{model}, $newnet->{model}) ||
 	    safe_string_ne($oldnet->{macaddr}, $newnet->{macaddr}) ||
 	    safe_num_ne($oldnet->{queues}, $newnet->{queues}) ||
+	    safe_num_ne($oldnet->{mtu}, $newnet->{mtu}) ||
 	    !($newnet->{bridge} && $oldnet->{bridge})) { # bridge/nat mode change
 
             # for non online change, we try to hot-unplug
-- 
2.30.2





More information about the pve-devel mailing list