Page MenuHomeFreeBSD

ocs_fc: Support persistent topology feature
ClosedPublic

Authored by ram on Mar 3 2022, 4:15 PM.
Tags
None
Referenced Files
F170951786: D34425.diff
Mon, Sep 7, 7:56 PM
Unknown Object (File)
Sat, Sep 5, 7:38 PM
Unknown Object (File)
Sat, Sep 5, 4:13 PM
Unknown Object (File)
Sat, Sep 5, 3:16 PM
Unknown Object (File)
Fri, Sep 4, 6:59 AM
Unknown Object (File)
Fri, Sep 4, 6:55 AM
Unknown Object (File)
Fri, Sep 4, 2:38 AM
Unknown Object (File)
Thu, Sep 3, 3:15 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44628
Build 41516: arc lint + arc unit

Event Timeline

ram requested review of this revision.Mar 3 2022, 4:15 PM

I have no objections. Just few thoughts inline. It would help if you describe it a bit more in description, so we would not have to guess what it should do.

sys/dev/ocs_fc/ocs_xport.c
399

If I read this right, setting topology with tunable once will make it persistent, and it will remain so even when tunable is later removed until I guess it is reset to auto via sysctl?

sys/dev/ocs_fc/sli4.c
818

Why this branching is needed at all? Why not just assign enable_topology_failover always?

886

As I see return value of this and at least few other functions I checked is only used as boolean. Just a bit odd.

This revision is now accepted and ready to land.Mar 3 2022, 7:02 PM
ram marked an inline comment as done.Mar 4 2022, 4:26 AM
ram added inline comments.
sys/dev/ocs_fc/ocs_xport.c
399

Yes, topology will be persistent across reboots until changed via sysctl/module param. The persistent topology feature helps the emulex adapter BIOS to set the same topology.

sys/dev/ocs_fc/sli4.c
818

Will change it to assign tf directly.

886

Yes, most of the SLI interface function had this issue. I will take that task in a different patch.