NMSettingSriov: libnm Reference Manual

## NMSettingSriov NMSettingSriov |

## Functions

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 ()

## Types and Values

#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

## Object Hierarchy

        GBoxed
        ╰── NMSriovVF
        GEnum
        ╰── NMSriovVFVlanProtocol

## Description

## Functions

### nm_setting_sriov_new ()

    NMSetting *
    nm_setting_sriov_new (void);

### nm_setting_sriov_get_total_vfs ()

    guint
    nm_setting_sriov_get_total_vfs (NMSettingSriov *setting);

### nm_setting_sriov_get_num_vfs ()

    guint
    nm_setting_sriov_get_num_vfs (NMSettingSriov *setting);

### nm_setting_sriov_get_vf ()

    NMSriovVF *
    nm_setting_sriov_get_vf (NMSettingSriov *setting,
                             guint idx);

### nm_setting_sriov_add_vf ()

    void
    nm_setting_sriov_add_vf (NMSettingSriov *setting,
                             NMSriovVF *vf);

### nm_setting_sriov_remove_vf ()

    void
    nm_setting_sriov_remove_vf (NMSettingSriov *setting,
                                guint idx);

### nm_setting_sriov_remove_vf_by_index ()

    gboolean
    nm_setting_sriov_remove_vf_by_index (NMSettingSriov *setting,
                                         guint index);

### nm_setting_sriov_clear_vfs ()

    void
    nm_setting_sriov_clear_vfs (NMSettingSriov *setting);

### nm_setting_sriov_get_autoprobe_drivers ()

    NMTernary
    nm_setting_sriov_get_autoprobe_drivers
                                   (NMSettingSriov *setting);

### nm_sriov_vf_add_vlan ()

    gboolean
    nm_sriov_vf_add_vlan (NMSriovVF *vf,
                          guint vlan_id);

### nm_sriov_vf_remove_vlan ()

    gboolean
    nm_sriov_vf_remove_vlan (NMSriovVF *vf,
                             guint vlan_id);

### nm_sriov_vf_get_vlan_ids ()

    const guint *
    nm_sriov_vf_get_vlan_ids (const NMSriovVF *vf,
                              guint *length);

### nm_sriov_vf_set_vlan_qos ()

    void
    nm_sriov_vf_set_vlan_qos (NMSriovVF *vf,
                              guint vlan_id,
                              guint32 qos);

### nm_sriov_vf_set_vlan_protocol ()

    void
    nm_sriov_vf_set_vlan_protocol (NMSriovVF *vf,
                                   guint vlan_id,
                                   NMSriovVFVlanProtocol protocol);

### nm_sriov_vf_get_vlan_qos ()

    guint32
    nm_sriov_vf_get_vlan_qos (const NMSriovVF *vf,
                              guint vlan_id);

### nm_sriov_vf_get_vlan_protocol ()

    NMSriovVFVlanProtocol
    nm_sriov_vf_get_vlan_protocol (const NMSriovVF *vf,
                                   guint vlan_id);

### nm_sriov_vf_new ()

    NMSriovVF *
    nm_sriov_vf_new (guint index);

### nm_sriov_vf_ref ()

    void
    nm_sriov_vf_ref (NMSriovVF *vf);

### nm_sriov_vf_unref ()

    void
    nm_sriov_vf_unref (NMSriovVF *vf);

### nm_sriov_vf_equal ()

    gboolean
    nm_sriov_vf_equal (const NMSriovVF *vf,
                       const NMSriovVF *other);

### nm_sriov_vf_dup ()

    NMSriovVF *
    nm_sriov_vf_dup (const NMSriovVF *vf);

### nm_sriov_vf_get_index ()

    guint
    nm_sriov_vf_get_index (const NMSriovVF *vf);

### nm_sriov_vf_set_attribute ()

    void
    nm_sriov_vf_set_attribute (NMSriovVF *vf,
                               const char *name,
                               GVariant *value);

### nm_sriov_vf_get_attribute_names ()

    const char **
    nm_sriov_vf_get_attribute_names (const NMSriovVF *vf);

### nm_sriov_vf_get_attribute ()

    GVariant *
    nm_sriov_vf_get_attribute (const NMSriovVF *vf,
                               const char *name);

### nm_sriov_vf_attribute_validate ()

    gboolean
    nm_sriov_vf_attribute_validate (const char *name,
                                    GVariant *value,
                                    gboolean *known,
                                    GError **error);

## Types and Values

### NM_SETTING_SRIOV_SETTING_NAME

    #define NM_SETTING_SRIOV_SETTING_NAME "sriov"

### NM_SETTING_SRIOV_TOTAL_VFS

    #define NM_SETTING_SRIOV_TOTAL_VFS         "total-vfs"

### NM_SETTING_SRIOV_VFS

    #define NM_SETTING_SRIOV_VFS               "vfs"

### NM_SETTING_SRIOV_AUTOPROBE_DRIVERS

    #define NM_SETTING_SRIOV_AUTOPROBE_DRIVERS "autoprobe-drivers"

### NM_SRIOV_VF_ATTRIBUTE_MAC

    #define NM_SRIOV_VF_ATTRIBUTE_MAC         "mac"

### NM_SRIOV_VF_ATTRIBUTE_SPOOF_CHECK

    #define NM_SRIOV_VF_ATTRIBUTE_SPOOF_CHECK "spoof-check"

### NM_SRIOV_VF_ATTRIBUTE_TRUST

    #define NM_SRIOV_VF_ATTRIBUTE_TRUST       "trust"

### NM_SRIOV_VF_ATTRIBUTE_MIN_TX_RATE

    #define NM_SRIOV_VF_ATTRIBUTE_MIN_TX_RATE "min-tx-rate"

### NM_SRIOV_VF_ATTRIBUTE_MAX_TX_RATE

    #define NM_SRIOV_VF_ATTRIBUTE_MAX_TX_RATE "max-tx-rate"

### enum NMSriovVFVlanProtocol

NMSriovVFVlanProtocol indicates the VLAN protocol to use.

#### Members

NM_SRIOV_VF_VLAN_PROTOCOL_802_1Q | use 802.1Q |
NM_SRIOV_VF_VLAN_PROTOCOL_802_1AD | use 802.1ad |

Since: 1.14