Skip to content

revert: Restore the edge gateway and NAT on bonded hosts - #853

Closed
privateip wants to merge 1 commit into
mainfrom
revert/852-xdp-generic-mode
Closed

privateip wants to merge 1 commit into
mainfrom
revert/852-xdp-generic-mode

Conversation

@privateip

Copy link
Copy Markdown
Collaborator

Summary

Since #852 merged, the edge gateway and NAT crash at startup on every host with bonded uplinks, so both staging labs have no edge datapath.

The new XDP mode check reads every entry in the host's sysfs interface list, and on a bonded host one entry is a plain file it treats as a fatal error.

This reverts #852 to the code both labs ran cleanly before it, and the Broadcom work can return once the check skips that file.

Test plan

  • Edge gateway and NAT report ready on both staging labs
  • The Broadcom staging lab shows its uplinks back in generic mode
  • CI passes

Related to #673

This reverts merge commit 62eda6c.

galactic-gateway and galactic-nat crashloop at startup on every bonded
edge host, taking the edge datapath down on both staging labs:

  xdpmode: read device of bonding_masters: lstat
  /sys/class/net/bonding_masters/device: not a directory

xdpmode.Select walks every entry in /sys/class/net. With the bonding
module loaded, bonding_masters is a regular file there, so the Lstat of
bonding_masters/device fails with ENOTDIR. interfaceDriver only treats
ENOENT as "not a physical NIC", so the error is fatal. The unit-test
sysfs fixture holds only interface directories, and CI hosts do not load
bonding, so nothing exercised the file.

Related to #673
@privateip

Copy link
Copy Markdown
Collaborator Author

Superseded by #854, which fixes the startup crash and keeps the Broadcom change.

@privateip privateip closed this Oct 13, 2026
@privateip
privateip deleted the revert/852-xdp-generic-mode branch October 13, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants