git: a11b9463ff58 - stable/13 - bhyve: Store the FreeBSD OUI in little-endian in the controller data
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Sep 2023 21:56:50 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=a11b9463ff582a3ec95d85ddecf930c5a84bee2a
commit a11b9463ff582a3ec95d85ddecf930c5a84bee2a
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-08-17 18:30:50 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-09-06 21:56:10 +0000
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)
---
usr.sbin/bhyve/pci_nvme.c | 4 ++--
1 file 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;