| Top |
| NMSetting * | nm_setting_sriov_new () |
| guint | nm_setting_sriov_get_total_vfs () |
| guint | nm_setting_sriov_get_num_vfs () |
| NMSriovVF * | nm_setting_sriov_get_vf () |
| void | nm_setting_sriov_add_vf () |
| void | nm_setting_sriov_remove_vf () |
| gboolean | nm_setting_sriov_remove_vf_by_index () |
| void | nm_setting_sriov_clear_vfs () |
| NMTernary | nm_setting_sriov_get_autoprobe_drivers () |
| gboolean | nm_sriov_vf_add_vlan () |
| gboolean | nm_sriov_vf_remove_vlan () |
| const guint * | nm_sriov_vf_get_vlan_ids () |
| void | nm_sriov_vf_set_vlan_qos () |
| void | nm_sriov_vf_set_vlan_protocol () |
| guint32 | nm_sriov_vf_get_vlan_qos () |
| NMSriovVFVlanProtocol | nm_sriov_vf_get_vlan_protocol () |
| NMSriovVF * | nm_sriov_vf_new () |
| void | nm_sriov_vf_ref () |
| void | nm_sriov_vf_unref () |
| gboolean | nm_sriov_vf_equal () |
| NMSriovVF * | nm_sriov_vf_dup () |
| guint | nm_sriov_vf_get_index () |
| void | nm_sriov_vf_set_attribute () |
| const char ** | nm_sriov_vf_get_attribute_names () |
| GVariant * | nm_sriov_vf_get_attribute () |
| gboolean | nm_sriov_vf_attribute_validate () |
| #define | NM_SETTING_SRIOV_SETTING_NAME |
| #define | NM_SETTING_SRIOV_TOTAL_VFS |
| #define | NM_SETTING_SRIOV_VFS |
| #define | NM_SETTING_SRIOV_AUTOPROBE_DRIVERS |
| #define | NM_SRIOV_VF_ATTRIBUTE_MAC |
| #define | NM_SRIOV_VF_ATTRIBUTE_SPOOF_CHECK |
| #define | NM_SRIOV_VF_ATTRIBUTE_TRUST |
| #define | NM_SRIOV_VF_ATTRIBUTE_MIN_TX_RATE |
| #define | NM_SRIOV_VF_ATTRIBUTE_MAX_TX_RATE |
| enum | NMSriovVFVlanProtocol |
NMSetting *
nm_setting_sriov_new (void);
Creates a new NMSettingSriov object with default values.
Since: 1.14
guint
nm_setting_sriov_get_total_vfs (NMSettingSriov *setting);
Returns the value contained in the “total-vfs” property.
Since: 1.14
guint
nm_setting_sriov_get_num_vfs (NMSettingSriov *setting);
Since: 1.14
NMSriovVF * nm_setting_sriov_get_vf (NMSettingSriov *setting,guint idx);
Since: 1.14
void nm_setting_sriov_add_vf (NMSettingSriov *setting,NMSriovVF *vf);
Appends a new VF and associated information to the setting. The given VF is duplicated internally and is not changed by this function.
Since: 1.14
void nm_setting_sriov_remove_vf (NMSettingSriov *setting,guint idx);
Removes the VF at index idx
.
Since: 1.14
gboolean nm_setting_sriov_remove_vf_by_index (NMSettingSriov *setting,guint index);
Removes the VF with VF index index
.
Since: 1.14
void
nm_setting_sriov_clear_vfs (NMSettingSriov *setting);
Removes all configured VFs.
Since: 1.14
NMTernary
nm_setting_sriov_get_autoprobe_drivers
(NMSettingSriov *setting);
Returns the value contained in the “autoprobe-drivers” property.
Since: 1.14
gboolean nm_sriov_vf_add_vlan (NMSriovVF *vf,guint vlan_id);
Adds a VLAN to the VF.
Since: 1.14
gboolean nm_sriov_vf_remove_vlan (NMSriovVF *vf,guint vlan_id);
Removes a VLAN from a VF.
Since: 1.14
const guint * nm_sriov_vf_get_vlan_ids (const NMSriovVF *vf,guint *length);
Returns the VLANs currently configured on the VF.
Since: 1.14
void nm_sriov_vf_set_vlan_qos (NMSriovVF *vf,guint vlan_id,guint32 qos);
Sets a QoS value for the given VLAN.
Since: 1.14
void nm_sriov_vf_set_vlan_protocol (NMSriovVF *vf,guint vlan_id,NMSriovVFVlanProtocol protocol);
Sets the protocol for the given VLAN.
Since: 1.14
guint32 nm_sriov_vf_get_vlan_qos (const NMSriovVF *vf,guint vlan_id);
Returns the QoS value for the given VLAN.
Since: 1.14
NMSriovVFVlanProtocol nm_sriov_vf_get_vlan_protocol (const NMSriovVF *vf,guint vlan_id);
void
nm_sriov_vf_ref (NMSriovVF *vf);
Increases the reference count of the object.
Since: 1.14
void
nm_sriov_vf_unref (NMSriovVF *vf);
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.14
gboolean nm_sriov_vf_equal (const NMSriovVF *vf,const NMSriovVF *other);
Determines if two NMSriovVF objects have the same index, attributes and VLANs.
Since: 1.14
NMSriovVF *
nm_sriov_vf_dup (const NMSriovVF *vf);
Creates a copy of vf
.
Since: 1.14
guint
nm_sriov_vf_get_index (const NMSriovVF *vf);
Gets the index property of this VF object.
Since: 1.14
void nm_sriov_vf_set_attribute (NMSriovVF *vf,const char *name,GVariant *value);
Sets the named attribute on vf
to the given value.
vf |
the NMSriovVF |
|
name |
the name of a route attribute |
|
value |
the value. |
[transfer none][allow-none] |
Since: 1.14
const char **
nm_sriov_vf_get_attribute_names (const NMSriovVF *vf);
Gets an array of attribute names defined on vf
.
Since: 1.14
GVariant * nm_sriov_vf_get_attribute (const NMSriovVF *vf,const char *name);
Gets the value of the attribute with name name
on vf
the value of the attribute with name name
on
vf
, or NULL if vf
has no such attribute.
[transfer none]
Since: 1.14
gboolean nm_sriov_vf_attribute_validate (const char *name,GVariant *value,gboolean *known,GError **error);
Validates a VF attribute, i.e. checks that the attribute is a known one, the value is of the correct type and well-formed.
name |
the attribute name |
|
value |
the attribute value |
|
known |
on return, whether the attribute name is a known one. |
[out] |
error |
return location for a GError, or |
[allow-none] |
Since: 1.14