aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-08-17 18:30:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-09-06 21:56:10 +0000
commita11b9463ff582a3ec95d85ddecf930c5a84bee2a (patch)
treefc3c3bfea9225f1a9cb74e9ee465200eb2631b5a
parentc2cd285bfe41574490e5f2c11b113e5fb8536a55 (diff)
downloadsrc-a11b9463ff582a3ec95d85ddecf930c5a84bee2a.tar.gz
src-a11b9463ff582a3ec95d85ddecf930c5a84bee2a.zip
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 (cherry picked from commit 18974bd616ae141c8721b8b01eb634670f5ccd56)
-rw-r--r--usr.sbin/bhyve/pci_nvme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
index 2a4ce332fd1a..073b37d4d6d9 100644
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -527,9 +527,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;