Page MenuHomeFreeBSD

ena: Adjust PHC for multiple devices
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 6:01 AM
Unknown Object (File)
Thu, Nov 6, 1:38 AM
Unknown Object (File)
Wed, Nov 5, 10:15 PM
Unknown Object (File)
Wed, Nov 5, 7:33 PM
Unknown Object (File)
Wed, Oct 29, 3:21 AM
Unknown Object (File)
Oct 27 2025, 8:18 PM
Unknown Object (File)
Oct 20 2025, 3:00 AM
Unknown Object (File)
Oct 20 2025, 3:00 AM
Subscribers

Details

Reviewers
cperciva
Summary

Static variables are tied to the driver code and not to each driver
instance, thus, all driver instances, regardless of the devices they
manage, share the same static variables.

This modification switches the static variable "start_time" to be used
within phc struct.

In addition, rearranged several PHC variables for cache friendly
struct layout and refined several variable names and types for
enhanced clarity and accuracy.

Approved by: cperciva
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 59071
Build 55958: arc lint + arc unit