Page MenuHomeFreeBSD

qlnx: Report SR-IOV VF status
Needs ReviewPublic

Authored by kbowling on Sun, Aug 9, 7:01 AM.
Tags
None
Referenced Files
F167420829: D58742.id183851.diff
Fri, Aug 21, 3:43 PM
F167410187: D58742.id183720.diff
Fri, Aug 21, 2:50 PM
F167385940: D58742.id183720.diff
Fri, Aug 21, 12:05 PM
Unknown Object (File)
Fri, Aug 21, 10:12 AM
Unknown Object (File)
Thu, Aug 20, 11:07 PM
Unknown Object (File)
Thu, Aug 20, 8:58 PM
Unknown Object (File)
Thu, Aug 20, 2:58 PM
Unknown Object (File)
Thu, Aug 20, 2:57 AM
Subscribers

Details

Reviewers
zlei
Summary
Retain the effective MAC and allocated receive-queue count for each VF
and expose them through the PF ifnet.  Sum queues across all hardware
functions rather than reporting only the first one.

Publish and snapshot the VF cache under the existing hardware lock so
status queries cannot race IOV configuration or teardown.

Initialize the cache, release it on failed initialization, and reject
an out-of-range VF index instead of continuing into the array.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This is a basic implementation, someone more familiar with the driver may look at the nvlist schema and https://reviews.freebsd.org/D58739 which demonstrates driver extensions.