feat(qp): introduce ModifyQueuePairError and PostSendError #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RDMA C functions basically use return value (when it could be used) for returning an
errno, or when sometimes the function should return a pointer but return aNULL, user should readerrnothemselves.Most of the time, the
errnoactually suggests an error from kernel, users really need a lot of experience on RDMA to understand what's going wrong by just read a simple 8bit error number.RDMAmojo and
rdma-coreman pages provides some hints onerrnos, while that need users to search and grab. Rust provides a powerful error handling system, why not just integrate the hints witherrnotogether, plus some context to build our error types? I provide a trial implementation in this commit.Sometimes the complicated error types introduce performance penalty, so I make it optional.
Related issue: #3