Skip to content

Add missing ops up to Linux 6.15 #23

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

silvanshade
Copy link

@silvanshade silvanshade commented Jul 2, 2025

This PR adds missing ops for io_uring up to Linux 6.15.

Related:

Opening as a Draft since there's still some remaining changes to make.

@silvanshade silvanshade force-pushed the linux-6.15 branch 7 times, most recently from 0635ae4 to a96a854 Compare July 4, 2025 20:46
@silvanshade
Copy link
Author

silvanshade commented Jul 5, 2025

@sunfishcode I think this is ready for review. This has dependencies on the upstream PRs linked in the OP.

In addition to defining the missing ops, I've included at least one test for each of them, with the exception of RecvZc.

The RecvZc io_uring op currently only works on a few drivers and chipsets, notably:

Kernel Recipes 2024 - Efficient zero-copy networking using io_uring

  • bnxt (Thor chipset NICs, e.g., BCM957508)
  • gve
  • mlx5 (ConnectX-7 or newer, possibly ConnectX-6 Dx or Bluefield-2 with crypto)

I'm reluctant to add a test without being able to confirm it at least works on one system. We probably also should gate it behind some environment variables like the kernel selftests since it requires specific system configuration to even run.

I tried setting up the zcrx context on a ConnectX-5 but that didn't work because of lack of tcp-data-split and lack of rx-gro-hw. I will be able to try again with a Bluefield-2 with crypto offload probably next week (ConnectX-6 Dx equivalent), and if that doesn't work I'll try to get access to the BCM957508.

But if anyone else watching currently has compatible hardware, we could easily add a short test for it and verify it works.

In any case, it's a complex feature and may require more changes upstream, but probably shouldn't be a blocker for the rest of this PR and the others linked above.

@silvanshade silvanshade marked this pull request as ready for review July 5, 2025 02: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.

1 participant