Skip to content

Refactor: Chaning vlek_load api to thake in WrappedVlekHashstick#320

Merged
tylerfanelli merged 1 commit into
virtee:mainfrom
DGonzalezVillal:vlek-load
Aug 6, 2025
Merged

Refactor: Chaning vlek_load api to thake in WrappedVlekHashstick#320
tylerfanelli merged 1 commit into
virtee:mainfrom
DGonzalezVillal:vlek-load

Conversation

@DGonzalezVillal

Copy link
Copy Markdown
Member

Since we're updating the major version, I'd prefer having users pass the UAPI structure to the API instead of a slice. By using the UAPI struct, the library can perform the appropriate length and reserved field checks before passing the data to the firmware. This gives us better validation of the data upfront.

This approach is cleaner than passing a raw slice and makes it easier to work with compared to manually managing arrays or buffers.

Since we're updating the major version, I'd prefer having users pass the UAPI structure to the API instead of a slice. By using the UAPI struct, the library can perform the appropriate length and reserved field checks before passing the data to the firmware. This gives us better validation of the data upfront.

This approach is cleaner than passing a raw slice and makes it easier to work with compared to manually managing arrays or buffers.

Signed-off-by: DGonzalezVillal <Diego.GonzalezVillalobos@amd.com>

@larrydewey larrydewey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tylerfanelli tylerfanelli merged commit 3068e8d into virtee:main Aug 6, 2025
123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants