Page MenuHomeFreeBSD

OFED: Add generic function to extract IB speed from netdev
Needs ReviewPublic

Authored by jhb on Mon, Jun 29, 6:58 PM.

Details

Reviewers
kgalazka
sumit.saxena_broadcom.com
kib
slavash
aehrenberg_nvidia.com
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

Obtained from: Linux commit d41861942fc55c14b6280d9568a0d0112037f065
Sponsored by: Chelsio Communications

Diff Detail

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

Event Timeline

Owners added a reviewer: Restricted Owners Package.Mon, Jun 29, 6:58 PM
jhb requested review of this revision.Mon, Jun 29, 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?