Page MenuHomeFreeBSD

libifconfig: Add a native SR-IOV VF status query
ClosedPublic

Authored by kbowling on Aug 10 2026, 11:00 PM.
Tags
None
Referenced Files
F171301894: D58777.id184033.diff
Thu, Sep 10, 6:34 AM
F171295372: D58777.id186000.diff
Thu, Sep 10, 5:23 AM
Unknown Object (File)
Wed, Sep 9, 3:43 AM
Unknown Object (File)
Tue, Sep 8, 5:48 PM
Unknown Object (File)
Tue, Sep 8, 5:06 PM
Unknown Object (File)
Tue, Sep 8, 4:02 PM
Unknown Object (File)
Sun, Sep 6, 11:50 AM
Unknown Object (File)
Sun, Sep 6, 5:11 AM
Subscribers

Details

Summary
Request RTEXT_FILTER_VF through route Netlink and parse the common VF
status schema into typed public structures.  Preserve per-field
presence using IFLAF_VF_* attribute numbers as mask bit indices so
callers can distinguish omitted values from false or zero.

Validate required VF indices, repeated driver namespaces, and their
versioned typed fields while allowing unknown optional attributes.

Diff Detail

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

Event Timeline

melifaro added inline comments.
lib/libifconfig/libifconfig.h
217

Those should come from the kernel headers

249

if we really want to have this snl passthru we should use definitions from the snl header

276

Why can't if_vf_info from snl be used here?

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

Maps every IFLAF_VF_* presence bit to the stable public IFCONFIG_VF_F_* flags

Use netlink/route/interface.h

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Sep 6, 1:52 PM
This revision was automatically updated to reflect the committed changes.