]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
link : add support to configure LRO and GRO Offload features 4064/head
authorSusant Sahani <susant@redhat.com>
Wed, 31 Aug 2016 07:17:02 +0000 (12:47 +0530)
committerSusant Sahani <susant@redhat.com>
Wed, 31 Aug 2016 07:17:02 +0000 (12:47 +0530)
The patch supports to configure

GenericReceiveOffload
LargeReceiveOffload

man/systemd.link.xml
src/udev/net/ethtool-util.c
src/udev/net/ethtool-util.h
src/udev/net/link-config-gperf.gperf

index 313e4a4aa3b61ef5363954b7287d477926722d58..10fddeced0f31ecf4b8660911aff799c3e0a81b3 100644 (file)
           Defaults to "unset".</para>
         </listitem>
       </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>
   </refsect1>
 
index 5143eb5a9d40b6a74f3b15c5d71f7fa6bf75f16f..19c69a98b1960036d0e3fd1644817cf8fbcaf081 100644 (file)
@@ -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] = {
         [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_UFO] = "tx-udp-fragmentation",
 };
index 2b5b9fbd1a2f05c2b8d4b878bf2848b88b03647e..074416465388eab7bae3910a54a8e4676bcb2ec7 100644 (file)
@@ -40,6 +40,8 @@ typedef enum WakeOnLan {
 
 typedef enum NetDevFeature {
         NET_DEV_FEAT_GSO,
+        NET_DEV_FEAT_GRO,
+        NET_DEV_FEAT_LRO,
         NET_DEV_FEAT_TSO,
         NET_DEV_FEAT_UFO,
         _NET_DEV_FEAT_MAX,
index 5c57a0cb94a7361cf87e03501e993690f0291215..f8b85cbd13ab5b767f6e98d3737a9fd52ea1b817 100644 (file)
@@ -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.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.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])