Top |
The NMSettingEthtool object is a NMSetting subclass that describes properties to control network driver and hardware settings.
gboolean
nm_ethtool_optname_is_feature (const char *optname
);
Checks whether optname
is a valid option name for an offload feature.
Returns
: TRUE
, if optname
is valid
Since: 1.20
gboolean
nm_ethtool_optname_is_coalesce (const char *optname
);
Checks whether optname
is a valid option name for a coalesce setting.
Returns
: TRUE
, if optname
is valid
Since: 1.26
gboolean
nm_ethtool_optname_is_ring (const char *optname
);
Checks whether optname
is a valid option name for a ring setting.
Returns
: TRUE
, if optname
is valid
Since: 1.26
NMSetting *
nm_setting_ethtool_new (void
);
Creates a new NMSettingEthtool object with default values.
Since: 1.14
const char ** nm_setting_ethtool_get_optnames (NMSettingEthtool *setting
,guint *out_length
);
nm_setting_ethtool_get_optnames
has been deprecated since version 1.26 and should not be used in newly-written code.
use nm_setting_option_get_all_names()
instead.
This returns all options names that are set. This includes the feature names
like NM_ETHTOOL_OPTNAME_FEATURE_GRO
. See nm_ethtool_optname_is_feature()
to
check whether the option name is valid for offload features.
setting |
the NMSettingEthtool instance. |
|
out_length |
return location for the number of keys returned, or |
[out][optional] |
list of set option
names or NULL
if no options are set. The option names are still owned by
setting
and may get invalidated when setting
gets modified.
[array zero-terminated=1][transfer container]
Since: 1.20
NMTernary nm_setting_ethtool_get_feature (NMSettingEthtool *setting
,const char *optname
);
nm_setting_ethtool_get_feature
has been deprecated since version 1.26 and should not be used in newly-written code.
use nm_setting_option_get_boolean()
instead.
Gets and offload feature setting. Returns NM_TERNARY_DEFAULT
if the
feature is not set.
Note that optname
must be a valid name for a feature, according to
nm_ethtool_optname_is_feature()
.
a NMTernary value indicating whether the offload feature is enabled, disabled, or left untouched.
Since: 1.14
void nm_setting_ethtool_set_feature (NMSettingEthtool *setting
,const char *optname
,NMTernary value
);
nm_setting_ethtool_set_feature
has been deprecated since version 1.26 and should not be used in newly-written code.
use nm_setting_option_set()
or nm_setting_option_set_boolean()
instead.
Sets and offload feature setting.
Note that optname
must be a valid name for a feature, according to
nm_ethtool_optname_is_feature()
.
setting |
the NMSettingEthtool |
|
optname |
option name of the offload feature to get |
|
value |
the new value to set. The special value |
Since: 1.14
void
nm_setting_ethtool_clear_features (NMSettingEthtool *setting
);
nm_setting_ethtool_clear_features
has been deprecated since version 1.26 and should not be used in newly-written code.
use nm_setting_option_clear_by_name()
with nm_ethtool_optname_is_feature()
predicate instead.
Clears all offload features settings
Since: 1.14