Re: [edk2] [PATCH v2] MdePkg/DevicePathFromText: Fix byte orders of iSCSI.Lun

2018-03-02 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Ni, Ruiyu > Sent: Saturday, March 3, 2018 1:11 PM > To: edk2-devel@lists.01.org > Cc: Lin, Jie ; Gao, Liming ; Zhu, > Yonghong > Subject: [PATCH v2] MdePkg/DevicePathFromText: Fix byte orders of iSCSI.Lun > > Per UEFI spec, iSCSI.Lun

[edk2] [PATCH v2] MdePkg/DevicePathFromText: Fix byte orders of iSCSI.Lun

2018-03-02 Thread Ruiyu Ni
Per UEFI spec, iSCSI.Lun is a 8-byte array with byte #0 in the left. It means "0102030405060708" should be converted to: UINT8[8] = {01, 02, 03, 04, 05, 06, 07, 08} or UINT64 = {0807060504030201} Today's implementation wrongly uses the reversed order. Contributed-under: TianoCore Contributio