diff options
| author | Michael Biebl <biebl@debian.org> | 2020-04-11 21:28:04 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-04-11 21:28:04 +0200 |
| commit | 1e5977b62f896e844b548c3007ace9e1dfa7f9ed (patch) | |
| tree | 7a7416ed410e72b6200f3d860fd315ec11cc106b /libnm-core/nm-setting-sriov.c | |
| parent | b012fa6e1d808e0736c009799c62d835cbfcc1dd (diff) | |
New upstream version 1.23.90 upstream/1.23.90
Diffstat (limited to 'libnm-core/nm-setting-sriov.c')
| -rw-r--r-- | libnm-core/nm-setting-sriov.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libnm-core/nm-setting-sriov.c b/libnm-core/nm-setting-sriov.c index 9ef68cce..a679a0be 100644 --- a/libnm-core/nm-setting-sriov.c +++ b/libnm-core/nm-setting-sriov.c @@ -27,7 +27,7 @@ NM_GOBJECT_PROPERTIES_DEFINE (NMSettingSriov, /** * NMSettingSriov: * - * SR-IOV settings. + * SR-IOV settings * * Since: 1.14 */ @@ -234,7 +234,7 @@ vf_add_vlan (NMSriovVF *vf, vf->vlans = _vf_vlan_create_hash (); g_hash_table_add (vf->vlans, vlan); - g_clear_pointer (&vf->vlan_ids, g_free); + nm_clear_g_free (&vf->vlan_ids); } /** @@ -530,7 +530,7 @@ nm_sriov_vf_remove_vlan (NMSriovVF *vf, guint vlan_id) || !g_hash_table_remove (vf->vlans, &vlan_id)) return FALSE; - g_clear_pointer (&vf->vlan_ids, g_free); + nm_clear_g_free (&vf->vlan_ids); return TRUE; } @@ -1217,6 +1217,8 @@ static void nm_setting_sriov_init (NMSettingSriov *setting) { setting->vfs = g_ptr_array_new_with_free_func ((GDestroyNotify) nm_sriov_vf_unref); + + setting->autoprobe_drivers = NM_TERNARY_DEFAULT; } /** @@ -1265,7 +1267,8 @@ nm_setting_sriov_class_init (NMSettingSriovClass *klass) * * Note that when the sriov setting is present NetworkManager * enforces the number of virtual functions on the interface - * also when it is zero. To prevent any changes to SR-IOV + * (also when it is zero) during activation and resets it + * upon deactivation. To prevent any changes to SR-IOV * parameters don't add a sriov setting to the connection. * * Since: 1.14 @@ -1282,7 +1285,6 @@ nm_setting_sriov_class_init (NMSettingSriovClass *klass) 0, G_MAXUINT32, 0, NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); /** @@ -1370,7 +1372,6 @@ nm_setting_sriov_class_init (NMSettingSriovClass *klass) NM_TERNARY_DEFAULT, NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, _PROPERTY_ENUMS_LAST, obj_properties); |