Skip to content

Commit bbcbcdf

Browse files
dstaay-fbfacebook-github-bot
authored andcommitted
Expand bindings to support mlx5dv wqe (#453)
Summary: Pull Request resolved: #453 For advanced RDMA support we need to expose bindings to work queue entries (lower level apis) Reviewed By: allenwang28 Differential Revision: D77898106 fbshipit-source-id: 0042d9d609d4b352f29b4f6bf8643ec12e9eb4ec
1 parent 92618a7 commit bbcbcdf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rdmacore-sys/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
// sections of code adapted from https://github.com/jonhoo/rust-ibverbs
1010
// Copyright (c) 2016 Jon Gjengset under MIT License (MIT)
1111

12+
#[repr(C, align(4))]
13+
#[derive(Debug, Default, Clone, Copy)]
14+
pub struct mlx5_wqe_ctrl_seg {
15+
pub opmod_idx_opcode: u32,
16+
pub qpn_ds: u32,
17+
pub signature: u8,
18+
pub dci_stream_channel_id: u16,
19+
pub fm_ce_se: u8,
20+
pub imm: u32,
21+
}
22+
1223
#[repr(C)]
1324
#[derive(Debug, Copy, Clone)]
1425
pub struct ibv_wc {

0 commit comments

Comments
 (0)