mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
link : add support to configure LRO and GRO Offload features
The patch supports to configure GenericReceiveOffload LargeReceiveOffload
This commit is contained in:
parent
50725d10e3
commit
f7ea90fbba
@ -411,6 +411,22 @@
|
|||||||
Defaults to "unset".</para>
|
Defaults to "unset".</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>GenericReceiveOffload=</varname></term>
|
||||||
|
<listitem>
|
||||||
|
<para>The Generic Receive Offload (GRO) when true enables
|
||||||
|
generic receive offload. Takes a boolean value.
|
||||||
|
Defaults to "unset".</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>LargeReceiveOffload=</varname></term>
|
||||||
|
<listitem>
|
||||||
|
<para>The Large Receive Offload (LRO) when true enables
|
||||||
|
large receive offload. Takes a boolean value.
|
||||||
|
Defaults to "unset".</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@ DEFINE_CONFIG_PARSE_ENUM(config_parse_wol, wol, WakeOnLan, "Failed to parse Wake
|
|||||||
|
|
||||||
static const char* const netdev_feature_table[_NET_DEV_FEAT_MAX] = {
|
static const char* const netdev_feature_table[_NET_DEV_FEAT_MAX] = {
|
||||||
[NET_DEV_FEAT_GSO] = "tx-generic-segmentation",
|
[NET_DEV_FEAT_GSO] = "tx-generic-segmentation",
|
||||||
|
[NET_DEV_FEAT_GRO] = "rx-gro",
|
||||||
|
[NET_DEV_FEAT_LRO] = "rx-lro",
|
||||||
[NET_DEV_FEAT_TSO] = "tx-tcp-segmentation",
|
[NET_DEV_FEAT_TSO] = "tx-tcp-segmentation",
|
||||||
[NET_DEV_FEAT_UFO] = "tx-udp-fragmentation",
|
[NET_DEV_FEAT_UFO] = "tx-udp-fragmentation",
|
||||||
};
|
};
|
||||||
|
@ -40,6 +40,8 @@ typedef enum WakeOnLan {
|
|||||||
|
|
||||||
typedef enum NetDevFeature {
|
typedef enum NetDevFeature {
|
||||||
NET_DEV_FEAT_GSO,
|
NET_DEV_FEAT_GSO,
|
||||||
|
NET_DEV_FEAT_GRO,
|
||||||
|
NET_DEV_FEAT_LRO,
|
||||||
NET_DEV_FEAT_TSO,
|
NET_DEV_FEAT_TSO,
|
||||||
NET_DEV_FEAT_UFO,
|
NET_DEV_FEAT_UFO,
|
||||||
_NET_DEV_FEAT_MAX,
|
_NET_DEV_FEAT_MAX,
|
||||||
|
@ -38,3 +38,5 @@ Link.WakeOnLan, config_parse_wol, 0,
|
|||||||
Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GSO])
|
Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GSO])
|
||||||
Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO])
|
Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO])
|
||||||
Link.UDPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_UFO])
|
Link.UDPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_UFO])
|
||||||
|
Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GRO])
|
||||||
|
Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_LRO])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user