When creating a CQ, set CQ context and completion channel to None and completion vector to 0 by default, to make the simple CQ creation shorter. Signed-off-by: Noa Osherovich <noaos@xxxxxxxxxxxx> --- pyverbs/cq.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyverbs/cq.pyx b/pyverbs/cq.pyx index 6a96347ee979..ecfef6d7fdb9 100755 --- a/pyverbs/cq.pyx +++ b/pyverbs/cq.pyx @@ -67,8 +67,8 @@ cdef class CQ(PyverbsCM): A Completion Queue is the notification mechanism for work request completions. A CQ can have 0 or more associated QPs. """ - def __cinit__(self, Context context not None, cqe, cq_context, - CompChannel channel, comp_vector): + def __cinit__(self, Context context not None, cqe, cq_context=None, + CompChannel channel=None, comp_vector=0): """ Initializes a CQ object with the given parameters. :param context: The device's context on which to open the CQ -- 2.21.0