]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network: honor mtu setting when creating network
authorLaine Stump <laine@laine.org>
Mon, 23 Jan 2017 02:33:07 +0000 (21:33 -0500)
committerLaine Stump <laine@laine.org>
Tue, 7 Feb 2017 19:00:27 +0000 (14:00 -0500)
This resolves: https://bugzilla.redhat.com/1224348

src/network/bridge_driver.c

index f88c261ed84d6dab1416d044360b201bda2781ff..06759c643161ea1fa9551732eae311a6e43e056c 100644 (file)
@@ -2301,7 +2301,7 @@ networkStartNetworkVirtual(virNetworkDriverStatePtr driver,
         if (virNetDevTapCreateInBridgePort(network->def->bridge,
                                            &macTapIfName, &network->def->mac,
                                            NULL, NULL, &tapfd, 1, NULL, NULL,
-                                           0, NULL,
+                                           network->def->mtu, NULL,
                                            VIR_NETDEV_TAP_CREATE_USE_MAC_FOR_BRIDGE |
                                            VIR_NETDEV_TAP_CREATE_IFUP |
                                            VIR_NETDEV_TAP_CREATE_PERSIST) < 0) {