rtnetlink: Add native SR-IOV VF statusAdd a transport neutral kernel snapshot for NIC-specific SR-IOV VFstatus and an optional iflib provider method. Providers gather stateunder driver defined s
rtnetlink: Add native SR-IOV VF statusAdd a transport neutral kernel snapshot for NIC-specific SR-IOV VFstatus and an optional iflib provider method. Providers gather stateunder driver defined synchronization.Honor RTEXT_FILTER_VF on RTM_GETLINK requests and encode the status asnative typed route Netlink attributes. Represent VFs, drivernamespaces, and namespace fields as directly repeated nested attributes.Presence masks in consumers can distinguish omission from false or zero.Drivers may add custom status under stable, versioned namespaces. Thenamed, typed representation lets generic transports and consumers carryor display fields without knowing their driver-specific schemas, whilethe driver retains ownership of their names and meanings.Document the ABI and add parser and RTM_GETLINK coverage.Reviewed by: melifaro, iflib (gallatin), kgalazka (previous version)Sponsored by: BBOX.ioDifferential Revision: https://reviews.freebsd.org/D58776
show more ...
net: Revert the ioctl SR-IOV VF status interfaceA native route Netlink interface will replace this stack.Requested by: glebiusThis reverts commit 1ccf543b21eff6e0828142e5c1d09519247143f4.This
net: Revert the ioctl SR-IOV VF status interfaceA native route Netlink interface will replace this stack.Requested by: glebiusThis reverts commit 1ccf543b21eff6e0828142e5c1d09519247143f4.This reverts commit 2c04cfa148ec4dd5cef7e228aaea6a05957fcb15.This reverts commit 2d6114f6d26bf7dfa5ad94e1db9b09ee7108dc7a.This reverts commit d15f2551b25f79ddcbe289faa95e655100b952da.This reverts commit ceb282bbd62eed5e84df9abaede0dd183f66997a.This reverts commit c30021fe0df9e045a17292dbe50dfc054b69871f.This reverts commit fb1820d23a04856a6d3047b4c088cc8df8f76da1.This reverts commit 8696cc600f44767e7988a92c8e6fb943e97d4cc7.
rtnetlink: Report SR-IOV VF statusHonor RTEXT_FILTER_VF on RTM_GETLINK requests and expose the versionedSR-IOV VF status through typed nested FreeBSD attributes. ReportIFLA_NUM_VF with a success
rtnetlink: Report SR-IOV VF statusHonor RTEXT_FILTER_VF on RTM_GETLINK requests and expose the versionedSR-IOV VF status through typed nested FreeBSD attributes. ReportIFLA_NUM_VF with a successful requested query and preserve per-providererrors in the status container.Map the common nvlist schema to native integer, boolean, string, andbinary attributes. Carry namespaced driver extensions as packedversioned nvlists so adding a driver-specific field does not expand thecommon netlink ABI.Add SNL parsers, parser verification, a constructed nested-status test,and an RTM_GETLINK test for an interface without SR-IOV support.Document the query contract and every attribute.
tests: move atf_python/sys/ into the tests packageReviewed by: markjMFC after: 1 weekPull Request: https://github.com/freebsd/freebsd-src/pull/1174
netlink: add support for decoding genl ops/groups in pytestMFC after: 2 weeks
netlink: add support for adding/deleting interface addressesDifferential Revision: https://reviews.freebsd.org/D40103MFC after: 2 weeks
testing: rename IfattrType to IfaAttrType for consistencyAll other attribute classes are named as 'type'AttrType and 'type' int this case is ifa (interface address).MFC after: 2 weeks
testing: add support for handling Netlink carp messagesMFC after: 2 weeks
testing: add support for using custom interfaces in pytest framework.MFC after: 2 weeks
tests: fix netlink type parsing.Netlink attribute type field is 2 bytes, not one.MFC after: 2 weeks
Testing: add framework for the kernel unit tests.This changes intends to reduce the bar to the kernel unit-testing by introducing a new kernel-testing framework ("ktest") based on Netlink, loadab
Testing: add framework for the kernel unit tests.This changes intends to reduce the bar to the kernel unit-testing by introducing a new kernel-testing framework ("ktest") based on Netlink, loadable test modules and python test suite integration.This framework provides the following features:* Integration to the FreeBSD test suite* Automatic test discovery* Automatic test module loading* Minimal boiler-plate code in both kernel and userland* Passing any metadata to the test* Convenient environment pre-setup using python testing framework* Streaming messages from the kernel to the userland* Running tests in the dedicated taskqueues* Skipping or parametrizing testsDifferential Revision: https://reviews.freebsd.org/D39385MFC after: 2 weeks
tests: fix utils import in netlink testsMFC after: 2 weeks
tests: add support for parsing generic netlink families.MFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D39370
tests: split netlink.py into multiple files to impove maintainability.This diff does not contain any functional changes.Its sole purpose is splitting netlink.py into smaller chunks.The new code s
tests: split netlink.py into multiple files to impove maintainability.This diff does not contain any functional changes.Its sole purpose is splitting netlink.py into smaller chunks.The new code simplifies the upcoming generic netlink supportintroduction.MFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D39365