sriov: add support for devlink device parameters and PCIe Sub-Functions (SFs) - #610
Open
zarkdav wants to merge 6 commits into
Open
sriov: add support for devlink device parameters and PCIe Sub-Functions (SFs)#610zarkdav wants to merge 6 commits into
zarkdav wants to merge 6 commits into
Conversation
…ns (SFs) Add parser support, ABI structs, serialization, CFFI bindings, CLI automation, documentation, and test coverage for devlink-params and sub-functions. - devlink-params: allows setting generic and vendor-specific devlink device parameters (such as flow_steering_mode or enable_roce) on SR-IOV Physical Functions. - sub-functions: allows declarative configuration of PCIe Sub-Functions (SFs) including sfnum, port hardware address (hw-address), and operational state (active/inactive).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces declarative Netplan support for:
devlink-params:(e.g.,flow_steering_mode: smfs,lag_port_select_mode: multi-port-esw,enable_roce: true).sub-functions:(specifyingsfnum,hw-address, and operationalstateactive/inactive).Example YAML configuration:
Changes Made:
devlink_params(GHashTable*) andsub_functions(GArray*) fields toNetplanNetDefinition.NetplanSubFunctionstruct andNetplanSubFunctionStateenum insrc/abi.h._netplan_netdef_new_devlink_params_iter,_netplan_netdef_new_sub_function_iter) insrc/util.c.src/parse.c.src/netplan.c.src/gen-sriov.cto generatenetplan-sriov-apply.servicewhen devlink params or sub-functions are present.python-cffi/netplan/_build_cffi.pyandpython-cffi/netplan/netdef.py.devlink dev param set,devlink port add/function set/activate) innetplan_cli/cli/sriov.py.tests/ctests/test_netplan_parser.c.tests/test_sriov.py.doc/netplan-yaml.md.