Page MenuHomeFreeBSD

ntb_hw(4): Add sysctls for administrative/test link config, state
ClosedPublic

Authored by cem on May 17 2016, 10:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 16, 4:10 AM
Unknown Object (File)
Wed, May 15, 11:49 PM
Unknown Object (File)
Tue, Apr 23, 8:34 PM
Unknown Object (File)
Feb 23 2024, 1:06 PM
Unknown Object (File)
Feb 8 2024, 1:04 PM
Unknown Object (File)
Jan 3 2024, 3:32 AM
Unknown Object (File)
Dec 22 2023, 9:40 PM
Unknown Object (File)
Dec 18 2023, 1:33 AM
Subscribers

Details

Summary

dev.ntb_hw.0.admin_up=0/1: Like ifconfig UP/DOWN.
dev.ntb_hw.0.active=0/1: Like ifconfig 'status'

Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cem retitled this revision from to ntb_hw(4): Add sysctls for administrative/test link config, state.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added a reviewer: ngie.

Accidentally got an older version of the patch. This is the latest version.

sys/dev/ntb/ntb_hw/ntb_hw.c
2646 ↗(On Diff #16491)

Should these be #defines that correspond with admin_up's states?

sys/dev/ntb/ntb_hw/ntb_hw.c
2646 ↗(On Diff #16491)

NTB_SPEED/WIDTH are already a set of enums. For now, I don't think there's any need to expose speed/width as administrative configuration options. The hw will just train whatever the best it can sustain.

Later, knobs could be added to configure speed/width like ifconfig.

Add missing newlines to debug printfs.

ngie edited edge metadata.
This revision is now accepted and ready to land.May 18 2016, 12:44 AM
This revision was automatically updated to reflect the committed changes.