[libvirt] [PATCH 3/3] network: honor mtu setting when creating network

Laine Stump laine at laine.org
Mon Jan 23 15:35:53 UTC 2017


This resolves: https://bugzilla.redhat.com/1224348
---
 src/network/bridge_driver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 7a7bdaf..f383779 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -2300,7 +2300,8 @@ networkStartNetworkVirtual(virNetworkDriverStatePtr driver,
         /* Keep tun fd open and interface up to allow for IPv6 DAD to happen */
         if (virNetDevTapCreateInBridgePort(network->def->bridge,
                                            &macTapIfName, &network->def->mac,
-                                           NULL, NULL, &tapfd, 1, NULL, NULL, -1,
+                                           NULL, NULL, &tapfd, 1, NULL, NULL,
+                                           network->def->mtu,
                                            VIR_NETDEV_TAP_CREATE_USE_MAC_FOR_BRIDGE |
                                            VIR_NETDEV_TAP_CREATE_IFUP |
                                            VIR_NETDEV_TAP_CREATE_PERSIST) < 0) {
-- 
2.9.3




More information about the libvir-list mailing list