Non-functional change. Sort the OEM records in dmi_decode_hp. Signed-off-by: Jerry Hoemann <jerry.hoem...@hpe.com> --- dmioem.c | 58 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/dmioem.c b/dmioem.c index 60b6674..beb3df0 100644 --- a/dmioem.c +++ b/dmioem.c @@ -208,35 +208,6 @@ static int dmi_decode_hp(const struct dmi_header *h) } break; - case 233: - /* - * Vendor Specific: HPE ProLiant NIC MAC Information - * - * This prints the BIOS NIC number, - * PCI bus/device/function, and MAC address - * - * Offset | Name | Width | Description - * ------------------------------------- - * 0x00 | Type | BYTE | 0xE9, NIC structure - * 0x01 | Length | BYTE | Length of structure - * 0x02 | Handle | WORD | Unique handle - * 0x04 | Grp No | WORD | 0 for single segment - * 0x06 | Bus No | BYTE | PCI Bus - * 0x07 | Dev No | BYTE | PCI Device/Function No - * 0x08 | MAC | 32B | MAC addr padded w/ 0s - * 0x28 | Port No| BYTE | Each NIC maps to a Port - */ - pr_handle_name("%s BIOS PXE NIC PCI and MAC Information", - company); - if (h->length < 0x0E) break; - /* If the record isn't long enough, we don't have an ID - * use 0xFF to use the internal counter. - * */ - nic = h->length > 0x28 ? data[0x28] : 0xFF; - dmi_print_hp_net_iface_rec(nic, data[0x06], data[0x07], - &data[0x08]); - break; - case 212: /* * Vendor Specific: HPE 64-bit CRU Information @@ -282,6 +253,35 @@ static int dmi_decode_hp(const struct dmi_header *h) pr_subattr("UEFI", "%s", feat & 0x1400 ? "Yes" : "No"); break; + case 233: + /* + * Vendor Specific: HPE ProLiant NIC MAC Information + * + * This prints the BIOS NIC number, + * PCI bus/device/function, and MAC address + * + * Offset | Name | Width | Description + * ------------------------------------- + * 0x00 | Type | BYTE | 0xE9, NIC structure + * 0x01 | Length | BYTE | Length of structure + * 0x02 | Handle | WORD | Unique handle + * 0x04 | Grp No | WORD | 0 for single segment + * 0x06 | Bus No | BYTE | PCI Bus + * 0x07 | Dev No | BYTE | PCI Device/Function No + * 0x08 | MAC | 32B | MAC addr padded w/ 0s + * 0x28 | Port No| BYTE | Each NIC maps to a Port + */ + pr_handle_name("%s BIOS PXE NIC PCI and MAC Information", + company); + if (h->length < 0x0E) break; + /* If the record isn't long enough, we don't have an ID + * use 0xFF to use the internal counter. + * */ + nic = h->length > 0x28 ? data[0x28] : 0xFF; + dmi_print_hp_net_iface_rec(nic, data[0x06], data[0x07], + &data[0x08]); + break; + default: return 0; } -- 2.27.0 _______________________________________________ https://lists.nongnu.org/mailman/listinfo/dmidecode-devel