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

tests: Add tests for various error flows #1117

Merged
merged 5 commits into from
Feb 8, 2022
Merged

Conversation

firasj
Copy link
Contributor

@firasj firasj commented Jan 3, 2022

This series adds various error flow tests on post send/receive operations, and adds instances of these tests for UD and SRD.

@rleon rleon requested a review from EdwardSro January 4, 2022 08:59
pyverbs/cmid.pyx Show resolved Hide resolved
tests/test_efa_srd.py Show resolved Hide resolved
tests/test_efa_srd.py Show resolved Hide resolved
tests/utils.py Outdated Show resolved Hide resolved
@@ -31,6 +31,23 @@ def create_players(self, send_ops_flags=0, qp_count=8):
self.client.pre_run(self.server.psns, self.server.qps_num)
self.server.pre_run(self.client.psns, self.client.qps_num)

def full_sq_bad_flow(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why you chose to skip UD in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UD is implemented by different providers. I don't think all of them return in an error in this manner and I don't want to break them.

Copy link
Member

@jgunthorpe jgunthorpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address Edward's remarks

PyverbsRDMAErrno is using errno as the error code, this is a
problem where the error code is meaningful and can be checked.
Moreover, errno is not meaningful in these situations.

Reviewed-by: Chen Brasch <cbrasch@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
…et state

Add generic error flow tests to check post receive/send while QP is in
reset state, which is an invalid state for traffic.
Add instances of the tests in UD and SRD.

Reviewed-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
Add generic error flow tests to check traffic in full RQ in QP.
Add instances of the tests in UD and SRD.

Reviewed-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
Add SRD error flow test to check traffic in full SQ in QP.

Reviewed-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
Add generic error flow test to check post receive with RWR that have
more than allowed SG entries.
Add instances of the test in UD and SRD.

Reviewed-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Firas Jahjah <firasj@amazon.com>
Copy link
Contributor Author

@firasj firasj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.
I have addressed all of your comments and updated the commits.

@@ -31,6 +31,23 @@ def create_players(self, send_ops_flags=0, qp_count=8):
self.client.pre_run(self.server.psns, self.server.qps_num)
self.server.pre_run(self.client.psns, self.client.qps_num)

def full_sq_bad_flow(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UD is implemented by different providers. I don't think all of them return in an error in this manner and I don't want to break them.

@firasj firasj requested a review from EdwardSro January 19, 2022 14:07
@firasj
Copy link
Contributor Author

firasj commented Feb 8, 2022

Kind reminder.

@rleon
Copy link
Member

rleon commented Feb 8, 2022

Thanks for the reminder

@rleon rleon merged commit 3ff453e into linux-rdma:master Feb 8, 2022
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