Skip to content

Commit

Permalink
tests: Raise correct error value on request notify CQ failure
Browse files Browse the repository at this point in the history
ibv_req_notify_cq returns the error code on failure, it doesn't set the
errno.

Signed-off-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
  • Loading branch information
Chen Brasch authored and gal-pressman committed Jun 30, 2020
1 parent 2aad8aa commit ea1dac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyverbs/cq.pyx
Expand Up @@ -165,8 +165,8 @@ cdef class CQ(PyverbsCM):
"""
rc = v.ibv_req_notify_cq(self.cq, solicited_only)
if rc != 0:
raise PyverbsRDMAErrno('Request notify CQ returned {rc}'.
format(rc=rc))
raise PyverbsRDMAError('Request notify CQ returned {rc}'.
format(rc=rc), rc)

def ack_events(self, num_events):
"""
Expand Down

0 comments on commit ea1dac8

Please sign in to comment.