]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Create EUI64 for NVMe namespaces
authorchuck <chuck@FreeBSD.org>
Sat, 13 Jul 2019 12:48:28 +0000 (12:48 +0000)
committerchuck <chuck@FreeBSD.org>
Sat, 13 Jul 2019 12:48:28 +0000 (12:48 +0000)
commit2449e50de0f66dd0ec024c9ed6099597befb2ee6
treeac91aa4bd962cf28965245181473a226b52c3cd3
parent643dee5f1e863678bb8a6a58b0b4fa51e43cc1da
bhyve: Create EUI64 for NVMe namespaces

Accept an IEEE Extended Unique Identifier (EUI-64) from the command
line for each NVMe namespace. If one isn't provided, it will create one
based on the CRC16 of:
 - the FreeBSD IEEE OUI
 - PCI bus, device/slot, function values
 - Namespace ID

Reviewed by: imp, araujo, jhb, rgrimes
Approved by: imp (mentor), jhb (maintainer)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D19905
sys/net/ieee_oui.h
usr.sbin/bhyve/pci_nvme.c