Page MenuHomeFreeBSD

qlnx: Report SR-IOV VF status
Needs ReviewPublic

Authored by kbowling on Aug 9 2026, 7:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 10:34 AM
Unknown Object (File)
Sun, Oct 4, 3:08 AM
Unknown Object (File)
Sat, Oct 3, 10:12 AM
Unknown Object (File)
Sat, Oct 3, 12:37 AM
Unknown Object (File)
Fri, Oct 2, 11:12 PM
Unknown Object (File)
Fri, Oct 2, 12:49 PM
Unknown Object (File)
Thu, Oct 1, 4:18 AM
Unknown Object (File)
Wed, Sep 30, 8:36 PM
Subscribers

Details

Reviewers
zlei
Summary
Retain the PF-known MAC and allocated transmit and receive queue counts
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.
Unpublish it before hardware teardown, and invalidate queue-allocation
knowledge when error recovery releases the underlying VF resources.

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.

kbowling edited the summary of this revision. (Show Details)

Update to committed netlink API

@kbowling I have the hardware ( QLogic FastLinQ QL41000 ) which is supported by this driver. Do you want me to test with this new feature ?

@kbowling I have the hardware ( QLogic FastLinQ QL41000 ) which is supported by this driver. Do you want me to test with this new feature ?

Yes please. Create some VFs with iovctl and use 'ifconfig -v'