]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/net: add ReceiveFCS= and ReceiveAll= settings
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Jan 2025 14:05:38 +0000 (23:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Jan 2025 18:49:29 +0000 (03:49 +0900)
Closes #31415.

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

index ae478b555d26554ff1fa9c42ad52452bd3a96293..d97c931c2edbc81e6245d5a718404430ab83f883 100644 (file)
           <xi:include href="version-info.xml" xpointer="v250"/>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term><varname>ReceiveFCS=</varname></term>
+        <listitem>
+          <para>Takes a boolean. If set to true, pass the Frame Check Sequence (FCS) value up the stack
+          without trimming it, and allow userspace to calculate error rate or link health.
+          When unset, the kernel's default will be used.</para>
+
+          <xi:include href="version-info.xml" xpointer="v258"/>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><varname>ReceiveAll=</varname></term>
+        <listitem>
+          <para>Takes a boolean. If set to true, allow to also receive damaged ethernet frames.
+          When unset, the kernel's default will be used.</para>
+
+          <xi:include href="version-info.xml" xpointer="v258"/>
+        </listitem>
+      </varlistentry>
       <varlistentry>
         <term><varname>RxChannels=</varname></term>
         <term><varname>TxChannels=</varname></term>
index b77759d09446fcc7a47b7eff3dd35a0a32f36ab7..26137f33d2354abd453c76cff452389bc5f28f14 100644 (file)
@@ -72,6 +72,8 @@ Link.TransmitVLANCTAGHardwareAcceleration, config_parse_tristate,
 Link.ReceiveVLANCTAGFilter,                config_parse_tristate,                 0,                             offsetof(LinkConfig, features[NET_DEV_FEAT_HW_VLAN_CTAG_FILTER])
 Link.TransmitVLANSTAGHardwareAcceleration, config_parse_tristate,                 0,                             offsetof(LinkConfig, features[NET_DEV_FEAT_HW_VLAN_STAG_TX])
 Link.NTupleFilter,                         config_parse_tristate,                 0,                             offsetof(LinkConfig, features[NET_DEV_FEAT_NTUPLE])
+Link.ReceiveFCS,                           config_parse_tristate,                 0,                             offsetof(LinkConfig, features[NET_DEV_FEAT_RXFCS])
+Link.ReceiveAll,                           config_parse_tristate,                 0,                             offsetof(LinkConfig, features[NET_DEV_FEAT_RXALL])
 Link.RxChannels,                           config_parse_ring_buffer_or_channel,   0,                             offsetof(LinkConfig, channels.rx)
 Link.TxChannels,                           config_parse_ring_buffer_or_channel,   0,                             offsetof(LinkConfig, channels.tx)
 Link.OtherChannels,                        config_parse_ring_buffer_or_channel,   0,                             offsetof(LinkConfig, channels.other)