[PATCH] lib: PLDM supports parsing the `DeviceUpdateOptionFlags` parameter

From: Shawn.Shao
Date: Mon Sep 09 2024 - 23:03:58 EST


From: Shawn Shao <shawn.shao@xxxxxxxxxxxxxxx>

The current PLDM library does not support parsing the
DeviceUpdateOptionFlags parameter, which is defined in
the PLDM specification to facilitate the transfer of
control information between the UA (Update Agent) and
the firmware.Please refer to:
https://www.dmtf.org/sites/default/files/standards/
documents/DSP0267_1.3.0.pdf P37.

Signed-off-by: Shawn Shao <shawn.shao@xxxxxxxxxxxxxxx>
---
lib/pldmfw/pldmfw.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/pldmfw/pldmfw.c b/lib/pldmfw/pldmfw.c
index 15ba5f76043f..cd1698e9c340 100644
--- a/lib/pldmfw/pldmfw.c
+++ b/lib/pldmfw/pldmfw.c
@@ -306,6 +306,7 @@ pldm_parse_one_record(struct pldmfw_priv *data,
return err;

record_len = get_unaligned_le16(&__record->record_len);
+ record->device_update_flags = get_unaligned_le32(&__record->device_update_flags);
record->package_data_len = get_unaligned_le16(&__record->package_data_len);
record->version_len = __record->version_len;
record->version_type = __record->version_type;
--
2.34.1