• L
    util: add MTU arg to virNetDevTapCreateInBridgePort() · dd8ac030
    Laine Stump 提交于
    virNetDevTapCreateInBridgePort() has always set the new tap device to
    the current MTU of the bridge it's being attached to. There is one
    case where we will want to set the new tap device to a different
    (usually larger) MTU - if that's done with the very first device added
    to the bridge, the bridge's MTU will be set to the device's MTU. This
    patch allows for that possibility by adding "int mtu" to the arg list
    for virNetDevTapCreateInBridgePort(), but all callers are sending -1,
    so it doesn't yet have any effect.
    
    Since the requested MTU isn't necessarily what is used in the end (for
    example, if there is no MTU requested, the tap device will be set to
    the current MTU of the bridge), and the hypervisor may want to know
    the actual MTU used, we also return the actual MTU to the caller (if
    actualMTU is non-NULL).
    dd8ac030
bhyve_command.c 21.7 KB