-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add support for zero copy sendmsg. #212
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Biggest question is why ownership of the list of buffers isn't passed in. Seems to break the convention established for all other operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
Would you mind also pasting some example code showing this works into a comment in this PR so if we get around to testing on a 6.1 release, we could more easily throw a test together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking really good. With no tests, I'm assuming you are seeing this work in your own tree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Probably two outstanding questions on my part. Thanks for this. I think it's time we asked @Noah-Kennedy for a review too. (I haven't run this through CI because I'm assuming it compiles and there are no new tests.)
@FrankReh Are all of your concerns addressed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks very good. I wish we have a test case or some sample of a test case attached to this PR so when we were ready to test with a 6.1 kernel, it would be easy for somebody new to know what to add. But it is ready to merge anyway. Just going to give @Noah-Kennedy a chance at feedback before I merge in a few hours. I realize it doesn't break or change any existing functionality anyway.
This PR adds support for the IORING_OP_SENDMSG_ZC opcode added in Linux 6.1 with a new sendmsg_zc function for UDP sockets.