Skip to content

Commit 7c0376d

Browse files
authored
pass cqe->flags with MsgRingData (#248)
* pass flags in msg ring op code * correct variable name
1 parent 1041c72 commit 7c0376d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/opcode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,9 +1453,9 @@ opcode! {
14531453
sqe.len = result as u32;
14541454
sqe.__bindgen_anon_1.off = user_data;
14551455
sqe.__bindgen_anon_3.msg_ring_flags = opcode_flags;
1456-
if let Some(_flags) = user_flags {
1457-
// TODO(lucab): add IORING_MSG_RING_FLAGS_PASS support (in v6.3):
1458-
// https://lore.kernel.org/all/[email protected]/t/#u
1456+
if let Some(flags) = user_flags {
1457+
sqe.__bindgen_anon_5.file_index = flags;
1458+
unsafe {sqe.__bindgen_anon_3.msg_ring_flags |= sys::IORING_MSG_RING_FLAGS_PASS};
14591459
}
14601460
Entry(sqe)
14611461
}

0 commit comments

Comments
 (0)