-
Notifications
You must be signed in to change notification settings - Fork 35
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
EINVAL error on PreparedQueuePair build #24
Comments
cc @rdelfin and @daniel-noland who have had more real-world experience with this crate than I have :) |
I do remember the loopback example not quite working as written, but I'd have to test why. This might be a good opportunity to invest into fixing up the branch we're using properly to upstream. |
Hello @mmasque, sorry for delay. I have been working on this crate again this weekend so I may be able to hunt this bug down. I have noticed the same behavior with Soft-RoCE especially. I suspect that the gid index is the source of the problem but I'm not 100% sure yet. I'll let you know what I find. |
could u show me your ifconfig -a info,please. |
Hello,
I'm trying out the library for a project, for now doing some tests using Soft-RoCE on a pair of Ubuntu20.10 VMs.
I cloned the repo and ran the example, and I inconsistently encounter the following error:
panicked at 'called Result::unwrap() on an Err value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', ibverbs/examples/loopback.rs:16:10
.The code that gives the issue is
let qp_builder = pd.create_qp(&cq, &cq, ibverbs::ibv_qp_type::IBV_QPT_RC).build().unwrap();
,in particular the call in
.build()
toibv_create_qp
. I've run it through the debugger and have not been able to spot any differences between successful and unsuccessful runs.I would say it happens about 50% of the time, and for the rest the code runs fine. Even more strangely, I tried moving the Protection Domain memory allocation code above the queue pair builder and found that it fixed the issue, but I have no idea why:
System details:
I'm using this Vagrant VM image and the
rdma_rxe
driver for Soft-RoCE, which I load usingsudo modload rdma_rxe
before adding a soft-roce device:sudo rdma link add rxe_0 type rxe netdev eth1
. I've tested the setup usingib_send_bw
, which works.Any idea what could be causing the problem?
The text was updated successfully, but these errors were encountered: