summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-08-19 07:37:13 +0200
committerGitHub <noreply@github.com>2026-08-19 07:37:13 +0200
commit6fb116ccbe0b7d4ec889244ce5e820c0704c00eb (patch)
treec6d9f489dfc3a7b11795cb2df0ca39937e701564 /src
parentfb4317a143c6d58d5a2497b0f206554d5a9d7b0a (diff)
parent47ce1c8e1df6382f6aa400d2bc55038adc63dfa0 (diff)
downloadvyos-1x-6fb116ccbe0b7d4ec889244ce5e820c0704c00eb.tar.gz
vyos-1x-6fb116ccbe0b7d4ec889244ce5e820c0704c00eb.zip
Merge pull request #5373 from ServerForge/rolling
interfaces: T9158: add option to enable/disable rx offload
Diffstat (limited to 'src')
-rw-r--r--src/activation-scripts/20-ethernet-offload.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/activation-scripts/20-ethernet-offload.py b/src/activation-scripts/20-ethernet-offload.py
index 9f61f6d8f..b0dab5605 100644
--- a/src/activation-scripts/20-ethernet-offload.py
+++ b/src/activation-scripts/20-ethernet-offload.py
@@ -63,6 +63,15 @@ def activate(config: ConfigTree):
elif enabled and not fixed:
config.set(base + [ifname, 'offload', 'lro'])
+ # If RX is enabled by the Kernel - we reflect this on the CLI. If RX is
+ # enabled via CLI but not supported by the NIC - we remove it from the CLI
+ configured = config.exists(base + [ifname, 'offload', 'rx'])
+ enabled, fixed = eth.get_rx_checksumming()
+ if configured and fixed:
+ config.delete(base + [ifname, 'offload', 'rx'])
+ elif enabled and not fixed:
+ config.set(base + [ifname, 'offload', 'rx'])
+
# If SG is enabled by the Kernel - we reflect this on the CLI. If SG is
# enabled via CLI but not supported by the NIC - we remove it from the CLI
configured = config.exists(base + [ifname, 'offload', 'sg'])