Skip to content
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

pyverbs: ODP refactoring and extensions #782

Merged
merged 6 commits into from Jul 20, 2020

Conversation

EdwardSro
Copy link
Contributor

@EdwardSro EdwardSro commented Jun 29, 2020

This series introduces new tests for ODP, in addition to infrastructure extensions and a refactoring of the ODP tests, which allows more flexibility for adding new tests in the future.
This includes:

  • Support for registering an implicit ODP MR (with a test)
  • An ODP test with UD traffic

itayave and others added 6 commits July 19, 2020 19:27
The implicit ODP MR covers the entire memory space of a process.
Applications using implicit ODP can use the entire address range
when writing to the MR, instead of being limited to the address
space registered to the MR.
This also saves actual pages registration so that application
control path is faster.

Signed-off-by: Itay Aveksis <itayav@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
Add a new test for implicit ODP MRs using RC QP.

Signed-off-by: Itay Aveksis <itayav@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
For the implicit MR registrations the internal MR's buffer
doesn't have to be allocated (controlled by the length argument).
Therefore we should protect the write and read methods of MR object
by checking before the operation if the buf attribute and the
passed arguments are valid.

Signed-off-by: Itay Aveksis <itayav@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
Add a new parameter required_odp_caps to odp's decorator in order to
allow users to pass the required mask for the test.
Change the test cases to provide the resources class instead of the QP
type.

Signed-off-by: Ido Kalir <idok@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
The current implementation of write() doesn't take an offset parameter.
In UD this means that extra 40 bytes need to be written, so that the
GRH won't override the beginning of the message.
Add offset parameter to write().

Signed-off-by: Maxim Chicherin <maximc@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
Split OdpUD MRs per operation (send mr and recv mr) to enable using ODP
only in the send MR.

Signed-off-by: Ido Kalir <idok@mellanox.com>
Signed-off-by: Edward Srouji <edwards@mellanox.com>
@rleon rleon merged commit 8a477f6 into linux-rdma:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants