From: Yu Watanabe Date: Tue, 7 Jan 2025 14:05:38 +0000 (+0900) Subject: udev/net: add ReceiveFCS= and ReceiveAll= settings X-Git-Tag: v258-rc1~1663^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac24d356fe8db1c9727f3231722994e06f0fca3d;p=thirdparty%2Fsystemd.git udev/net: add ReceiveFCS= and ReceiveAll= settings Closes #31415. --- diff --git a/man/systemd.link.xml b/man/systemd.link.xml index ae478b555d2..d97c931c2ed 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -1029,6 +1029,25 @@ + + ReceiveFCS= + + 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. + + + + + + ReceiveAll= + + Takes a boolean. If set to true, allow to also receive damaged ethernet frames. + When unset, the kernel's default will be used. + + + + RxChannels= TxChannels= diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index b77759d0944..26137f33d23 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -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)