currently if the bridge have a mtu of 9000, when putting a tap interface on it (mtu 1500 by default),
the mtu of the bridge goes to 1500.
we want that the mtu of the tap interface equal the mtu of the bridge
correcting bug:
https://bugzilla.proxmox.com/show_bug.cgi?id=258
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
my $bridge = $net->{bridge};
die "unable to get bridge setting\n" if !$bridge;
-system ("/sbin/ifconfig $iface 0.0.0.0 promisc up") == 0 ||
+my $bridgemtu = PVE::Tools::file_read_firstline("/sys/class/net/$bridge/mtu");
+
+system ("/sbin/ifconfig $iface 0.0.0.0 promisc up mtu $bridgemtu") == 0 ||
die "interface activation failed\n";
if ($net->{rate}) {