mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 06:44:55 +00:00
update network dev: MTU is not hot-pluggable
Avoid pretending that a MTU change on a existing network device gets applied live to a running VM. Signed-off-by: Alexandre Derumier <aderumier@odiso.com> [ T: reworded and expanded commit message slightly ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
93e21fd230
commit
62fdcfd4cf
@ -5326,6 +5326,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
|
||||
|
Loading…
Reference in New Issue
Block a user