From 844295b2bb739a50c61c5d4a201552feee11130e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 7 Jan 2025 23:06:17 +0900 Subject: [PATCH] udev/net: add PartialGenericSegmentationOffload= setting Closes #32979. --- man/systemd.link.xml | 12 ++++++++++++ src/udev/net/link-config-gperf.gperf | 1 + 2 files changed, 13 insertions(+) diff --git a/man/systemd.link.xml b/man/systemd.link.xml index d97c931c2ed..9ddcaf7c09d 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -942,6 +942,18 @@ + + PartialGenericSegmentationOffload= + + Takes a boolean. If set to true, Partial Generic Segmentation Offload (GSO_Partial) is + enabled. See + + Partial Generic Segmentation Offload for more details. + When unset, the kernel's default will be used. + + + + GenericReceiveOffload= diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index 26137f33d23..e4db56e8445 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -63,6 +63,7 @@ Link.TransmitChecksumOffload, config_parse_tristate, Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GSO]) Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_TSO]) Link.TCP6SegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_TSO6]) +Link.PartialGenericSegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GSO_PARTIAL]) Link.UDPSegmentationOffload, config_parse_warn_compat, DISABLED_LEGACY, 0 Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GRO]) Link.GenericReceiveOffloadHardware, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GRO_HW]) -- 2.47.3