Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6716: don't automatically set ethernet offload (backport #4077) #4078

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 17, 2024

Change Summary

Remove the lines of code that checked if the kernel had offloading enabled and was then forcing the config to set it to "on." The behavior now mirrors the config and offloading will only be enabled if the config is explicitly set to enabled.

Note: the code is still present to disable the offloading, in the config, if the kernel doesn't support it.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

https://vyos.dev/T6716

Related PR(s)

Component(s) name

Ethernet activation script (20-ethernet_offload.py)

Proposed changes

Delete lines of code that set the ethernet offload setting based on the Kernel offload setting.

How to test

On a system where the kernel enables offloading at boot and/or the offload is currently set in the config:

configure
delete interfaces ethernet eth0 offload 
commit
load
show interfaces ethernet eth0 offload 

No offloading settings should be shown. On VyOS 1.5, without this PR, the offload settings will automatically be restored.

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

This is an automatic backport of pull request #4077 done by [Mergify](https://mergify.com).

Remove the lines of code that checked if the kernel had offloading
enabled and was then forcing the config to set it to "on." The
behavior now mirrors the config and offloading will only be enabled
if the config is explicitly set to enabled.

Note: the code is still present to disable the offloading, in the
config, if the kernel doesn't support it.

Note(2): Allow the previous behavior where the offload settings get set,
based on the Kernel, if the boot is a live boot.

(cherry picked from commit b6c2a74)
@mergify mergify bot requested a review from a team as a code owner September 17, 2024 20:11
@mergify mergify bot requested review from dmbaturin, sarthurdev, zdc, jestabro, c-po and nicolas-fort and removed request for a team September 17, 2024 20:11
Copy link

👍
No issues in PR Title / Commit Title

@sever-sever sever-sever merged commit 3e1dc8d into circinus Sep 18, 2024
9 checks passed
@mergify mergify bot deleted the mergify/bp/circinus/pr-4077 branch September 18, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants