From c50a03f2f1882fcb012e3626176c7871a9aca46a Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Thu, 14 Oct 2021 17:30:05 +0200 Subject: [PATCH] libnm-core: improve SR-IOV VF vlan support documentation Currently kernel only support one VLAN per VF. This must be specified in the methods documentation. Signed-off-by: Fernando Fernandez Mancera --- src/libnm-core-impl/nm-setting-sriov.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libnm-core-impl/nm-setting-sriov.c b/src/libnm-core-impl/nm-setting-sriov.c index e044a856f6..a024dba6c2 100644 --- a/src/libnm-core-impl/nm-setting-sriov.c +++ b/src/libnm-core-impl/nm-setting-sriov.c @@ -471,7 +471,7 @@ _nm_sriov_vf_attribute_validate_all(const NMSriovVF *vf, GError **error) * @vf: the #NMSriovVF * @vlan_id: the VLAN id * - * Adds a VLAN to the VF. + * Adds a VLAN to the VF. Currently kernel only supports one VLAN per VF. * * Returns: %TRUE if the VLAN was added; %FALSE if it already existed * @@ -535,7 +535,8 @@ vlan_id_compare(gconstpointer a, gconstpointer b, gpointer user_data) * @vf: the #NMSriovVF * @length: (out) (allow-none): on return, the number of VLANs configured * - * Returns the VLANs currently configured on the VF. + * Returns the VLANs currently configured on the VF. Currently kernel only + * supports one VLAN per VF. * * Returns: (transfer none) (array length=length): a list of VLAN ids configured on the VF. *