• D
    network: restrict usage of port management APIs · dd52444f
    Daniel P. Berrangé 提交于
    The port allocation APIs are currently called unconditionally for all
    types of NIC, but (mostly) only do anything for NICs with type=network.
    
    The exception is the port allocate API which does some validation even
    for NICs with type!=network. Relying on this validation is flawed,
    however, since the network driver may not even be installed. IOW virt
    drivers must not delegate validation to the network driver for NICs
    with type != network.
    
    This change allows us to report errors when the virtual network driver
    is not registered.
    Reviewed-by: NCole Robinson <crobinso@redhat.com>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    dd52444f
libxl_driver.c 195.1 KB