git: a4e0b5e28fdc - stable/13 - nvmecontrol: Fix IEEE OUI Identifier output

From: Chuck Tuffli <chuck_at_FreeBSD.org>
Date: Sat, 10 Dec 2022 19:34:52 UTC
The branch stable/13 has been updated by chuck:

URL: https://cgit.FreeBSD.org/src/commit/?id=a4e0b5e28fdc4778c9733275f0293d66347d924c

commit a4e0b5e28fdc4778c9733275f0293d66347d924c
Author:     Wanpeng Qian <wanpengqian@gmail.com>
AuthorDate: 2022-11-20 03:06:36 +0000
Commit:     Chuck Tuffli <chuck@FreeBSD.org>
CommitDate: 2022-12-12 03:21:12 +0000

    nvmecontrol: Fix IEEE OUI Identifier output
    
    Current sequence of IEEE OUI Identifier output is wrong.
    
    For Intel, current output is e4 d2 5c, specification is 5CD2E4h
    For Samsung, current output is 38 25 00, specification is 002538h
    also check with Linux nvme-cli.
    
    (cherry picked from commit 41be508d31a594f5212ef9e717df1f3e9ca295d8)
---
 sbin/nvmecontrol/identify_ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/nvmecontrol/identify_ext.c b/sbin/nvmecontrol/identify_ext.c
index 272946d319d4..ff024b451767 100644
--- a/sbin/nvmecontrol/identify_ext.c
+++ b/sbin/nvmecontrol/identify_ext.c
@@ -107,7 +107,7 @@ nvme_print_controller(struct nvme_controller_data *cdata)
 	printf("Firmware Version:            %s\n", str);
 	printf("Recommended Arb Burst:       %d\n", cdata->rab);
 	printf("IEEE OUI Identifier:         %02x %02x %02x\n",
-		cdata->ieee[0], cdata->ieee[1], cdata->ieee[2]);
+		cdata->ieee[2], cdata->ieee[1], cdata->ieee[0]);
 	printf("Multi-Path I/O Capabilities: %s%s%s%s%s\n",
 	    (cdata->mic == 0) ? "Not Supported" : "",
 	    ((cdata->mic >> NVME_CTRLR_DATA_MIC_ANAR_SHIFT) &