Top |
#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. Currently kernel only supports one VLAN per 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. Currently kernel only supports one VLAN per 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
);
NMSriovVF *
nm_sriov_vf_new (guint index
);
Creates a new NMSriovVF object.
Since: 1.14
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