Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.SettingSriov
Description
SR-IOV settings
Since: 1.14
Synopsis
- newtype SettingSriov = SettingSriov (ManagedPtr SettingSriov)
- class (GObject o, IsDescendantOf SettingSriov o) => IsSettingSriov o
- toSettingSriov :: (MonadIO m, IsSettingSriov o) => o -> m SettingSriov
- settingSriovAddVf :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> SriovVF -> m ()
- settingSriovClearVfs :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m ()
- settingSriovGetAutoprobeDrivers :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m Ternary
- settingSriovGetEswitchEncapMode :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m SriovEswitchEncapMode
- settingSriovGetEswitchInlineMode :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m SriovEswitchInlineMode
- settingSriovGetEswitchMode :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m SriovEswitchMode
- settingSriovGetNumVfs :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m Word32
- settingSriovGetTotalVfs :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> m Word32
- settingSriovGetVf :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> Word32 -> m SriovVF
- settingSriovNew :: (HasCallStack, MonadIO m) => m SettingSriov
- settingSriovRemoveVf :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> Word32 -> m ()
- settingSriovRemoveVfByIndex :: (HasCallStack, MonadIO m, IsSettingSriov a) => a -> Word32 -> m Bool
- constructSettingSriovAutoprobeDrivers :: (IsSettingSriov o, MonadIO m) => Ternary -> m (GValueConstruct o)
- getSettingSriovAutoprobeDrivers :: (MonadIO m, IsSettingSriov o) => o -> m Ternary
- setSettingSriovAutoprobeDrivers :: (MonadIO m, IsSettingSriov o) => o -> Ternary -> m ()
- constructSettingSriovEswitchEncapMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingSriovEswitchEncapMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32
- setSettingSriovEswitchEncapMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m ()
- constructSettingSriovEswitchInlineMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingSriovEswitchInlineMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32
- setSettingSriovEswitchInlineMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m ()
- constructSettingSriovEswitchMode :: (IsSettingSriov o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingSriovEswitchMode :: (MonadIO m, IsSettingSriov o) => o -> m Int32
- setSettingSriovEswitchMode :: (MonadIO m, IsSettingSriov o) => o -> Int32 -> m ()
- constructSettingSriovTotalVfs :: (IsSettingSriov o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingSriovTotalVfs :: (MonadIO m, IsSettingSriov o) => o -> m Word32
- setSettingSriovTotalVfs :: (MonadIO m, IsSettingSriov o) => o -> Word32 -> m ()
Exported types
newtype SettingSriov Source #
Memory-managed wrapper type.
Constructors
SettingSriov (ManagedPtr SettingSriov) |
Instances
Eq SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov | |
GObject SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov | |
ManagedPtrNewtype SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov Methods | |
TypedObject SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov | |
HasParentTypes SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov | |
IsGValue (Maybe SettingSriov) Source # | Convert |
Defined in GI.NM.Objects.SettingSriov Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingSriov -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingSriov) # | |
type ParentTypes SettingSriov Source # | |
Defined in GI.NM.Objects.SettingSriov |
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
(GObject o, IsDescendantOf SettingSriov o) => IsSettingSriov o Source # | |
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
Click to display all available methods, including inherited ones
Methods
addVf, bindProperty, bindPropertyFull, clearVfs, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeVf, removeVfByIndex, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getAutoprobeDrivers, getData, getDbusPropertyType, getEswitchEncapMode, getEswitchInlineMode, getEswitchMode, getName, getNumVfs, getProperty, getQdata, getSecretFlags, getTotalVfs, getVf.
Setters
addVf
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> SriovVF |
|
-> 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
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> m () |
Removes all configured VFs.
Since: 1.14
getAutoprobeDrivers
settingSriovGetAutoprobeDrivers Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> 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 |
|
-> 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 |
|
-> 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 |
|
-> 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 |
|
-> 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 |
|
-> 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
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> Word32 |
|
-> m SriovVF | Returns: the VF at index |
No description available in the introspection data.
Since: 1.14
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingSriov | Returns: the new empty |
Creates a new SettingSriov
object with default values.
Since: 1.14
removeVf
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the VF at index idx
.
Since: 1.14
removeVfByIndex
settingSriovRemoveVfByIndex Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingSriov a) | |
=> a |
|
-> Word32 |
|
-> m Bool | Returns: |
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 ]