-
Notifications
You must be signed in to change notification settings - Fork 74
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
Failsafe enabling of UDP GRO for forwarding #370
Failsafe enabling of UDP GRO for forwarding #370
Conversation
WalkthroughThe recent updates to the Tailscale Home Assistant Community Add-on involve refining the Docker setup by removing Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- tailscale/Dockerfile (1 hunks)
- tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run (2 hunks)
Files skipped from review due to trivial changes (2)
- tailscale/Dockerfile
- tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
Or just let it silently failing? With |
That is maybe not a bad idea... We could try? |
65db3a7
to
cdf8745
Compare
TS suggest this optimization conditionally (tx-udp-segmentation is enabled on their tun interface source), the reverted code tries to do it always and on much more interface than it should (still don't understand the errors in the issue). So I suggest "capturing" their warning and trying ethtool only if TS suggest it and only on the interface they suggest. They test everything, so ethtool should work when they suggest. The "capturing" fails silently (undocumented API can change), ethtool fails with warning. Moved the code after TS is up, because we can't call TS API before it's up, so there will be a TS warning, then we set it up. This version is quite safe to be silent on any error.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice piece of bash 👍
../Frenck
Proposed Changes
Revert this suggested optimization altogether, makes more problem then solves.
We could ask TS with this
curl --unix-socket /var/run/tailscale/tailscaled.sock http://local-tailscaled.sock/localapi/v0/check-udp-gro-forwarding
, but that is a bad idea, undocumented api, let them solve this on their own.Related Issues
fixes #362
Summary by CodeRabbit
Chores
ethtool
package from the Tailscale Docker image to streamline the installation process.Refactor
post-tailscaled/run
script by removing unnecessary declarations and Linux optimizations for subnet routers and exit nodes.