• O
    npiv: Auto-generate WWN if it's not specified · 7c90026d
    Osier Yang 提交于
    The auto-generated WWN comply with the new addressing schema of WWN:
    
    <quote>
    the first nibble is either hex 5 or 6 followed by a 3-byte vendor
    identifier and 36 bits for a vendor-specified serial number.
    </quote>
    
    We choose hex 5 for the first nibble. And for the 3-bytes vendor ID,
    we uses the OUI according to underlying hypervisor type, (invoking
    virConnectGetType to get the virt type). e.g. If virConnectGetType
    returns "QEMU", we use Qumranet's OUI (00:1A:4A), if returns
    ESX|VMWARE, we use VMWARE's OUI (00:05:69). Currently it only
    supports qemu|xen|libxl|xenapi|hyperv|esx|vmware drivers. The last
    36 bits are auto-generated.
    7c90026d
node_device_driver.c 17.4 KB