Multishot recv with Bundle Recv + Incremental Buffers - are they compatible? #1566
Unanswered
stonebrakert6
asked this question in
Q&A
Replies: 2 comments
-
|
I'm OOO for the next week, I'll take a look when I'm back. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Just to provide more context, it turns out that my guess(mentioned above) is wrong and when bundle recv is enabled, it is possible to get res such that the bytes are spanning across 2 buffers(and hence possibly more as well). Is this expected behaviour? If yes, then in this case the flag IORING_CQE_F_BUF_MORE is associated with which buffer id? The buffer id present in the cqe->flags or the buffer id we get after traversing res bytes from the cqe's buffer-id? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[UPDATED - for better understanding of the issue]
Hi,
I have already gone through issues 1409 and 1423.
My setup(kernel version 6.17)
io_uring_setup_buf_ring(ring_, nr_bufs, bgid, IOU_PBUF_RING_INC, &ret);sqe->ioprio |= IORING_RECVSEND_BUNDLE;My question is that can a given cqe span-across/use 2 buffers in above setting(because bundle recv is enabled)? From the assertion in test recv-inc-ooo.c. It seems that with incremental buffers a given cqe won't copy more than buffer_size len but can this still use 2 buffers?
i.e is the following sequence of cqes possible?
My guess is no, since we have this comment
Questions
Beta Was this translation helpful? Give feedback.
All reactions