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)
Mon, Jul 28, 9:39 AM
Unknown Object (File)
Thu, Jul 17, 4:03 PM
Unknown Object (File)
Tue, Jul 15, 1:13 AM
Unknown Object (File)
Tue, Jul 8, 5:32 AM
Unknown Object (File)
Mon, Jul 7, 6:03 PM
Unknown Object (File)
Jun 28 2025, 9:17 AM
Unknown Object (File)
Jun 26 2025, 11:22 PM
Unknown Object (File)
Jun 21 2025, 11:31 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.