Skip to content

linux: add SO_DETACH_REUSEPORT_BPF#5081

Merged
JohnTitor merged 1 commit intorust-lang:mainfrom
swananan:so-detach-reuseport-bpf
Apr 28, 2026
Merged

linux: add SO_DETACH_REUSEPORT_BPF#5081
JohnTitor merged 1 commit intorust-lang:mainfrom
swananan:so-detach-reuseport-bpf

Conversation

@swananan
Copy link
Copy Markdown
Contributor

@swananan swananan commented Apr 25, 2026

Description

Add SO_DETACH_REUSEPORT_BPF for Linux, following the same approach as #3917.

This exposes the constant on the Linux arch modules that define socket option values directly (generic, mips, powerpc, and sparc) and updates the Linux semver list.

SO_DETACH_REUSEPORT_BPF is already defined by musl starting in v1.2.0, but libc CI still runs old-musl jobs as well, so the libc-test constant check is still skipped for musl.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@swananan
Copy link
Copy Markdown
Contributor Author

Looks like CI is flaky, will retry this tomorrow.

@swananan swananan force-pushed the so-detach-reuseport-bpf branch from 8db9076 to 817167c Compare April 26, 2026 04:50
@swananan swananan force-pushed the so-detach-reuseport-bpf branch from 817167c to 93b26c0 Compare April 26, 2026 13:16
Copy link
Copy Markdown
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

View changes since this review

@JohnTitor JohnTitor added this pull request to the merge queue Apr 28, 2026
Merged via the queue into rust-lang:main with commit 95c9572 Apr 28, 2026
52 checks passed
@swananan swananan deleted the so-detach-reuseport-bpf branch April 28, 2026 12:13
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.

3 participants