Skip to content

Allow umem reg while bound#981

Merged
mtfriesen merged 2 commits intomainfrom
mtfriesen/allow_umem_reg_while_bound
Mar 13, 2026
Merged

Allow umem reg while bound#981
mtfriesen merged 2 commits intomainfrom
mtfriesen/allow_umem_reg_while_bound

Conversation

@mtfriesen
Copy link
Contributor

Description

Describe the purpose of and changes within this Pull Request.

When adding a sample of sharing an XSK socket across processes, we hit an excessively restrictive state check: the socket needed to be unbound to register a UMEM, when the only practical requirement is that the socket isn't closing.

Testing

Do any existing tests cover this change? Are new tests needed?

Tests added, and also locally tested in #980

Documentation

Is there any documentation impact for this change?

Updated.

Installation

Is there any installer impact for this change?

N/A.

@mtfriesen mtfriesen added the Area: APIs Related to API design or behavior label Mar 13, 2026
@mtfriesen mtfriesen requested a review from a team as a code owner March 13, 2026 20:08
@mtfriesen mtfriesen added the Area: AF_XDP Related to AF_XDP sockets label Mar 13, 2026
@mtfriesen mtfriesen enabled auto-merge (squash) March 13, 2026 20:08
@ProjectsByJackHe ProjectsByJackHe self-requested a review March 13, 2026 22:17
@mtfriesen mtfriesen merged commit 26c5939 into main Mar 13, 2026
63 checks passed
@mtfriesen mtfriesen deleted the mtfriesen/allow_umem_reg_while_bound branch March 13, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: AF_XDP Related to AF_XDP sockets Area: APIs Related to API design or behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants