mirror of https://gitee.com/openkylin/libvirt.git
network: honor mtu setting when creating network
This resolves: https://bugzilla.redhat.com/1224348
This commit is contained in:
parent
68a42bf6f7
commit
c0f706865e
|
@ -2301,7 +2301,7 @@ networkStartNetworkVirtual(virNetworkDriverStatePtr driver,
|
||||||
if (virNetDevTapCreateInBridgePort(network->def->bridge,
|
if (virNetDevTapCreateInBridgePort(network->def->bridge,
|
||||||
&macTapIfName, &network->def->mac,
|
&macTapIfName, &network->def->mac,
|
||||||
NULL, NULL, &tapfd, 1, NULL, NULL,
|
NULL, NULL, &tapfd, 1, NULL, NULL,
|
||||||
0, NULL,
|
network->def->mtu, NULL,
|
||||||
VIR_NETDEV_TAP_CREATE_USE_MAC_FOR_BRIDGE |
|
VIR_NETDEV_TAP_CREATE_USE_MAC_FOR_BRIDGE |
|
||||||
VIR_NETDEV_TAP_CREATE_IFUP |
|
VIR_NETDEV_TAP_CREATE_IFUP |
|
||||||
VIR_NETDEV_TAP_CREATE_PERSIST) < 0) {
|
VIR_NETDEV_TAP_CREATE_PERSIST) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue