Пример #1
0
 def test_destroy_comp_channel(self):
     """
     Test ibv_destroy_comp_channel()
     """
     for ctx, attr, attr_ex in self.devices:
         cc = CompChannel(ctx)
         cc.close()
Пример #2
0
 def test_destroy_comp_channel():
     """
     Test ibv_destroy_comp_channel()
     """
     lst = d.get_device_list()
     for dev in lst:
         with d.Context(name=dev.name.decode()) as ctx:
             cc = CompChannel(ctx)
             cc.close()
Пример #3
0
 def test_create_cq_with_comp_channel(self):
     for cq_size in [1, self.attr.max_cqe / 2, self.attr.max_cqe]:
         try:
             cc = CompChannel(self.ctx)
             CQ(self.ctx, cq_size, None, cc, 0)
             cc.close()
         except PyverbsRDMAError as ex:
             if ex.error_code == errno.EOPNOTSUPP:
                 raise unittest.SkipTest(
                     f'CQ with completion channel is not supported')
Пример #4
0
 def test_create_cq_with_comp_channel(self):
     for cq_size in [1, self.max_cqe / 2, self.max_cqe]:
         cc = CompChannel(self.ctx)
         CQ(self.ctx, cq_size, None, cc, 0)
         cc.close()