Skip to content

Apply kernel patch restoring HW VLAN tag insertion with reorder_hdr off - #5105

Merged
sairon merged 1 commit into
devfrom
add-vlan-patch-fix-r8169-tx-timeouts
Oct 19, 2026
Merged

sairon merged 1 commit into
devfrom
add-vlan-patch-fix-r8169-tx-timeouts

Conversation

@sairon

@sairon sairon commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Cherry-pick the upstream fix for transmit queue timeouts on Realtek adapters when VLANs with reorder_hdr disabled use checksum or TCP segmentation offload.

Supervisor already addresses this by enabling reorder_hdr, but include the kernel fix to also cover VLAN interfaces configured outside Supervisor and avoid relying on that setting for correct operation.

Fixes #5019

Summary by CodeRabbit

  • Bug Fixes
    • Restored hardware VLAN tag insertion for eligible outgoing traffic, improving transmission compatibility on devices that support VLAN offloading.
    • Frames that do not meet offload requirements continue to use the existing handling.

Cherry-pick the upstream fix for transmit queue timeouts on Realtek
adapters when VLANs with reorder_hdr disabled use checksum or TCP
segmentation offload.

Supervisor already addresses this by enabling reorder_hdr, but include
the kernel fix to also cover VLAN interfaces configured outside
Supervisor and avoid relying on that setting for correct operation.

Fixes #5019
@sairon
sairon requested a review from agners October 19, 2026 13:20
@sairon sairon added board/raspberrypi Raspberry Pi Boards board/odroid Hardkernel's ODROID Boards linux Linux kernel related issue board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/khadas Khadas VIM Boards board/yellow Home Assistant Yellow board/generic-aarch64 Generic aarch64 machine labels Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12fb4590-47c3-4b8b-8c06-3912b99d5809
📥 Commits

Reviewing files that changed from the base of the PR and between b93cfa2 and 48d68dd.

📒 Files selected for processing: 1
  • buildroot-external/patches/linux/0002-vlan-restore-HW-VLAN-tag-insertion-with-reorder_hdr-.patch

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The Linux VLAN transmit patch documents a reported regression and changes vlan_dev_hard_start_xmit() to move eligible in-band VLAN tags to hardware acceleration metadata. Frames that do not meet the eligibility checks retain existing handling.

Changes: VLAN transmit handling

Layer / File(s) Summary
Restore hardware VLAN tag insertion
buildroot-external/patches/linux/0002-vlan-restore-HW-VLAN-tag-insertion-with-reorder_hdr-.patch
The patch description documents the regression and affected conditions. For eligible frames, the transmit path preserves the original frame length, removes the in-band VLAN tag, and attaches it as a hardware-acceleration tag. If tag removal fails, it frees the frame, increments tx_dropped, and returns NETDEV_TX_OK.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 48d68

This change restores hardware VLAN tag insertion for VLAN interfaces with reorder_hdr disabled, which should fix the Realtek transmit timeouts. No merge-blocking risk was identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: applying a kernel patch that restores hardware VLAN tag insertion when reorder_hdr is disabled.
Linked Issues check Passed Issue #5019 is closed. It supplies historical context only. No active directly linked issue adds coding requirements for this pull request.
Out of Scope Changes check Passed The patch changes vlan_dev_hard_start_xmit() to restore hardware VLAN tag insertion for the stated reorder_hdr and offload cases. The change matches the current pull request intent to cover VLAN i…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Out of Scope Changes check

Explanation

The patch changes vlan_dev_hard_start_xmit() to restore hardware VLAN tag insertion for the stated reorder_hdr and offload cases. The change matches the current pull request intent to cover VLAN interfaces outside Supervisor. No unrelated change is established.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the tagged frame,
The VLAN rides in hardware’s name.
The length is saved before the hop,
A failed tag removal means drop.
The bunny bounds along the wire,
And tucks its ears beside the fire.

Comment @coderabbitai help to get the list of available commands.

@sairon
sairon merged commit 81210a1 into dev Oct 19, 2026
12 checks passed
@sairon
sairon deleted the add-vlan-patch-fix-r8169-tx-timeouts branch October 19, 2026 13:33
@sairon sairon mentioned this pull request Oct 20, 2026
nyok92 pushed a commit to nyok92/HAOS-rock5b that referenced this pull request Oct 23, 2026
…ff (home-assistant#5105)

Cherry-pick the upstream fix for transmit queue timeouts on Realtek
adapters when VLANs with reorder_hdr disabled use checksum or TCP
segmentation offload.

Supervisor already addresses this by enabling reorder_hdr, but include
the kernel fix to also cover VLAN interfaces configured outside
Supervisor and avoid relying on that setting for correct operation.

Fixes home-assistant#5019
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

board/generic-aarch64 Generic aarch64 machine board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/khadas Khadas VIM Boards board/odroid Hardkernel's ODROID Boards board/raspberrypi Raspberry Pi Boards board/yellow Home Assistant Yellow cla-signed linux Linux kernel related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

r8169: NETDEV WATCHDOG tx timeouts on HAOS 18.3 (kernel 6.18.52) with 802.1Q VLAN interfaces

2 participants