Page MenuHomeFreeBSD

mfi(4)/mrsas(4): Set sysctl name for driver versions consistently
Needs ReviewPublic

Authored by michaelo on Fri, Mar 27, 5:19 PM.
Tags
None
Referenced Files
F151919171: D56110.id.diff
Sat, Apr 11, 12:59 PM
F151840589: D56110.id174385.diff
Sat, Apr 11, 12:53 AM
Unknown Object (File)
Thu, Apr 9, 4:39 AM
Unknown Object (File)
Wed, Apr 8, 6:49 AM
Unknown Object (File)
Wed, Apr 8, 2:40 AM
Unknown Object (File)
Mon, Apr 6, 2:53 AM
Unknown Object (File)
Sat, Apr 4, 10:47 AM
Unknown Object (File)
Fri, Apr 3, 4:43 AM
Subscribers
None

Details

Summary

Instead of printing the driver version over and over again if multiple
controllers are used, set a sysctl name for the used driver version.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71743
Build 68626: arc lint + arc unit

Event Timeline

michaelo created this revision.

it seems more common through the tree to just use "version" here, e.g kern.version or hw.nvidia.version.

it seems more common through the tree to just use "version" here, e.g kern.version or hw.nvidia.version.

That's a good point. What to do with the already existing name for mrsas? Add a new one and deprecate the old one in < 16?

I checked other Broadcom/AVAGO/LSI drivers (mpr, mpt). They all use "driver_version". So I think they should be either consistently "driver_version" or "version".

Good point. We should probably keep it consistent with those. I think aligning all of them to be more similar should probably be considered over the mailing list and in a different revision, if we decide to go down that route. Should we RELNOTES: yes or discuss this with others?

Good point. We should probably keep it consistent with those. I think aligning all of them to be more similar should probably be considered over the mailing list and in a different revision, if we decide to go down that route. Should we RELNOTES: yes or discuss this with others?

I'd at least move it to a separate revision and keep it out of scope of this review. I'd raise a new review next week for all Broadcom/AVAGO/LSI drivers.

@ziaee, given the conditions: Is this one good as it is?