diff --git a/.gitignore b/.gitignore index 0f1d896..66f8629 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ /rdma-core-50.0.tar.gz /rdma-core-51.0.tar.gz /rdma-core-54.0.tar.gz +/rdma-core-57.0.tar.gz diff --git a/0001-bnxt_re-lib-Fix-the-data-copy-during-the-low-latency.patch b/0001-bnxt_re-lib-Fix-the-data-copy-during-the-low-latency.patch deleted file mode 100644 index 08ac16b..0000000 --- a/0001-bnxt_re-lib-Fix-the-data-copy-during-the-low-latency.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 9558f227b158291bc3eb7044938d711e388802ce Mon Sep 17 00:00:00 2001 -From: Selvin Xavier -Date: Mon, 10 Mar 2025 07:38:03 -0700 -Subject: [PATCH] bnxt_re/lib: Fix the data copy during the low latency push - path - -The pointer used in the destination buffer is not correctly -type casted, because of which the data gets corrupted while copying. -The issue is seen in the previous adapters that has the low latency -push enabled. Fixing the pointer casting. - -Fixes: 52d0870c3eac ("bnxt_re/lib: Enable low latency push") -Reported-By: Kamal Heib -Signed-off-by: Selvin Xavier ---- - providers/bnxt_re/main.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/providers/bnxt_re/main.h b/providers/bnxt_re/main.h -index 7a9d48e1cf01..067b0c18df8d 100644 ---- a/providers/bnxt_re/main.h -+++ b/providers/bnxt_re/main.h -@@ -598,7 +598,7 @@ static inline void bnxt_re_copy_data_to_pb(struct bnxt_re_push_buffer *pbuf, - int indx; - - for (indx = 0; indx < idx; indx++) { -- dst = (uintptr_t *)(pbuf->pbuf + 2 * (indx + offset)); -+ dst = (uintptr_t *)(pbuf->pbuf) + 2 * indx + offset; - src = (uintptr_t *)(pbuf->wqe[indx]); - mmio_write64(dst, *src); - --- -2.49.0 - diff --git a/rdma-core.spec b/rdma-core.spec index e8f3020..9929136 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -1,5 +1,5 @@ Name: rdma-core -Version: 54.0 +Version: 57.0 Release: %autorelease Summary: RDMA core userspace libraries and daemons @@ -10,7 +10,6 @@ Summary: RDMA core userspace libraries and daemons License: GPLv2 or BSD Url: https://github.com/linux-rdma/rdma-core Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz -Patch0001: 0001-bnxt_re-lib-Fix-the-data-copy-during-the-low-latency.patch Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch # Do not build static libs by default. %define with_static %{?_with_static: 1} %{?!_with_static: 0} @@ -283,7 +282,6 @@ easy, object-oriented access to IB verbs. %prep %setup -q -%patch 0001 -p1 %if 0%{?rhel} %patch 9999 -p1 %endif @@ -373,6 +371,17 @@ if [ -x /sbin/udevadm ]; then /sbin/udevadm trigger --subsystem-match=net --action=change || true /sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true fi +%systemd_post rdma-load-modules@rdma.service +%systemd_post rdma-load-modules@infiniband.service +%systemd_post rdma-load-modules@roce.service +%preun -n rdma-core +%systemd_preun rdma-load-modules@rdma.service +%systemd_preun rdma-load-modules@infiniband.service +%systemd_preun rdma-load-modules@roce.service +%postun -n rdma-core +%systemd_postun_with_restart rdma-load-modules@rdma.service +%systemd_postun_with_restart rdma-load-modules@infiniband.service +%systemd_postun_with_restart rdma-load-modules@roce.service %post -n ibacm %systemd_post ibacm.service diff --git a/sources b/sources index 324fb35..feb1d68 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rdma-core-54.0.tar.gz) = efb98dec017e1eb71ed6f2b652d557d0444c672ff388927bdd724c81bb4baeb5617c81fff609f794c1ff128ab93ae26ed4502bd0ebf14e157737b1b08d0fb4b9 +SHA512 (rdma-core-57.0.tar.gz) = 4a904d34af6863655545fe720cc25a8800684f63c51cebb67be2058363949217903957dc925c69d41294362ccff75fb0d37f3bc31cd6f6f252a804d6713f62cf