Top | ![]() |
![]() |
![]() |
![]() |
gboolean | nm_ethtool_optname_is_feature () |
gboolean | nm_ethtool_optname_is_coalesce () |
gboolean | nm_ethtool_optname_is_ring () |
NMSetting * | nm_setting_ethtool_new () |
const char ** | nm_setting_ethtool_get_optnames () |
NMTernary | nm_setting_ethtool_get_feature () |
void | nm_setting_ethtool_set_feature () |
void | nm_setting_ethtool_clear_features () |
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
#define NM_ETHTOOL_OPTNAME_FEATURE_ESP_HW_OFFLOAD "feature-esp-hw-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_ESP_TX_CSUM_HW_OFFLOAD "feature-esp-tx-csum-hw-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_HW_TC_OFFLOAD "feature-hw-tc-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_L2_FWD_OFFLOAD "feature-l2-fwd-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_RX_GRO_HW "feature-rx-gro-hw"
#define NM_ETHTOOL_OPTNAME_FEATURE_RX_UDP_TUNNEL_PORT_OFFLOAD "feature-rx-udp_tunnel-port-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_FILTER "feature-rx-vlan-filter"
#define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_FILTER "feature-rx-vlan-stag-filter"
#define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_HW_PARSE "feature-rx-vlan-stag-hw-parse"
#define NM_ETHTOOL_OPTNAME_FEATURE_TLS_HW_RECORD "feature-tls-hw-record"
#define NM_ETHTOOL_OPTNAME_FEATURE_TLS_HW_TX_OFFLOAD "feature-tls-hw-tx-offload"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_FCOE_CRC "feature-tx-checksum-fcoe-crc"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV4 "feature-tx-checksum-ipv4"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV6 "feature-tx-checksum-ipv6"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IP_GENERIC "feature-tx-checksum-ip-generic"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_SCTP "feature-tx-checksum-sctp"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_ESP_SEGMENTATION "feature-tx-esp-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_FCOE_SEGMENTATION "feature-tx-fcoe-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_GRE_CSUM_SEGMENTATION "feature-tx-gre-csum-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_GRE_SEGMENTATION "feature-tx-gre-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_GSO_PARTIAL "feature-tx-gso-partial"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_GSO_ROBUST "feature-tx-gso-robust"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_IPXIP4_SEGMENTATION "feature-tx-ipxip4-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_IPXIP6_SEGMENTATION "feature-tx-ipxip6-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_NOCACHE_COPY "feature-tx-nocache-copy"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER "feature-tx-scatter-gather"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER_FRAGLIST "feature-tx-scatter-gather-fraglist"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCTP_SEGMENTATION "feature-tx-sctp-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP6_SEGMENTATION "feature-tx-tcp6-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_ECN_SEGMENTATION "feature-tx-tcp-ecn-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_MANGLEID_SEGMENTATION "feature-tx-tcp-mangleid-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_SEGMENTATION "feature-tx-tcp-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_SEGMENTATION "feature-tx-udp-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_CSUM_SEGMENTATION "feature-tx-udp_tnl-csum-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_SEGMENTATION "feature-tx-udp_tnl-segmentation"
#define NM_ETHTOOL_OPTNAME_FEATURE_TX_VLAN_STAG_HW_INSERT "feature-tx-vlan-stag-hw-insert"
#define NM_ETHTOOL_OPTNAME_COALESCE_ADAPTIVE_RX "coalesce-adaptive-rx"
#define NM_ETHTOOL_OPTNAME_COALESCE_ADAPTIVE_TX "coalesce-adaptive-tx"
#define NM_ETHTOOL_OPTNAME_COALESCE_PKT_RATE_HIGH "coalesce-pkt-rate-high"
#define NM_ETHTOOL_OPTNAME_COALESCE_PKT_RATE_LOW "coalesce-pkt-rate-low"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES "coalesce-rx-frames"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_HIGH "coalesce-rx-frames-high"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_IRQ "coalesce-rx-frames-irq"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_LOW "coalesce-rx-frames-low"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS "coalesce-rx-usecs"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_HIGH "coalesce-rx-usecs-high"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_IRQ "coalesce-rx-usecs-irq"
#define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_LOW "coalesce-rx-usecs-low"
#define NM_ETHTOOL_OPTNAME_COALESCE_SAMPLE_INTERVAL "coalesce-sample-interval"
#define NM_ETHTOOL_OPTNAME_COALESCE_STATS_BLOCK_USECS "coalesce-stats-block-usecs"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES "coalesce-tx-frames"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_HIGH "coalesce-tx-frames-high"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_IRQ "coalesce-tx-frames-irq"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_LOW "coalesce-tx-frames-low"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS "coalesce-tx-usecs"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_HIGH "coalesce-tx-usecs-high"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_IRQ "coalesce-tx-usecs-irq"
#define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_LOW "coalesce-tx-usecs-low"