gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingSriov

Description

SR-IOV settings

Since: 1.14

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingSriov o) => IsSettingSriov o Source #

Type class for types which can be safely cast to SettingSriov, for instance with toSettingSriov.

Instances

Instances details
(GObject o, IsDescendantOf SettingSriov o) => IsSettingSriov o Source # 
Instance details

Defined in GI.NM.Objects.SettingSriov

toSettingSriov :: (MonadIO m, IsSettingSriov o) => o -> m SettingSriov Source #

Cast to SettingSriov, for types for which this is known to be safe. For general casts, use castTo.

Methods

addVf

settingSriovAddVf Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> SriovVF

vf: the VF to add

-> m () 

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

clearVfs

settingSriovClearVfs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m () 

Removes all configured VFs.

Since: 1.14

getAutoprobeDrivers

settingSriovGetAutoprobeDrivers Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m Ternary

Returns: the autoprobe-drivers property value

Returns the value contained in the SettingSriov:autoprobeDrivers property.

Since: 1.14

getEswitchEncapMode

settingSriovGetEswitchEncapMode Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m SriovEswitchEncapMode

Returns: the value contained in the SettingSriov:eswitchEncapMode property.

No description available in the introspection data.

Since: 1.46

getEswitchInlineMode

settingSriovGetEswitchInlineMode Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m SriovEswitchInlineMode

Returns: the value contained in the SettingSriov:eswitchInlineMode property.

No description available in the introspection data.

Since: 1.46

getEswitchMode

settingSriovGetEswitchMode Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m SriovEswitchMode

Returns: the value contained in the SettingSriov:eswitchMode property.

No description available in the introspection data.

Since: 1.46

getNumVfs

settingSriovGetNumVfs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m Word32

Returns: the number of configured VFs

No description available in the introspection data.

Since: 1.14

getTotalVfs

settingSriovGetTotalVfs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> m Word32

Returns: the total number of SR-IOV virtual functions to create

Returns the value contained in the SettingSriov:totalVfs property.

Since: 1.14

getVf

settingSriovGetVf Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> Word32

idx: index number of the VF to return

-> m SriovVF

Returns: the VF at index idx

No description available in the introspection data.

Since: 1.14

new

settingSriovNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingSriov

Returns: the new empty SettingSriov object

Creates a new SettingSriov object with default values.

Since: 1.14

removeVf

settingSriovRemoveVf Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> Word32

idx: index number of the VF

-> m () 

Removes the VF at index idx.

Since: 1.14

removeVfByIndex

settingSriovRemoveVfByIndex Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSriov a) 
=> a

setting: the SettingSriov

-> Word32

index: the VF index of the VF to remove

-> m Bool

Returns: True if the VF was found and removed; False if it was not

Removes the VF with VF index index.

Since: 1.14

Properties

autoprobeDrivers

Whether to autoprobe virtual functions by a compatible driver.

If set to TernaryTrue, the kernel will try to bind VFs to a compatible driver and if this succeeds a new network interface will be instantiated for each VF.

If set to TernaryFalse, VFs will not be claimed and no network interfaces will be created for them.

When set to TernaryDefault, the global default is used; in case the global default is unspecified it is assumed to be TernaryTrue.

Since: 1.14

constructSettingSriovAutoprobeDrivers :: (IsSettingSriov o, MonadIO m) => Ternary -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “autoprobe-drivers” property. This is rarely needed directly, but it is used by new.

getSettingSriovAutoprobeDrivers :: (MonadIO m, IsSettingSriov o) => o -> m Ternary Source #

Get the value of the “autoprobe-drivers” property. When overloading is enabled, this is equivalent to

get settingSriov #autoprobeDrivers

setSettingSriovAutoprobeDrivers :: (MonadIO m, IsSettingSriov o) => o -> Ternary -> m () Source #

Set the value of the “autoprobe-drivers” property. When overloading is enabled, this is equivalent to

set settingSriov [ #autoprobeDrivers := value ]

eswitchEncapMode

Select the eswitch encapsulation support.

Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.

If set to SriovEswitchEncapModePreserve (default) the eswitch encap-mode won't be modified by NetworkManager.

Since: 1.46

constructSettingSriovEswitchEncapMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “eswitch-encap-mode” property. This is rarely needed directly, but it is used by new.

getSettingSriovEswitchEncapMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32 Source #

Get the value of the “eswitch-encap-mode” property. When overloading is enabled, this is equivalent to

get settingSriov #eswitchEncapMode

setSettingSriovEswitchEncapMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m () Source #

Set the value of the “eswitch-encap-mode” property. When overloading is enabled, this is equivalent to

set settingSriov [ #eswitchEncapMode := value ]

eswitchInlineMode

Select the eswitch inline-mode of the device. Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering.

Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.

If set to SriovEswitchInlineModePreserve (default) the eswitch inline-mode won't be modified by NetworkManager.

Since: 1.46

constructSettingSriovEswitchInlineMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “eswitch-inline-mode” property. This is rarely needed directly, but it is used by new.

getSettingSriovEswitchInlineMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32 Source #

Get the value of the “eswitch-inline-mode” property. When overloading is enabled, this is equivalent to

get settingSriov #eswitchInlineMode

setSettingSriovEswitchInlineMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m () Source #

Set the value of the “eswitch-inline-mode” property. When overloading is enabled, this is equivalent to

set settingSriov [ #eswitchInlineMode := value ]

eswitchMode

Select the eswitch mode of the device. Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF.

If set to SriovEswitchModePreserve (default) the eswitch mode won't be modified by NetworkManager.

Since: 1.46

constructSettingSriovEswitchMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “eswitch-mode” property. This is rarely needed directly, but it is used by new.

getSettingSriovEswitchMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32 Source #

Get the value of the “eswitch-mode” property. When overloading is enabled, this is equivalent to

get settingSriov #eswitchMode

setSettingSriovEswitchMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m () Source #

Set the value of the “eswitch-mode” property. When overloading is enabled, this is equivalent to

set settingSriov [ #eswitchMode := value ]

totalVfs

The total number of virtual functions to create.

Note that when the sriov setting is present NetworkManager enforces the number of virtual functions on the interface (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

constructSettingSriovTotalVfs :: (IsSettingSriov o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “total-vfs” property. This is rarely needed directly, but it is used by new.

getSettingSriovTotalVfs :: (MonadIO m, IsSettingSriov o) => o -> m Word32 Source #

Get the value of the “total-vfs” property. When overloading is enabled, this is equivalent to

get settingSriov #totalVfs

setSettingSriovTotalVfs :: (MonadIO m, IsSettingSriov o) => o -> Word32 -> m () Source #

Set the value of the “total-vfs” property. When overloading is enabled, this is equivalent to

set settingSriov [ #totalVfs := value ]

vfs