Rebase to upstream release v57.0

Resolves: RHEL-76570, RHEL-45644, RHEL-72077, RHEL-68506, RHEL-94449
Signed-off-by: Kamal Heib <kheib@redhat.com>
This commit is contained in:
Kamal Heib 2025-05-30 08:36:24 -04:00
parent 2614defbd4
commit 7110d484ec
4 changed files with 21 additions and 41 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@
/rdma-core-48.0.tar.gz /rdma-core-48.0.tar.gz
/rdma-core-51.0.tar.gz /rdma-core-51.0.tar.gz
/rdma-core-54.0.tar.gz /rdma-core-54.0.tar.gz
/rdma-core-57.0.tar.gz

View File

@ -1,34 +0,0 @@
From 9558f227b158291bc3eb7044938d711e388802ce Mon Sep 17 00:00:00 2001
From: Selvin Xavier <selvin.xavier@broadcom.com>
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 <kheib@redhat.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
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

View File

@ -1,6 +1,6 @@
Name: rdma-core Name: rdma-core
Version: 54.0 Version: 57.0
Release: 2%{?dist} Release: 1%{?dist}
Summary: RDMA core userspace libraries and daemons Summary: RDMA core userspace libraries and daemons
# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license # Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
@ -10,7 +10,6 @@ Summary: RDMA core userspace libraries and daemons
License: GPLv2 or BSD License: GPLv2 or BSD
Url: https://github.com/linux-rdma/rdma-core Url: https://github.com/linux-rdma/rdma-core
Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz 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
Patch9998: 9998-kernel-boot-Do-not-perform-device-rename-on-OPA-devi.patch Patch9998: 9998-kernel-boot-Do-not-perform-device-rename-on-OPA-devi.patch
Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
# Do not build static libs by default. # Do not build static libs by default.
@ -267,12 +266,11 @@ easy, object-oriented access to IB verbs.
%prep %prep
%setup -q %setup -q
%patch0001 -p1
%if 0%{?fedora} %if 0%{?fedora}
%patch9998 -p1 %patch -P 9998 -p1
%endif %endif
%if 0%{?rhel} %if 0%{?rhel}
%patch9999 -p1 %patch -P 9999 -p1
%endif %endif
%build %build
@ -360,6 +358,17 @@ if [ -x /sbin/udevadm ]; then
/sbin/udevadm trigger --subsystem-match=net --action=change || true /sbin/udevadm trigger --subsystem-match=net --action=change || true
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true /sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
fi 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 %post -n ibacm
%systemd_post ibacm.service %systemd_post ibacm.service
@ -620,6 +629,10 @@ fi
%endif %endif
%changelog %changelog
* Tue May 27 2025 Kamal Heib <kheib@redhat.com> - 57.0-1
- Rebase to upstream release v57.0
- Resolves: RHEL-76570, RHEL-45644, RHEL-72077, RHEL-68506, RHEL-94449
* Wed Apr 30 2025 Kamal Heib <kheib@redhat.com> * Wed Apr 30 2025 Kamal Heib <kheib@redhat.com>
- Fix data corruption in bnxt_re - Fix data corruption in bnxt_re
- Resolves: RHEL-89179 - Resolves: RHEL-89179

View File

@ -1 +1 @@
SHA512 (rdma-core-54.0.tar.gz) = efb98dec017e1eb71ed6f2b652d557d0444c672ff388927bdd724c81bb4baeb5617c81fff609f794c1ff128ab93ae26ed4502bd0ebf14e157737b1b08d0fb4b9 SHA512 (rdma-core-57.0.tar.gz) = 4a904d34af6863655545fe720cc25a8800684f63c51cebb67be2058363949217903957dc925c69d41294362ccff75fb0d37f3bc31cd6f6f252a804d6713f62cf