]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/net: enable new [EnergyEfficientEthernet] section
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 15:56:28 +0000 (00:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 20:26:14 +0000 (05:26 +0900)
Also fixes a typo in setting name.

Follow-up for cdc9be29b1f4eefd5d384b0a9fed25675c66def5.
Addresses post-merge comments for #36302.

man/systemd.link.xml
src/udev/net/link-config.c

index 42ad2c27eae3cb59dcf3dece410e9049b14c9717..5441da377e5e586b80e7929cb524a9937e580784 100644 (file)
 
     <variablelist class='network-directives'>
       <varlistentry>
-        <term><varname>Enabled=</varname></term>
+        <term><varname>Enable=</varname></term>
         <listitem>
           <para>Takes a boolean argument. When true, the Energy Efficient Ethernet (EEE) feature will be
           enabled on the interface. Defaults to unset, and the enablement of EEE will be unchanged.</para>
index ec760c80f185d63ee64ca4080e596fa475dde5e8..2ae0f693eee80f521d24e88e738fba737f157be4 100644 (file)
@@ -279,7 +279,8 @@ int link_load_one(LinkConfigContext *ctx, const char *filename) {
                         /* root = */ NULL,
                         "Match\0"
                         "Link\0"
-                        "SR-IOV\0",
+                        "SR-IOV\0"
+                        "EnergyEfficientEthernet\0",
                         config_item_perf_lookup, link_config_gperf_lookup,
                         CONFIG_PARSE_WARN, config, &stats_by_path,
                         &config->dropins);