bhyve: Store the FreeBSD OUI in little-endian in the controller data

Section 7.10.3 of the NVME 1.4b specification states that the IEEE OUI
in the identify controller structure is stored in little-endian format
(unlike the embedded OUI in EUI64 identifiers).

Reviewed by:	corvink, chuck, imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D41487
This commit is contained in:
John Baldwin 2023-08-17 11:30:50 -07:00
parent 3ff0677993
commit 18974bd616

View file

@ -525,9 +525,9 @@ pci_nvme_init_ctrldata(struct pci_nvme_softc *sc)
cd->rab = 4;
/* FreeBSD OUI */
cd->ieee[0] = 0x58;
cd->ieee[0] = 0xfc;
cd->ieee[1] = 0x9c;
cd->ieee[2] = 0xfc;
cd->ieee[2] = 0x58;
cd->mic = 0;