aboutsummaryrefslogtreecommitdiff
path: root/tests/atf_python/sys/netlink
Commit message (Collapse)AuthorAgeFilesLines
* rtnetlink: Add native SR-IOV VF statusKevin Bowling2026-09-062-0/+150
| | | | | | | | | | | | | | | | | | | | | | Add a transport neutral kernel snapshot for NIC-specific SR-IOV VF status and an optional iflib provider method. Providers gather state under driver defined synchronization. Honor RTEXT_FILTER_VF on RTM_GETLINK requests and encode the status as native typed route Netlink attributes. Represent VFs, driver namespaces, 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. The named, typed representation lets generic transports and consumers carry or display fields without knowing their driver-specific schemas, while the 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.io Differential Revision: https://reviews.freebsd.org/D58776
* net: Revert the ioctl SR-IOV VF status interfaceKevin Bowling2026-08-102-145/+0
| | | | | | | | | | | | | | | | | | | | | | A native route Netlink interface will replace this stack. Requested by: glebius This 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 statusKevin Bowling2026-08-092-0/+145
| | | | | | | | | | | | | | | | Honor RTEXT_FILTER_VF on RTM_GETLINK requests and expose the versioned SR-IOV VF status through typed nested FreeBSD attributes. Report IFLA_NUM_VF with a successful requested query and preserve per-provider errors in the status container. Map the common nvlist schema to native integer, boolean, string, and binary attributes. Carry namespaced driver extensions as packed versioned nvlists so adding a driver-specific field does not expand the common 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 packageLexi Winter2024-04-191-0/+1
| | | | | | Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1174
* netlink: add support for decoding genl ops/groups in pytestAlexander V. Chernikov2023-06-014-10/+73
| | | | MFC after: 2 weeks
* netlink: add support for adding/deleting interface addressesAlexander V. Chernikov2023-05-161-65/+158
| | | | | Differential Revision: https://reviews.freebsd.org/D40103 MFC after: 2 weeks
* testing: rename IfattrType to IfaAttrType for consistencyAlexander V. Chernikov2023-05-151-7/+7
| | | | | | | All 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 messagesAlexander V. Chernikov2023-05-152-2/+99
| | | | MFC after: 2 weeks
* testing: add support for using custom interfaces in pytest framework.Alexander V. Chernikov2023-05-151-1/+8
| | | | MFC after: 2 weeks
* tests: fix netlink type parsing.Alexander V. Chernikov2023-04-182-2/+2
| | | | | | Netlink attribute type field is 2 bytes, not one. MFC after: 2 weeks
* Testing: add framework for the kernel unit tests.Alexander V. Chernikov2023-04-144-1/+128
| | | | | | | | | | | | | | | | | | | | 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 tests Differential Revision: https://reviews.freebsd.org/D39385 MFC after: 2 weeks
* tests: fix utils import in netlink testsAlexander V. Chernikov2023-04-022-4/+2
| | | | MFC after: 2 weeks
* tests: add support for parsing generic netlink families.Alexander V. Chernikov2023-04-016-71/+299
| | | | | MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39370
* tests: split netlink.py into multiple files to impove maintainability.Alexander V. Chernikov2023-04-018-0/+1733
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 support introduction. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39365