Page MenuHomeFreeBSD

OFED: Add generic function to extract IB speed from netdev
ClosedPublic

Authored by jhb on Jun 29 2026, 6:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 14, 7:53 PM
Unknown Object (File)
Fri, Aug 14, 7:51 PM
Unknown Object (File)
Wed, Aug 12, 11:19 PM
Unknown Object (File)
Mon, Aug 10, 1:53 PM
Unknown Object (File)
Mon, Aug 10, 10:10 AM
Unknown Object (File)
Sun, Aug 9, 7:22 PM
Unknown Object (File)
Sun, Aug 9, 5:28 PM
Unknown Object (File)
Fri, Aug 7, 7:55 PM
Subscribers

Details

Summary

Obtained from: Linux commit d41861942fc55c14b6280d9568a0d0112037f065
Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jun 29 2026, 6:58 PM
jhb requested review of this revision.Jun 29 2026, 6:58 PM

The upstream Linux commit changed bnxt_re(4) to also use this, but the current code in bnxt_re(4) assumes it has access to a count of lanes, and we don't currently have a way to get that from an ifp. If we add something like that in the future (if_getlanes() or something), then we can backport the commit that added the internal function ib_get_width_and_speed that takes lanes into account. Alternatively, I could backport that commit as well but expose the static function so that bnxt_re(4) could use it directly?

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Jul 29, 6:45 PM
This revision was automatically updated to reflect the committed changes.