Auto sync2gitlab import of rdma-core-41.0-1.el8.src.rpm
This commit is contained in:
parent
cba1ad4c39
commit
22ba37a96c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/rdma-core-37.2.tar.gz
|
/rdma-core-37.2.tar.gz
|
||||||
/rxe_cfg.8.gz
|
/rxe_cfg.8.gz
|
||||||
|
/rdma-core-41.0.tar.gz
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
From 698f2ae804767635342694d31d9590fe6ad2217e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kamal Heib <kamalheib1@gmail.com>
|
|
||||||
Date: Wed, 8 Dec 2021 16:12:11 +0200
|
|
||||||
Subject: [PATCH] tests: Fix comparing qp_state for iWARP providers.
|
|
||||||
|
|
||||||
The initial QP state for iWARP providers is IBV_QPS_INIT (not
|
|
||||||
IBV_QPS_RESET), Change the test to handle this case.
|
|
||||||
|
|
||||||
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
|
|
||||||
---
|
|
||||||
tests/test_qp.py | 16 ++++++++++++++--
|
|
||||||
1 file changed, 14 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_qp.py b/tests/test_qp.py
|
|
||||||
index b952c95e..a66f724f 100644
|
|
||||||
--- a/tests/test_qp.py
|
|
||||||
+++ b/tests/test_qp.py
|
|
||||||
@@ -14,6 +14,7 @@ from pyverbs.pyverbs_error import PyverbsRDMAError
|
|
||||||
from pyverbs.qp import QPInitAttr, QPAttr, QP
|
|
||||||
from tests.base import PyverbsAPITestCase
|
|
||||||
import pyverbs.utils as pu
|
|
||||||
+import pyverbs.device as d
|
|
||||||
import pyverbs.enums as e
|
|
||||||
from pyverbs.pd import PD
|
|
||||||
from pyverbs.cq import CQ
|
|
||||||
@@ -177,6 +178,11 @@ class QPTest(PyverbsAPITestCase):
|
|
||||||
self.assertLessEqual(orig_cap.max_recv_sge, init_attr.cap.max_recv_sge)
|
|
||||||
self.assertLessEqual(orig_cap.max_inline_data, init_attr.cap.max_inline_data)
|
|
||||||
|
|
||||||
+ def get_node_type(self):
|
|
||||||
+ for dev in d.get_device_list():
|
|
||||||
+ if dev.name.decode() == self.ctx.name:
|
|
||||||
+ return dev.node_type
|
|
||||||
+
|
|
||||||
def query_qp_common_test(self, qp_type):
|
|
||||||
with PD(self.ctx) as pd:
|
|
||||||
with CQ(self.ctx, 100, None, None, 0) as cq:
|
|
||||||
@@ -190,14 +196,20 @@ class QPTest(PyverbsAPITestCase):
|
|
||||||
caps = qia.cap
|
|
||||||
qp = self.create_qp(pd, qia, False, False, self.ib_port)
|
|
||||||
qp_attr, qp_init_attr = qp.query(e.IBV_QP_STATE | e.IBV_QP_CAP)
|
|
||||||
- self.verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr, qp_attr)
|
|
||||||
+ if self.get_node_type() == e.IBV_NODE_RNIC:
|
|
||||||
+ self.verify_qp_attrs(caps, e.IBV_QPS_INIT, qp_init_attr, qp_attr)
|
|
||||||
+ else:
|
|
||||||
+ self.verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr, qp_attr)
|
|
||||||
|
|
||||||
# Extended QP
|
|
||||||
qia = get_qp_init_attr_ex(cq, pd, self.attr, self.attr_ex, qp_type)
|
|
||||||
caps = qia.cap # Save them to verify values later
|
|
||||||
qp = self.create_qp(self.ctx, qia, True, False, self.ib_port)
|
|
||||||
qp_attr, qp_init_attr = qp.query(e.IBV_QP_STATE | e.IBV_QP_CAP)
|
|
||||||
- self.verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr, qp_attr)
|
|
||||||
+ if self.get_node_type() == e.IBV_NODE_RNIC:
|
|
||||||
+ self.verify_qp_attrs(caps, e.IBV_QPS_INIT, qp_init_attr, qp_attr)
|
|
||||||
+ else:
|
|
||||||
+ self.verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr, qp_attr)
|
|
||||||
|
|
||||||
def test_query_rc_qp(self):
|
|
||||||
"""
|
|
||||||
--
|
|
||||||
2.33.1
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
Name: rdma-core
|
Name: rdma-core
|
||||||
Version: 37.2
|
Version: 41.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RDMA core userspace libraries and daemons
|
Summary: RDMA core userspace libraries and daemons
|
||||||
|
|
||||||
@ -19,8 +19,6 @@ Source3: rxe_cfg.8.gz
|
|||||||
Patch3: udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
|
Patch3: udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
|
||||||
# RHEL specific patch for OPA ibacm plugin
|
# RHEL specific patch for OPA ibacm plugin
|
||||||
Patch300: 0001-ibacm-acm.c-load-plugin-while-it-is-soft-link.patch
|
Patch300: 0001-ibacm-acm.c-load-plugin-while-it-is-soft-link.patch
|
||||||
|
|
||||||
Patch301: 0001-tests-Fix-comparing-qp_state-for-iWARP-providers.patch
|
|
||||||
# Do not build static libs by default.
|
# Do not build static libs by default.
|
||||||
%define with_static %{?_with_static: 1} %{?!_with_static: 0}
|
%define with_static %{?_with_static: 1} %{?!_with_static: 0}
|
||||||
|
|
||||||
@ -255,7 +253,6 @@ easy, object-oriented access to IB verbs.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch300 -p1
|
%patch300 -p1
|
||||||
%patch301 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -641,6 +638,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 05 2022 Michal Schmidt <mschmidt@redhat.com> - 41.0-1
|
||||||
|
- Update to upstream release v41.0
|
||||||
|
- Resolves: rhbz#2049518
|
||||||
|
|
||||||
* Thu Jan 06 2022 Honggang Li <honli@redhat.com> - 37.2-1
|
* Thu Jan 06 2022 Honggang Li <honli@redhat.com> - 37.2-1
|
||||||
- Update to upstream v37.2 release for fixes
|
- Update to upstream v37.2 release for fixes
|
||||||
- Resolves: bz2008509, bz2024865, bz1915555
|
- Resolves: bz2008509, bz2024865, bz1915555
|
||||||
|
2
sources
2
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (rdma-core-37.2.tar.gz) = 11b0670ce78bb8207e24c373abdbd950d98e590f23344496ec6fdeebb51370acda993a24ab014bf09ecf9ea23abeb486a6c4384003da2d284ad3c157d30bc431
|
SHA512 (rdma-core-41.0.tar.gz) = 428d12d986effa0d58bc8b284fd5b7eab74fd484e1618cd3ebcfb1e4a142b5193fe4a7d305868d93bc44bcc591f08b81edfb0358c280111974a5335a79ae4f4c
|
||||||
SHA512 (rxe_cfg.8.gz) = ea735d5fa8e1dbe02e1f1b70348deca7a4dc4c13218afcf62c65f1afaf8a44f3e7cdc654b62c3e9cdc35cbe113f5204ae8f296a955414d24fbb312c27353c29f
|
SHA512 (rxe_cfg.8.gz) = ea735d5fa8e1dbe02e1f1b70348deca7a4dc4c13218afcf62c65f1afaf8a44f3e7cdc654b62c3e9cdc35cbe113f5204ae8f296a955414d24fbb312c27353c29f
|
||||||
|
Loading…
Reference in New Issue
Block a user