summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse.c1
-rw-r--r--src/parse.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c
index b9c4692..c1dc175 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1726,6 +1726,7 @@ static const mapping_entry_handler ethernet_def_handlers[] = {
PHYSICAL_LINK_HANDLERS,
{"auth", YAML_MAPPING_NODE, handle_auth},
{"link", YAML_SCALAR_NODE, handle_netdef_id_ref, NULL, netdef_offset(sriov_link)},
+ {"virtual-function-count", YAML_SCALAR_NODE, handle_netdef_guint, NULL, netdef_offset(sriov_explicit_vf_count)},
{NULL}
};
diff --git a/src/parse.h b/src/parse.h
index e11f57d..b84ff4c 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -336,6 +336,7 @@ struct net_definition {
/* these properties are only valid for SR-IOV NICs */
struct net_definition* sriov_link;
gboolean sriov_vlan_filter;
+ guint sriov_explicit_vf_count;
union {
struct NetplanNMSettings {